Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 function test() {
6 let loader = Cc["@mozilla.org/moz/jssubscript-loader;1"].
7 getService(Ci.mozIJSSubScriptLoader);
8 let rootDir = getRootDirectory(gTestPath);
9 let jar = getJar(rootDir);
10 if (jar) {
11 let tmpdir = extractJarToTmp(jar);
12 rootDir = "file://" + tmpdir.path + '/';
13 }
14 loader.loadSubScript(rootDir + "privacypane_tests_perwindow.js", this);
16 run_test_subset([
17 test_locbar_suggestion_retention(-1, undefined),
18 test_locbar_suggestion_retention(1, -1),
19 test_locbar_suggestion_retention(2, 1),
20 test_locbar_suggestion_retention(0, 2),
21 test_locbar_suggestion_retention(0, 0),
23 // reset all preferences to their default values once we're done
24 reset_preferences
25 ]);
26 }