Wed, 31 Dec 2014 07:22:50 +0100
Correct previous dual key logic pending first delivery installment.
michael@0 | 1 | /* Any copyright is dedicated to the Public Domain. |
michael@0 | 2 | http://creativecommons.org/publicdomain/zero/1.0/ */ |
michael@0 | 3 | |
michael@0 | 4 | /* |
michael@0 | 5 | * The list of phases mapped to their corresponding profiles. The object |
michael@0 | 6 | * here must be in strict JSON format, as it will get parsed by the Python |
michael@0 | 7 | * testrunner (no single quotes, extra comma's, etc). |
michael@0 | 8 | */ |
michael@0 | 9 | EnableEngines(["tabs"]); |
michael@0 | 10 | |
michael@0 | 11 | var phases = { "phase1": "profile1", |
michael@0 | 12 | "phase2": "profile2", |
michael@0 | 13 | "phase3": "profile1"}; |
michael@0 | 14 | |
michael@0 | 15 | /* |
michael@0 | 16 | * Tab lists. |
michael@0 | 17 | */ |
michael@0 | 18 | |
michael@0 | 19 | var tabs1 = [ |
michael@0 | 20 | { uri: "http://hg.mozilla.org/automation/crossweave/raw-file/2d9aca9585b6/pages/page1.html", |
michael@0 | 21 | title: "Crossweave Test Page 1", |
michael@0 | 22 | profile: "profile1" |
michael@0 | 23 | }, |
michael@0 | 24 | { uri: "data:text/html,<html><head><title>Hello</title></head><body>Hello</body></html>", |
michael@0 | 25 | title: "Hello", |
michael@0 | 26 | profile: "profile1" |
michael@0 | 27 | } |
michael@0 | 28 | ]; |
michael@0 | 29 | |
michael@0 | 30 | var tabs2 = [ |
michael@0 | 31 | { uri: "http://hg.mozilla.org/automation/crossweave/raw-file/2d9aca9585b6/pages/page3.html", |
michael@0 | 32 | title: "Crossweave Test Page 3", |
michael@0 | 33 | profile: "profile2" |
michael@0 | 34 | }, |
michael@0 | 35 | { uri: "data:text/html,<html><head><title>Bye</title></head><body>Bye</body></html>", |
michael@0 | 36 | profile: "profile2" |
michael@0 | 37 | } |
michael@0 | 38 | ]; |
michael@0 | 39 | |
michael@0 | 40 | /* |
michael@0 | 41 | * Test phases |
michael@0 | 42 | */ |
michael@0 | 43 | |
michael@0 | 44 | Phase('phase1', [ |
michael@0 | 45 | [Tabs.add, tabs1], |
michael@0 | 46 | [Sync] |
michael@0 | 47 | ]); |
michael@0 | 48 | |
michael@0 | 49 | Phase('phase2', [ |
michael@0 | 50 | [Sync], |
michael@0 | 51 | [Tabs.verify, tabs1], |
michael@0 | 52 | [Tabs.add, tabs2], |
michael@0 | 53 | [Sync] |
michael@0 | 54 | ]); |
michael@0 | 55 | |
michael@0 | 56 | Phase('phase3', [ |
michael@0 | 57 | [Sync], |
michael@0 | 58 | [Tabs.verify, tabs2] |
michael@0 | 59 | ]); |