michael@0: /* Any copyright is dedicated to the Public Domain.
michael@0: http://creativecommons.org/publicdomain/zero/1.0/ */
michael@0:
michael@0: // Bug 532173 - Dont sync tabs like about:* , weave firstrun etc
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:
michael@0: var tabs1 = [
michael@0: { uri: "data:text/html,
FirefoxFirefox",
michael@0: title: "Firefox",
michael@0: profile: "profile1"
michael@0: },
michael@0: { uri: "about:plugins",
michael@0: title: "About",
michael@0: profile: "profile1"
michael@0: },
michael@0: { uri: "about:credits",
michael@0: title: "Credits",
michael@0: profile: "profile1"
michael@0: },
michael@0: { uri: "data:text/html,MozillaMozilla",
michael@0: title: "Mozilla",
michael@0: profile: "profile1"
michael@0: },
michael@0: { uri: "http://www.mozilla.com/en-US/firefox/sync/firstrun.html",
michael@0: title: "Firstrun",
michael@0: profile: "profile1"
michael@0: }
michael@0: ];
michael@0:
michael@0: var tabs2 = [
michael@0: { uri: "data:text/html,FirefoxFirefox",
michael@0: title: "Firefox",
michael@0: profile: "profile1"
michael@0: },
michael@0: { uri: "data:text/html,MozillaMozilla",
michael@0: title: "Mozilla",
michael@0: profile: "profile1"
michael@0: }
michael@0: ];
michael@0:
michael@0: var tabs3 = [
michael@0: { uri: "http://www.mozilla.com/en-US/firefox/sync/firstrun.html",
michael@0: title: "Firstrun",
michael@0: profile: "profile1"
michael@0: },
michael@0: { uri: "about:plugins",
michael@0: title: "About",
michael@0: profile: "profile1"
michael@0: },
michael@0: { uri: "about:credits",
michael@0: title: "Credits",
michael@0: profile: "profile1"
michael@0: }
michael@0: ];
michael@0:
michael@0: /*
michael@0: * Test phases
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, tabs2],
michael@0: [Tabs.verifyNot, tabs3]
michael@0: ]);
michael@0: