test_bug546807.js (948B)
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 /* 14 * Tabs data 15 */ 16 17 var tabs1 = [ 18 { uri: "about:config", profile: "profile1" }, 19 { uri: "about:credits", profile: "profile1" }, 20 { 21 uri: "data:text/html,<html><head><title>Apple</title></head><body>Apple</body></html>", 22 title: "Apple", 23 profile: "profile1", 24 }, 25 ]; 26 27 var tabs_absent = [ 28 { uri: "about:config", profile: "profile1" }, 29 { uri: "about:credits", profile: "profile1" }, 30 ]; 31 32 /* 33 * Test phases 34 */ 35 36 Phase("phase1", [[Tabs.add, tabs1], [Sync]]); 37 38 Phase("phase2", [[Sync], [Tabs.verifyNot, tabs_absent]]);