diff options
author | Kristian Lyngstol <kristian@bohemians.org> | 2016-03-04 19:10:04 +0100 |
---|---|---|
committer | Kristian Lyngstol <kristian@bohemians.org> | 2016-03-04 19:10:04 +0100 |
commit | 15dde408db57009e1e4e26d969b9b3e6c1e0c255 (patch) | |
tree | bed87bc591f44dbdc7967c2c9f8b26dd1b040f49 /web/nms.gathering.org/speedometer/d3-master/test/load.js | |
parent | 2e808e318a7b9abd09bf93116dae5368025c3611 (diff) |
nms: Remove redundant files
speedometer probably doesn't work now anyway until it's heavily updated.
Diffstat (limited to 'web/nms.gathering.org/speedometer/d3-master/test/load.js')
-rw-r--r-- | web/nms.gathering.org/speedometer/d3-master/test/load.js | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/web/nms.gathering.org/speedometer/d3-master/test/load.js b/web/nms.gathering.org/speedometer/d3-master/test/load.js deleted file mode 100644 index 43ea239..0000000 --- a/web/nms.gathering.org/speedometer/d3-master/test/load.js +++ /dev/null @@ -1,62 +0,0 @@ -process.env.TZ = "America/Los_Angeles"; - -var smash = require("smash"), - jsdom = require("jsdom"); - -require("./XMLHttpRequest"); - -module.exports = function() { - var files = [].slice.call(arguments).map(function(d) { return "src/" + d; }), - expression = "d3", - sandbox = {console: console, Date: Date}; // so we can use deepEqual in tests - - files.unshift("test/start"); - - function topic() { - var callback = this.callback; - smash.load(files, expression, sandbox, function(error, result) { - if (error) console.trace(error.stack); - callback(error, result); - }); - } - - topic.expression = function(_) { - expression = _; - return topic; - }; - - topic.sandbox = function(_) { - sandbox = _; - return topic; - }; - - topic.document = function(_) { - var document = jsdom.jsdom(); - - // Monkey-patch createRange support to JSDOM. - document.createRange = function() { - return { - selectNode: function() {}, - createContextualFragment: jsdom.jsdom - }; - }; - - sandbox = { - console: console, - XMLHttpRequest: XMLHttpRequest, - document: document, - window: document.parentWindow, - setTimeout: setTimeout, - clearTimeout: clearTimeout, - Date: Date // so we can override Date.now in tests, and use deepEqual - }; - - return topic; - }; - - return topic; -}; - -process.on("uncaughtException", function(e) { - console.trace(e.stack); -}); |