Wed, 31 Dec 2014 07:53:36 +0100
Correct small whitespace inconsistency, lost while renaming variables.
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 | // Bug 532173 - Dont sync tabs like about:* , weave firstrun etc |
michael@0 | 5 | |
michael@0 | 6 | /* |
michael@0 | 7 | * The list of phases mapped to their corresponding profiles. The object |
michael@0 | 8 | * here must be in strict JSON format, as it will get parsed by the Python |
michael@0 | 9 | * testrunner (no single quotes, extra comma's, etc). |
michael@0 | 10 | */ |
michael@0 | 11 | EnableEngines(["tabs"]); |
michael@0 | 12 | |
michael@0 | 13 | var phases = { "phase1": "profile1", |
michael@0 | 14 | "phase2": "profile2" }; |
michael@0 | 15 | |
michael@0 | 16 | var tabs1 = [ |
michael@0 | 17 | { uri: "data:text/html,<html><head><title>Firefox</title></head><body>Firefox</body></html>", |
michael@0 | 18 | title: "Firefox", |
michael@0 | 19 | profile: "profile1" |
michael@0 | 20 | }, |
michael@0 | 21 | { uri: "about:plugins", |
michael@0 | 22 | title: "About", |
michael@0 | 23 | profile: "profile1" |
michael@0 | 24 | }, |
michael@0 | 25 | { uri: "about:credits", |
michael@0 | 26 | title: "Credits", |
michael@0 | 27 | profile: "profile1" |
michael@0 | 28 | }, |
michael@0 | 29 | { uri: "data:text/html,<html><head><title>Mozilla</title></head><body>Mozilla</body></html>", |
michael@0 | 30 | title: "Mozilla", |
michael@0 | 31 | profile: "profile1" |
michael@0 | 32 | }, |
michael@0 | 33 | { uri: "http://www.mozilla.com/en-US/firefox/sync/firstrun.html", |
michael@0 | 34 | title: "Firstrun", |
michael@0 | 35 | profile: "profile1" |
michael@0 | 36 | } |
michael@0 | 37 | ]; |
michael@0 | 38 | |
michael@0 | 39 | var tabs2 = [ |
michael@0 | 40 | { uri: "data:text/html,<html><head><title>Firefox</title></head><body>Firefox</body></html>", |
michael@0 | 41 | title: "Firefox", |
michael@0 | 42 | profile: "profile1" |
michael@0 | 43 | }, |
michael@0 | 44 | { uri: "data:text/html,<html><head><title>Mozilla</title></head><body>Mozilla</body></html>", |
michael@0 | 45 | title: "Mozilla", |
michael@0 | 46 | profile: "profile1" |
michael@0 | 47 | } |
michael@0 | 48 | ]; |
michael@0 | 49 | |
michael@0 | 50 | var tabs3 = [ |
michael@0 | 51 | { uri: "http://www.mozilla.com/en-US/firefox/sync/firstrun.html", |
michael@0 | 52 | title: "Firstrun", |
michael@0 | 53 | profile: "profile1" |
michael@0 | 54 | }, |
michael@0 | 55 | { uri: "about:plugins", |
michael@0 | 56 | title: "About", |
michael@0 | 57 | profile: "profile1" |
michael@0 | 58 | }, |
michael@0 | 59 | { uri: "about:credits", |
michael@0 | 60 | title: "Credits", |
michael@0 | 61 | profile: "profile1" |
michael@0 | 62 | } |
michael@0 | 63 | ]; |
michael@0 | 64 | |
michael@0 | 65 | /* |
michael@0 | 66 | * Test phases |
michael@0 | 67 | */ |
michael@0 | 68 | Phase('phase1', [ |
michael@0 | 69 | [Tabs.add, tabs1], |
michael@0 | 70 | [Sync] |
michael@0 | 71 | ]); |
michael@0 | 72 | |
michael@0 | 73 | Phase('phase2', [ |
michael@0 | 74 | [Sync], |
michael@0 | 75 | [Tabs.verify, tabs2], |
michael@0 | 76 | [Tabs.verifyNot, tabs3] |
michael@0 | 77 | ]); |
michael@0 | 78 |