browser/components/preferences/in-content/tests/browser_privacypane_5.js

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 /* Any copyright is dedicated to the Public Domain.
     2  * http://creativecommons.org/publicdomain/zero/1.0/ */
     4 function test() {
     5   let loader = Cc["@mozilla.org/moz/jssubscript-loader;1"].
     6                getService(Ci.mozIJSSubScriptLoader);
     7   let rootDir = getRootDirectory(gTestPath);
     8   let jar = getJar(rootDir);
     9   if (jar) {
    10     let tmpdir = extractJarToTmp(jar);
    11     rootDir = "file://" + tmpdir.path + '/';
    12   }
    13   loader.loadSubScript(rootDir + "privacypane_tests_perwindow.js", this);
    15   run_test_subset([
    16     test_locbar_suggestion_retention(-1, undefined),
    17     test_locbar_suggestion_retention(1, -1),
    18     test_locbar_suggestion_retention(2, 1),
    19     test_locbar_suggestion_retention(0, 2),
    20     test_locbar_suggestion_retention(0, 0),
    22     // reset all preferences to their default values once we're done
    23     reset_preferences
    24   ]);
    25 }

mercurial