services/sync/tests/tps/test_bug575423.js

Wed, 31 Dec 2014 07:22:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:22:50 +0100
branch
TOR_BUG_3246
changeset 4
fc2d59ddac77
permissions
-rw-r--r--

Correct previous dual key logic pending first delivery installment.

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(["history"]);
michael@0 11
michael@0 12 var phases = { "phase1": "profile1",
michael@0 13 "phase2": "profile2"};
michael@0 14
michael@0 15 /*
michael@0 16 * History data
michael@0 17 */
michael@0 18
michael@0 19 // the history data to add to the browser
michael@0 20 var history1 = [
michael@0 21 { uri: "http://www.google.com/",
michael@0 22 title: "Google",
michael@0 23 visits: [
michael@0 24 { type: 1,
michael@0 25 date: 0
michael@0 26 },
michael@0 27 { type: 2,
michael@0 28 date: -1
michael@0 29 }
michael@0 30 ]
michael@0 31 },
michael@0 32 { uri: "http://www.cnn.com/",
michael@0 33 title: "CNN",
michael@0 34 visits: [
michael@0 35 { type: 1,
michael@0 36 date: -1
michael@0 37 },
michael@0 38 { type: 2,
michael@0 39 date: -36
michael@0 40 }
michael@0 41 ]
michael@0 42 }
michael@0 43 ];
michael@0 44
michael@0 45 // Another history data to add to the browser
michael@0 46 var history2 = [
michael@0 47 { uri: "http://www.mozilla.com/",
michael@0 48 title: "Mozilla",
michael@0 49 visits: [
michael@0 50 { type: 1,
michael@0 51 date: 0
michael@0 52 },
michael@0 53 { type: 2,
michael@0 54 date: -36
michael@0 55 }
michael@0 56 ]
michael@0 57 },
michael@0 58 { uri: "http://www.google.com/language_tools?hl=en",
michael@0 59 title: "Language Tools",
michael@0 60 visits: [
michael@0 61 { type: 1,
michael@0 62 date: 0
michael@0 63 },
michael@0 64 { type: 2,
michael@0 65 date: -40
michael@0 66 }
michael@0 67 ]
michael@0 68 }
michael@0 69 ];
michael@0 70
michael@0 71 /*
michael@0 72 * Test phases
michael@0 73 */
michael@0 74 Phase('phase1', [
michael@0 75 [History.add, history1],
michael@0 76 [Sync],
michael@0 77 [History.add, history2],
michael@0 78 [Sync]
michael@0 79 ]);
michael@0 80
michael@0 81 Phase('phase2', [
michael@0 82 [Sync],
michael@0 83 [History.verify, history2]
michael@0 84 ]);
michael@0 85

mercurial