michael@0: /* Any copyright is dedicated to the Public Domain.
michael@0: http://creativecommons.org/publicdomain/zero/1.0/ */
michael@0:
michael@0: /*
michael@0: * The list of phases mapped to their corresponding profiles. The object
michael@0: * here must be in strict JSON format, as it will get parsed by the Python
michael@0: * testrunner (no single quotes, extra comma's, etc).
michael@0: */
michael@0: EnableEngines(["tabs"]);
michael@0:
michael@0: var phases = { "phase1": "profile1",
michael@0: "phase2": "profile2",
michael@0: "phase3": "profile1",
michael@0: "phase4": "profile2" };
michael@0:
michael@0: /*
michael@0: * Tabs data
michael@0: */
michael@0:
michael@0: var tabs1 = [
michael@0: { uri: "data:text/html,
FirefoxFirefox",
michael@0: title: "Firefox",
michael@0: profile: "profile1"
michael@0: },
michael@0: { uri: "data:text/html,WeaveWeave",
michael@0: title: "Weave",
michael@0: profile: "profile1"
michael@0: },
michael@0: { uri: "data:text/html,AppleApple",
michael@0: title: "Apple",
michael@0: profile: "profile1"
michael@0: },
michael@0: { uri: "data:text/html,IRCIRC",
michael@0: title: "IRC",
michael@0: profile: "profile1"
michael@0: }
michael@0: ];
michael@0:
michael@0: var tabs2 = [
michael@0: { uri: "data:text/html,TinderboxTinderbox",
michael@0: title: "Tinderbox",
michael@0: profile: "profile2"
michael@0: },
michael@0: { uri: "data:text/html,FoxFox",
michael@0: title: "Fox",
michael@0: profile: "profile2"
michael@0: }
michael@0: ];
michael@0:
michael@0: var tabs3 = [
michael@0: { uri: "data:text/html,JetpackJetpack",
michael@0: title: "Jetpack",
michael@0: profile: "profile1"
michael@0: },
michael@0: { uri: "data:text/html,SeleniumSelenium",
michael@0: title: "Selenium",
michael@0: profile: "profile1"
michael@0: }
michael@0: ];
michael@0:
michael@0: /*
michael@0: * Test phases
michael@0: */
michael@0:
michael@0: Phase('phase1', [
michael@0: [Tabs.add, tabs1],
michael@0: [Sync]
michael@0: ]);
michael@0:
michael@0: Phase('phase2', [
michael@0: [Sync],
michael@0: [Tabs.verify, tabs1],
michael@0: [Tabs.add, tabs2],
michael@0: [Sync]
michael@0: ]);
michael@0:
michael@0: Phase('phase3', [
michael@0: [Sync],
michael@0: [Windows.add, { private: true }],
michael@0: [Tabs.add, tabs3],
michael@0: [Sync]
michael@0: ]);
michael@0:
michael@0: Phase('phase4', [
michael@0: [Sync],
michael@0: [Tabs.verifyNot, tabs3]
michael@0: ]);