browser/components/preferences/tests/browser_privacypane_1.js

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:bea413ecc1e0
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/. */
4
5 function test() {
6 let loader = Cc["@mozilla.org/moz/jssubscript-loader;1"].
7 getService(Ci.mozIJSSubScriptLoader);
8
9 let rootDir = getRootDirectory(gTestPath);
10 let jar = getJar(rootDir);
11 if (jar) {
12 let tmpdir = extractJarToTmp(jar);
13 rootDir = "file://" + tmpdir.path + '/';
14 }
15 loader.loadSubScript(rootDir + "privacypane_tests_perwindow.js", this);
16
17 run_test_subset([
18 test_pane_visibility,
19 test_dependent_elements,
20 test_dependent_cookie_elements,
21 test_dependent_clearonclose_elements,
22 test_dependent_prefs,
23
24 // reset all preferences to their default values once we're done
25 reset_preferences
26 ]);
27 }

mercurial