This file contains 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
// get a Casper object. | |
// See http://casperjs.org/ | |
var casper = require('casper').create(); | |
// this will be evaluated inside the context of the window. | |
// See http://casperjs.org/api.html#casper.evaluate for notes on | |
// the difference between casper's running environment and the | |
// DOM environment of the loaded page. | |
function testReporter(){ | |
// casper is webkit, so we have good DOM methods. You're |
This file contains 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
// Ported from Stefan Gustavson's java implementation | |
// http://staffwww.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf | |
// Read Stefan's excellent paper for details on how this code works. | |
// | |
// Sean McCullough banksean@gmail.com | |
/** | |
* You can pass in a random number generator object if you like. | |
* It is assumed to have a random() method. | |
*/ |