services/sync/tests/tps/test_privbrw_tabs.js

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

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 "phase4": "profile2" };
michael@0 15
michael@0 16 /*
michael@0 17 * Tabs data
michael@0 18 */
michael@0 19
michael@0 20 var tabs1 = [
michael@0 21 { uri: "data:text/html,<html><head><title>Firefox</title></head><body>Firefox</body></html>",
michael@0 22 title: "Firefox",
michael@0 23 profile: "profile1"
michael@0 24 },
michael@0 25 { uri: "data:text/html,<html><head><title>Weave</title></head><body>Weave</body></html>",
michael@0 26 title: "Weave",
michael@0 27 profile: "profile1"
michael@0 28 },
michael@0 29 { uri: "data:text/html,<html><head><title>Apple</title></head><body>Apple</body></html>",
michael@0 30 title: "Apple",
michael@0 31 profile: "profile1"
michael@0 32 },
michael@0 33 { uri: "data:text/html,<html><head><title>IRC</title></head><body>IRC</body></html>",
michael@0 34 title: "IRC",
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>Tinderbox</title></head><body>Tinderbox</body></html>",
michael@0 41 title: "Tinderbox",
michael@0 42 profile: "profile2"
michael@0 43 },
michael@0 44 { uri: "data:text/html,<html><head><title>Fox</title></head><body>Fox</body></html>",
michael@0 45 title: "Fox",
michael@0 46 profile: "profile2"
michael@0 47 }
michael@0 48 ];
michael@0 49
michael@0 50 var tabs3 = [
michael@0 51 { uri: "data:text/html,<html><head><title>Jetpack</title></head><body>Jetpack</body></html>",
michael@0 52 title: "Jetpack",
michael@0 53 profile: "profile1"
michael@0 54 },
michael@0 55 { uri: "data:text/html,<html><head><title>Selenium</title></head><body>Selenium</body></html>",
michael@0 56 title: "Selenium",
michael@0 57 profile: "profile1"
michael@0 58 }
michael@0 59 ];
michael@0 60
michael@0 61 /*
michael@0 62 * Test phases
michael@0 63 */
michael@0 64
michael@0 65 Phase('phase1', [
michael@0 66 [Tabs.add, tabs1],
michael@0 67 [Sync]
michael@0 68 ]);
michael@0 69
michael@0 70 Phase('phase2', [
michael@0 71 [Sync],
michael@0 72 [Tabs.verify, tabs1],
michael@0 73 [Tabs.add, tabs2],
michael@0 74 [Sync]
michael@0 75 ]);
michael@0 76
michael@0 77 Phase('phase3', [
michael@0 78 [Sync],
michael@0 79 [Windows.add, { private: true }],
michael@0 80 [Tabs.add, tabs3],
michael@0 81 [Sync]
michael@0 82 ]);
michael@0 83
michael@0 84 Phase('phase4', [
michael@0 85 [Sync],
michael@0 86 [Tabs.verifyNot, tabs3]
michael@0 87 ]);

mercurial