tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_special_tabs.js (1786B)


      1 /* Any copyright is dedicated to the Public Domain.
      2   http://creativecommons.org/publicdomain/zero/1.0/ */
      3 
      4 // Bug 532173 - Dont sync tabs like about:* , weave firstrun etc
      5 
      6 /*
      7 * The list of phases mapped to their corresponding profiles.  The object
      8 * here must be in strict JSON format, as it will get parsed by the Python
      9 * testrunner (no single quotes, extra comma's, etc).
     10 */
     11 EnableEngines(["tabs"]);
     12 
     13 var phases = { phase1: "profile1", phase2: "profile2" };
     14 
     15 var tabs1 = [
     16  {
     17    uri: "data:text/html,<html><head><title>Firefox</title></head><body>Firefox</body></html>",
     18    title: "Firefox",
     19    profile: "profile1",
     20  },
     21  { uri: "about:robots", title: "About", profile: "profile1" },
     22  { uri: "about:credits", title: "Credits", profile: "profile1" },
     23  {
     24    uri: "data:text/html,<html><head><title>Mozilla</title></head><body>Mozilla</body></html>",
     25    title: "Mozilla",
     26    profile: "profile1",
     27  },
     28  {
     29    uri: "http://www.mozilla.com/en-US/firefox/sync/firstrun.html",
     30    title: "Firstrun",
     31    profile: "profile1",
     32  },
     33 ];
     34 
     35 var tabs2 = [
     36  {
     37    uri: "data:text/html,<html><head><title>Firefox</title></head><body>Firefox</body></html>",
     38    title: "Firefox",
     39    profile: "profile1",
     40  },
     41  {
     42    uri: "data:text/html,<html><head><title>Mozilla</title></head><body>Mozilla</body></html>",
     43    title: "Mozilla",
     44    profile: "profile1",
     45  },
     46 ];
     47 
     48 var tabs3 = [
     49  {
     50    uri: "http://www.mozilla.com/en-US/firefox/sync/firstrun.html",
     51    title: "Firstrun",
     52    profile: "profile1",
     53  },
     54  { uri: "about:robots", title: "About", profile: "profile1" },
     55  { uri: "about:credits", title: "Credits", profile: "profile1" },
     56 ];
     57 
     58 /*
     59 * Test phases
     60 */
     61 Phase("phase1", [[Tabs.add, tabs1], [Sync]]);
     62 
     63 Phase("phase2", [[Sync], [Tabs.verify, tabs2], [Tabs.verifyNot, tabs3]]);