|
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 EnableEngines(["tabs"]); |
|
10 |
|
11 var phases = { "phase1": "profile1", |
|
12 "phase2": "profile2"}; |
|
13 |
|
14 var tabs1 = [ |
|
15 { uri: "data:text/html,<html><head><title>Howdy</title></head><body>Howdy</body></html>", |
|
16 title: "Howdy", |
|
17 profile: "profile1" |
|
18 }, |
|
19 { uri: "data:text/html,<html><head><title>America</title></head><body>America</body></html>", |
|
20 title: "America", |
|
21 profile: "profile1" |
|
22 }, |
|
23 { uri: "data:text/html,<html><head><title>Apple</title></head><body>Apple</body></html>", |
|
24 title: "Apple", |
|
25 profile: "profile1" |
|
26 }, |
|
27 { uri: "data:text/html,<html><head><title>This</title></head><body>This</body></html>", |
|
28 title: "This", |
|
29 profile: "profile1" |
|
30 }, |
|
31 { uri: "data:text/html,<html><head><title>Bug</title></head><body>Bug</body></html>", |
|
32 title: "Bug", |
|
33 profile: "profile1" |
|
34 }, |
|
35 { uri: "data:text/html,<html><head><title>IRC</title></head><body>IRC</body></html>", |
|
36 title: "IRC", |
|
37 profile: "profile1" |
|
38 }, |
|
39 { uri: "data:text/html,<html><head><title>Tinderbox</title></head><body>Tinderbox</body></html>", |
|
40 title: "Tinderbox", |
|
41 profile: "profile1" |
|
42 }, |
|
43 { uri: "data:text/html,<html><head><title>Fox</title></head><body>Fox</body></html>", |
|
44 title: "Fox", |
|
45 profile: "profile1" |
|
46 }, |
|
47 { uri: "data:text/html,<html><head><title>Hello</title></head><body>Hello</body></html>", |
|
48 title: "Hello", |
|
49 profile: "profile1" |
|
50 }, |
|
51 { uri: "data:text/html,<html><head><title>Eagle</title></head><body>Eagle</body></html>", |
|
52 title: "Eagle", |
|
53 profile: "profile1" |
|
54 }, |
|
55 { uri: "data:text/html,<html><head><title>Train</title></head><body>Train</body></html>", |
|
56 title: "Train", |
|
57 profile: "profile1" |
|
58 }, |
|
59 { uri: "data:text/html,<html><head><title>Macbook</title></head><body>Macbook</body></html>", |
|
60 title: "Macbook", |
|
61 profile: "profile1" |
|
62 }, |
|
63 { uri: "data:text/html,<html><head><title>Clock</title></head><body>Clock</body></html>", |
|
64 title: "Clock", |
|
65 profile: "profile1" |
|
66 }, |
|
67 { uri: "data:text/html,<html><head><title>Google</title></head><body>Google</body></html>", |
|
68 title: "Google", |
|
69 profile: "profile1" |
|
70 }, |
|
71 { uri: "data:text/html,<html><head><title>Human</title></head><body>Human</body></html>", |
|
72 title: "Human", |
|
73 profile: "profile1" |
|
74 }, |
|
75 { uri: "data:text/html,<html><head><title>Jetpack</title></head><body>Jetpack</body></html>", |
|
76 title: "Jetpack", |
|
77 profile: "profile1" |
|
78 }, |
|
79 { uri: "data:text/html,<html><head><title>Selenium</title></head><body>Selenium</body></html>", |
|
80 title: "Selenium", |
|
81 profile: "profile1" |
|
82 }, |
|
83 { uri: "data:text/html,<html><head><title>Mozilla</title></head><body>Mozilla</body></html>", |
|
84 title: "Mozilla", |
|
85 profile: "profile1" |
|
86 }, |
|
87 { uri: "data:text/html,<html><head><title>Firefox</title></head><body>Firefox</body></html>", |
|
88 title: "Firefox", |
|
89 profile: "profile1" |
|
90 }, |
|
91 { uri: "data:text/html,<html><head><title>Weave</title></head><body>Weave</body></html>", |
|
92 title: "Weave", |
|
93 profile: "profile1" |
|
94 }, |
|
95 { uri: "data:text/html,<html><head><title>Android</title></head><body>Android</body></html>", |
|
96 title: "Android", |
|
97 profile: "profile1" |
|
98 }, |
|
99 { uri: "data:text/html,<html><head><title>Bye</title></head><body>Bye</body></html>", |
|
100 title: "Bye", |
|
101 profile: "profile1" |
|
102 }, |
|
103 { uri: "data:text/html,<html><head><title>Hi</title></head><body>Hi</body></html>", |
|
104 title: "Hi", |
|
105 profile: "profile1" |
|
106 }, |
|
107 { uri: "data:text/html,<html><head><title>Final</title></head><body>Final</body></html>", |
|
108 title: "Final", |
|
109 profile: "profile1" |
|
110 }, |
|
111 { uri: "data:text/html,<html><head><title>Fennec</title></head><body>Fennec</body></html>", |
|
112 title: "Fennec", |
|
113 profile: "profile1" |
|
114 }, |
|
115 { uri: "data:text/html,<html><head><title>Mobile</title></head><body>Mobile</body></html>", |
|
116 title: "Mobile", |
|
117 profile: "profile1" |
|
118 } |
|
119 ]; |
|
120 |
|
121 Phase('phase1', [ |
|
122 [Tabs.add, tabs1], |
|
123 [Sync] |
|
124 ]); |
|
125 |
|
126 Phase('phase2', [ |
|
127 [Sync], |
|
128 [Tabs.verify, tabs1] |
|
129 ]); |
|
130 |