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: michael@0: /* michael@0: * Tab lists. michael@0: */ michael@0: michael@0: var tabs1 = [ michael@0: { uri: "http://hg.mozilla.org/automation/crossweave/raw-file/2d9aca9585b6/pages/page1.html", michael@0: title: "Crossweave Test Page 1", michael@0: profile: "profile1" michael@0: }, michael@0: { uri: "data:text/html,HelloHello", michael@0: title: "Hello", michael@0: profile: "profile1" michael@0: } michael@0: ]; michael@0: michael@0: var tabs2 = [ michael@0: { uri: "http://hg.mozilla.org/automation/crossweave/raw-file/2d9aca9585b6/pages/page3.html", michael@0: title: "Crossweave Test Page 3", michael@0: profile: "profile2" michael@0: }, michael@0: { uri: "data:text/html,ByeBye", michael@0: profile: "profile2" 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: [Tabs.verify, tabs2] michael@0: ]);