test_bug535326.js (4357B)
1 /* Any copyright is dedicated to the Public Domain. 2 http://creativecommons.org/publicdomain/zero/1.0/ */ 3 4 EnableEngines(["tabs"]); 5 6 /* 7 * The list of phases mapped to their corresponding profiles. The object 8 * here must be in JSON format as it will get parsed by the Python 9 * testrunner. It is parsed by the YAML package, so it relatively flexible. 10 */ 11 var phases = { phase1: "profile1", phase2: "profile2" }; 12 13 var tabs1 = [ 14 { 15 uri: "data:text/html,<html><head><title>Howdy</title></head><body>Howdy</body></html>", 16 title: "Howdy", 17 profile: "profile1", 18 }, 19 { 20 uri: "data:text/html,<html><head><title>America</title></head><body>America</body></html>", 21 title: "America", 22 profile: "profile1", 23 }, 24 { 25 uri: "data:text/html,<html><head><title>Apple</title></head><body>Apple</body></html>", 26 title: "Apple", 27 profile: "profile1", 28 }, 29 { 30 uri: "data:text/html,<html><head><title>This</title></head><body>This</body></html>", 31 title: "This", 32 profile: "profile1", 33 }, 34 { 35 uri: "data:text/html,<html><head><title>Bug</title></head><body>Bug</body></html>", 36 title: "Bug", 37 profile: "profile1", 38 }, 39 { 40 uri: "data:text/html,<html><head><title>IRC</title></head><body>IRC</body></html>", 41 title: "IRC", 42 profile: "profile1", 43 }, 44 { 45 uri: "data:text/html,<html><head><title>Tinderbox</title></head><body>Tinderbox</body></html>", 46 title: "Tinderbox", 47 profile: "profile1", 48 }, 49 { 50 uri: "data:text/html,<html><head><title>Fox</title></head><body>Fox</body></html>", 51 title: "Fox", 52 profile: "profile1", 53 }, 54 { 55 uri: "data:text/html,<html><head><title>Hello</title></head><body>Hello</body></html>", 56 title: "Hello", 57 profile: "profile1", 58 }, 59 { 60 uri: "data:text/html,<html><head><title>Eagle</title></head><body>Eagle</body></html>", 61 title: "Eagle", 62 profile: "profile1", 63 }, 64 { 65 uri: "data:text/html,<html><head><title>Train</title></head><body>Train</body></html>", 66 title: "Train", 67 profile: "profile1", 68 }, 69 { 70 uri: "data:text/html,<html><head><title>Macbook</title></head><body>Macbook</body></html>", 71 title: "Macbook", 72 profile: "profile1", 73 }, 74 { 75 uri: "data:text/html,<html><head><title>Clock</title></head><body>Clock</body></html>", 76 title: "Clock", 77 profile: "profile1", 78 }, 79 { 80 uri: "data:text/html,<html><head><title>Google</title></head><body>Google</body></html>", 81 title: "Google", 82 profile: "profile1", 83 }, 84 { 85 uri: "data:text/html,<html><head><title>Human</title></head><body>Human</body></html>", 86 title: "Human", 87 profile: "profile1", 88 }, 89 { 90 uri: "data:text/html,<html><head><title>Jetpack</title></head><body>Jetpack</body></html>", 91 title: "Jetpack", 92 profile: "profile1", 93 }, 94 { 95 uri: "data:text/html,<html><head><title>Selenium</title></head><body>Selenium</body></html>", 96 title: "Selenium", 97 profile: "profile1", 98 }, 99 { 100 uri: "data:text/html,<html><head><title>Mozilla</title></head><body>Mozilla</body></html>", 101 title: "Mozilla", 102 profile: "profile1", 103 }, 104 { 105 uri: "data:text/html,<html><head><title>Firefox</title></head><body>Firefox</body></html>", 106 title: "Firefox", 107 profile: "profile1", 108 }, 109 { 110 uri: "data:text/html,<html><head><title>Weave</title></head><body>Weave</body></html>", 111 title: "Weave", 112 profile: "profile1", 113 }, 114 { 115 uri: "data:text/html,<html><head><title>Android</title></head><body>Android</body></html>", 116 title: "Android", 117 profile: "profile1", 118 }, 119 { 120 uri: "data:text/html,<html><head><title>Bye</title></head><body>Bye</body></html>", 121 title: "Bye", 122 profile: "profile1", 123 }, 124 { 125 uri: "data:text/html,<html><head><title>Hi</title></head><body>Hi</body></html>", 126 title: "Hi", 127 profile: "profile1", 128 }, 129 { 130 uri: "data:text/html,<html><head><title>Final</title></head><body>Final</body></html>", 131 title: "Final", 132 profile: "profile1", 133 }, 134 { 135 uri: "data:text/html,<html><head><title>Fennec</title></head><body>Fennec</body></html>", 136 title: "Fennec", 137 profile: "profile1", 138 }, 139 { 140 uri: "data:text/html,<html><head><title>Mobile</title></head><body>Mobile</body></html>", 141 title: "Mobile", 142 profile: "profile1", 143 }, 144 ]; 145 146 Phase("phase1", [[Tabs.add, tabs1], [Sync]]); 147 148 Phase("phase2", [[Sync], [Tabs.verify, tabs1]]);