|
1 /* Any copyright is dedicated to the Public Domain. |
|
2 http://creativecommons.org/publicdomain/zero/1.0/ */ |
|
3 |
|
4 /* |
|
5 * The list of phases mapped to their corresponding profiles. The object |
|
6 * here must be in strict JSON format, as it will get parsed by the Python |
|
7 * testrunner (no single quotes, extra comma's, etc). |
|
8 */ |
|
9 |
|
10 EnableEngines(["tabs"]); |
|
11 |
|
12 var phases = { "phase1": "profile1", |
|
13 "phase2": "profile2"}; |
|
14 |
|
15 /* |
|
16 * Tabs data |
|
17 */ |
|
18 |
|
19 var tabs1 = [ |
|
20 { uri: "about:config", |
|
21 profile: "profile1" |
|
22 }, |
|
23 { uri: "about:credits", |
|
24 profile: "profile1" |
|
25 }, |
|
26 { uri: "data:text/html,<html><head><title>Apple</title></head><body>Apple</body></html>", |
|
27 title: "Apple", |
|
28 profile: "profile1" |
|
29 } |
|
30 ]; |
|
31 |
|
32 var tabs_absent = [ |
|
33 { uri: "about:config", |
|
34 profile: "profile1" |
|
35 }, |
|
36 { uri: "about:credits", |
|
37 profile: "profile1" |
|
38 }, |
|
39 ]; |
|
40 |
|
41 /* |
|
42 * Test phases |
|
43 */ |
|
44 |
|
45 Phase('phase1', [ |
|
46 [Tabs.add, tabs1], |
|
47 [Sync] |
|
48 ]); |
|
49 |
|
50 Phase('phase2', [ |
|
51 [Sync], |
|
52 [Tabs.verifyNot, tabs_absent] |
|
53 ]); |
|
54 |