Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
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 }