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

changeset 2
7e26c7da4463
equal deleted inserted replaced
-1:000000000000 0:9ff25a260435
1 /* Any copyright is dedicated to the Public Domain.
2 * http://creativecommons.org/publicdomain/zero/1.0/ */
3
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);
14
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),
21
22 // reset all preferences to their default values once we're done
23 reset_preferences
24 ]);
25 }

mercurial