phantomjs/test/require
Juliusz Gonera 2d42b52c67 Make require.stub() optionally accept a factory function
require.stub() can now accept a factory function instead of an object
so that stubbed modules are initialized lazily:

require.stub('zlib', function() {
    // initialized once, when zlib first required
    return {
        createGzip: function() { ... }
    };
});

http://code.google.com/p/phantomjs/issues/detail?id=1044
2013-02-05 00:04:17 -08:00
..
dir Add require() tests and comment buggy test in fs-spec-03.js 2012-07-12 23:14:12 -07:00
node_modules Fix indentation to 4 spaces in new require() tests 2012-07-12 23:14:12 -07:00
a.js Add require() tests and comment buggy test in fs-spec-03.js 2012-07-12 23:14:12 -07:00
b.js Add require() tests and comment buggy test in fs-spec-03.js 2012-07-12 23:14:12 -07:00
coffee_dummy.coffee Add require() tests and comment buggy test in fs-spec-03.js 2012-07-12 23:14:12 -07:00
dummy.js Add require() tests and comment buggy test in fs-spec-03.js 2012-07-12 23:14:12 -07:00
empty.js Add require() tests and comment buggy test in fs-spec-03.js 2012-07-12 23:14:12 -07:00
json_dummy.json Fix indentation to 4 spaces in new require() tests 2012-07-12 23:14:12 -07:00
not_found.js Fix stack trace when module is not found 2012-07-12 23:14:12 -07:00
require_spec.js Make require.stub() optionally accept a factory function 2013-02-05 00:04:17 -08:00
stubber.js Fix indentation to 4 spaces in new require() tests 2012-07-12 23:14:12 -07:00
stubber_child.js Add require() tests and comment buggy test in fs-spec-03.js 2012-07-12 23:14:12 -07:00
thrower.js Fix indentation to 4 spaces in new require() tests 2012-07-12 23:14:12 -07:00