1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/components/workerloader/tests/moduleA-depends.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,14 @@ 1.4 +/* Any copyright is dedicated to the Public Domain. 1.5 + http://creativecommons.org/publicdomain/zero/1.0/ */ 1.6 + 1.7 +// A trivial module that depends on an equally trivial module 1.8 +let B = require("chrome://mochitests/content/chrome/toolkit/components/workerloader/tests/moduleB-dependency.js"); 1.9 + 1.10 +// Ensure that the initial set of exports is empty 1.11 +if (Object.keys(exports).length) { 1.12 + throw new Error("exports should be empty, initially"); 1.13 +} 1.14 + 1.15 +// Export some values 1.16 +exports.A = true; 1.17 +exports.importedFoo = B.foo;