This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = { | |
| 'asynchronousTest': function(test) { | |
| setTimeout(function() { | |
| // make an assertion (these are just regular assertions) | |
| test.ok(true); | |
| // finish the test | |
| test.finish(); | |
| },500); | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const PRESTART = 0 | |
| , STARTED = 1 | |
| , STARTDONE = 2 | |
| , STARTERRORED = 3 | |
| ; | |
| /* convenience function for wrapping a suite with setup and teardown | |
| * functions. this takes an object which has three properties: | |
| * | |
| * (by the way, I'm looking for a better name for this function) | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var numTests = 0 | |
| , callback | |
| , check = function() { | |
| if (numTests == 3 && callback) { | |
| callback(); | |
| } | |
| } | |
| ; | |
| module.exports = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // This test suite is for making sure that all the right functions are called | |
| // in the right order. We keep track of when everything is ran and then | |
| // output it all at the end. | |
| // | |
| // As such, you have to manually look at the quite cryptic output to make sure | |
| // it is doing what you want. | |
| if (module == require.main) { | |
| return require('../../lib/async_testing').run(process.ARGV, function() {/* do nothing */}); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| root/ | |
| C.js | |
| folder1/ | |
| C.js | |
| folder2/ | |
| A.js | |
| B.js | |
| folder3/ | |
| C.js | |
| folder4 --> /root/folder1/folder2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| exports.runFile = function(modulepath, options) { | |
| options = options || {}; | |
| if (options.testName && !Array.isArray(options.testName)) { | |
| options.testName = [options.testName]; | |
| } | |
| var child = spawn(process.execPath, [ __dirname+'/child.js' | |
| , modulepath | |
| , JSON.stringify(options.parallel || false) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/site/assets/javascript/polymaps.js b/site/assets/javascript/polymaps.js | |
| index 1424d82..8b88b68 100644 | |
| --- a/site/assets/javascript/polymaps.js | |
| +++ b/site/assets/javascript/polymaps.js | |
| @@ -372,6 +372,7 @@ po.map = function() { | |
| zoomFraction = 0, | |
| zoomFactor = 1, // Math.pow(2, zoomFraction) | |
| zoomRange = [1, 18], | |
| + loadNewTiles = true, | |
| angle = 0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ############### SETTINGS ############### | |
| # make it so there is no delay after hitting 'esc' to wait for a meta key. | |
| # This makes vim bearable | |
| set-option -s escape-time 0 | |
| # allow both Ctrl+b and Option+b to get to tmux command mode | |
| set -g prefix C-b,M-b | |
| # 256 colors |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Daemon.node: A node.JS addon that allows creating Unix/Linux Daemons in pure Javascript. | |
| * | |
| * Copyright 2010 (c) <[email protected]> | |
| * Modified By: Pedro Teixeira 2010 | |
| * Modified By: James Haliday 2010 | |
| * Modified By: Charlie Robbins 2010 | |
| * Modified By: Zak Taylor 2010 | |
| * Modified By: Daniel Bartlett 2011 | |
| * Modified By: Charlie Robbins 2011 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tests['video'] = function() { | |
| var elem = document.createElement('video'), | |
| bool = false; | |
| // IE9 Running on Windows Server SKU can cause an exception to be thrown, bug #224 | |
| try { | |
| if ( bool = !!elem.canPlayType ) { | |
| bool = new Boolean(bool); | |
| bool.ogg = elem.canPlayType('video/ogg; codecs="theora"'); |