services/sync/tests/tps/test_bug546807.js

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /* Any copyright is dedicated to the Public Domain.
michael@0 2 http://creativecommons.org/publicdomain/zero/1.0/ */
michael@0 3
michael@0 4 /*
michael@0 5 * The list of phases mapped to their corresponding profiles. The object
michael@0 6 * here must be in strict JSON format, as it will get parsed by the Python
michael@0 7 * testrunner (no single quotes, extra comma's, etc).
michael@0 8 */
michael@0 9
michael@0 10 EnableEngines(["tabs"]);
michael@0 11
michael@0 12 var phases = { "phase1": "profile1",
michael@0 13 "phase2": "profile2"};
michael@0 14
michael@0 15 /*
michael@0 16 * Tabs data
michael@0 17 */
michael@0 18
michael@0 19 var tabs1 = [
michael@0 20 { uri: "about:config",
michael@0 21 profile: "profile1"
michael@0 22 },
michael@0 23 { uri: "about:credits",
michael@0 24 profile: "profile1"
michael@0 25 },
michael@0 26 { uri: "data:text/html,<html><head><title>Apple</title></head><body>Apple</body></html>",
michael@0 27 title: "Apple",
michael@0 28 profile: "profile1"
michael@0 29 }
michael@0 30 ];
michael@0 31
michael@0 32 var tabs_absent = [
michael@0 33 { uri: "about:config",
michael@0 34 profile: "profile1"
michael@0 35 },
michael@0 36 { uri: "about:credits",
michael@0 37 profile: "profile1"
michael@0 38 },
michael@0 39 ];
michael@0 40
michael@0 41 /*
michael@0 42 * Test phases
michael@0 43 */
michael@0 44
michael@0 45 Phase('phase1', [
michael@0 46 [Tabs.add, tabs1],
michael@0 47 [Sync]
michael@0 48 ]);
michael@0 49
michael@0 50 Phase('phase2', [
michael@0 51 [Sync],
michael@0 52 [Tabs.verifyNot, tabs_absent]
michael@0 53 ]);
michael@0 54

mercurial