Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* Any copyright is dedicated to the Public Domain. |
michael@0 | 2 | * http://creativecommons.org/publicdomain/zero/1.0/ */ |
michael@0 | 3 | |
michael@0 | 4 | "use strict"; |
michael@0 | 5 | |
michael@0 | 6 | const modules = [ |
michael@0 | 7 | "dataprovider.jsm", |
michael@0 | 8 | "providermanager.jsm", |
michael@0 | 9 | "storage.jsm", |
michael@0 | 10 | ]; |
michael@0 | 11 | |
michael@0 | 12 | const test_modules = [ |
michael@0 | 13 | "mocks.jsm", |
michael@0 | 14 | ]; |
michael@0 | 15 | |
michael@0 | 16 | function run_test() { |
michael@0 | 17 | for (let m of modules) { |
michael@0 | 18 | let resource = "resource://gre/modules/services/metrics/" + m; |
michael@0 | 19 | Components.utils.import(resource, {}); |
michael@0 | 20 | } |
michael@0 | 21 | |
michael@0 | 22 | Components.utils.import("resource://gre/modules/Metrics.jsm", {}); |
michael@0 | 23 | |
michael@0 | 24 | for (let m of test_modules) { |
michael@0 | 25 | let resource = "resource://testing-common/services/metrics/" + m; |
michael@0 | 26 | Components.utils.import(resource, {}); |
michael@0 | 27 | } |
michael@0 | 28 | |
michael@0 | 29 | Components.utils.import("resource://gre/modules/Metrics.jsm", {}); |
michael@0 | 30 | } |
michael@0 | 31 |