Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
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 |