services/sync/tests/tps/test_bug535326.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/services/sync/tests/tps/test_bug535326.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,130 @@
     1.4 +/* Any copyright is dedicated to the Public Domain.
     1.5 +   http://creativecommons.org/publicdomain/zero/1.0/ */
     1.6 +
     1.7 +/*
     1.8 + * The list of phases mapped to their corresponding profiles.  The object
     1.9 + * here must be in strict JSON format, as it will get parsed by the Python
    1.10 + * testrunner (no single quotes, extra comma's, etc).
    1.11 + */
    1.12 +EnableEngines(["tabs"]);
    1.13 +
    1.14 +var phases = { "phase1": "profile1",
    1.15 +               "phase2": "profile2"};
    1.16 +
    1.17 +var tabs1 = [
    1.18 +  { uri: "data:text/html,<html><head><title>Howdy</title></head><body>Howdy</body></html>",
    1.19 +    title: "Howdy",
    1.20 +    profile: "profile1"
    1.21 +  },
    1.22 +  { uri: "data:text/html,<html><head><title>America</title></head><body>America</body></html>",
    1.23 +    title: "America",
    1.24 +    profile: "profile1"
    1.25 +  },
    1.26 +  { uri: "data:text/html,<html><head><title>Apple</title></head><body>Apple</body></html>",
    1.27 +    title: "Apple",
    1.28 +    profile: "profile1"
    1.29 +  },
    1.30 +  { uri: "data:text/html,<html><head><title>This</title></head><body>This</body></html>",
    1.31 +    title: "This",
    1.32 +    profile: "profile1"
    1.33 +  },
    1.34 +  { uri: "data:text/html,<html><head><title>Bug</title></head><body>Bug</body></html>",
    1.35 +    title: "Bug",
    1.36 +    profile: "profile1"
    1.37 +  },
    1.38 +  { uri: "data:text/html,<html><head><title>IRC</title></head><body>IRC</body></html>",
    1.39 +    title: "IRC",
    1.40 +    profile: "profile1"
    1.41 +  },
    1.42 +  { uri: "data:text/html,<html><head><title>Tinderbox</title></head><body>Tinderbox</body></html>",
    1.43 +    title: "Tinderbox",
    1.44 +    profile: "profile1"
    1.45 +  },
    1.46 +  { uri: "data:text/html,<html><head><title>Fox</title></head><body>Fox</body></html>",
    1.47 +    title: "Fox",
    1.48 +    profile: "profile1"
    1.49 +  },
    1.50 +  { uri: "data:text/html,<html><head><title>Hello</title></head><body>Hello</body></html>",
    1.51 +    title: "Hello",
    1.52 +    profile: "profile1"
    1.53 +  },
    1.54 +  { uri: "data:text/html,<html><head><title>Eagle</title></head><body>Eagle</body></html>",
    1.55 +    title: "Eagle",
    1.56 +    profile: "profile1"
    1.57 +  },
    1.58 +  { uri: "data:text/html,<html><head><title>Train</title></head><body>Train</body></html>",
    1.59 +    title: "Train",
    1.60 +    profile: "profile1"
    1.61 +  },
    1.62 +  { uri: "data:text/html,<html><head><title>Macbook</title></head><body>Macbook</body></html>",
    1.63 +    title: "Macbook",
    1.64 +    profile: "profile1"
    1.65 +  },
    1.66 +  { uri: "data:text/html,<html><head><title>Clock</title></head><body>Clock</body></html>",
    1.67 +    title: "Clock",
    1.68 +    profile: "profile1"
    1.69 +  },
    1.70 +  { uri: "data:text/html,<html><head><title>Google</title></head><body>Google</body></html>",
    1.71 +    title: "Google",
    1.72 +    profile: "profile1"
    1.73 +  },
    1.74 +  { uri: "data:text/html,<html><head><title>Human</title></head><body>Human</body></html>",
    1.75 +    title: "Human",
    1.76 +    profile: "profile1"
    1.77 +  },
    1.78 +  { uri: "data:text/html,<html><head><title>Jetpack</title></head><body>Jetpack</body></html>",
    1.79 +    title: "Jetpack",
    1.80 +    profile: "profile1"
    1.81 +  },
    1.82 +  { uri: "data:text/html,<html><head><title>Selenium</title></head><body>Selenium</body></html>",
    1.83 +    title: "Selenium",
    1.84 +    profile: "profile1"
    1.85 +  },
    1.86 +  { uri: "data:text/html,<html><head><title>Mozilla</title></head><body>Mozilla</body></html>",
    1.87 +    title: "Mozilla",
    1.88 +    profile: "profile1"
    1.89 +  },
    1.90 +  { uri: "data:text/html,<html><head><title>Firefox</title></head><body>Firefox</body></html>",
    1.91 +    title: "Firefox",
    1.92 +    profile: "profile1"
    1.93 +  },
    1.94 +  { uri: "data:text/html,<html><head><title>Weave</title></head><body>Weave</body></html>",
    1.95 +    title: "Weave",
    1.96 +    profile: "profile1"
    1.97 +  },
    1.98 +  { uri: "data:text/html,<html><head><title>Android</title></head><body>Android</body></html>",
    1.99 +    title: "Android",
   1.100 +    profile: "profile1"
   1.101 +  },
   1.102 +  { uri: "data:text/html,<html><head><title>Bye</title></head><body>Bye</body></html>",
   1.103 +    title: "Bye",
   1.104 +    profile: "profile1"
   1.105 +  },
   1.106 +  { uri: "data:text/html,<html><head><title>Hi</title></head><body>Hi</body></html>",
   1.107 +    title: "Hi",
   1.108 +    profile: "profile1"
   1.109 +  },
   1.110 +  { uri: "data:text/html,<html><head><title>Final</title></head><body>Final</body></html>",
   1.111 +    title: "Final",
   1.112 +    profile: "profile1"
   1.113 +  },
   1.114 +  { uri: "data:text/html,<html><head><title>Fennec</title></head><body>Fennec</body></html>",
   1.115 +    title: "Fennec",
   1.116 +    profile: "profile1"
   1.117 +  },
   1.118 +  { uri: "data:text/html,<html><head><title>Mobile</title></head><body>Mobile</body></html>",
   1.119 +    title: "Mobile",
   1.120 +    profile: "profile1"
   1.121 +  }
   1.122 +];
   1.123 +
   1.124 +Phase('phase1', [
   1.125 +  [Tabs.add, tabs1],
   1.126 +  [Sync]
   1.127 +]);
   1.128 +
   1.129 +Phase('phase2', [
   1.130 +  [Sync],
   1.131 +  [Tabs.verify, tabs1]
   1.132 +]);
   1.133 +

mercurial