Tests now explicitly specify relative path to tested module
- Certain modules otherwise have naming conflicts (e.g. util in node.js is loaded instead)closure/master
parent
7e7080ccbf
commit
a3cf31aa40
|
@ -22,5 +22,5 @@
|
|||
* @package test
|
||||
*/
|
||||
|
||||
require.paths.unshift( __dirname + '/../lib' );
|
||||
// may be implemented in the future
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
require( './common' );
|
||||
|
||||
var assert = require( 'assert' ),
|
||||
Class = require( 'class' );
|
||||
Class = require( '../lib/class' );
|
||||
|
||||
// these two variables are declared outside of the class to ensure that they
|
||||
// will still be set even if the context of the constructor is wrong
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
require( './common' );
|
||||
|
||||
var assert = require( 'assert' ),
|
||||
Class = require( 'class' );
|
||||
Class = require( '../lib/class' );
|
||||
|
||||
var foo_props = {
|
||||
one: 1,
|
||||
|
|
|
@ -31,7 +31,7 @@ if ( Object.prototype.__defineGetter__ === undefined )
|
|||
require( './common' );
|
||||
|
||||
var assert = require( 'assert' ),
|
||||
Class = require( 'class' );
|
||||
Class = require( '../lib/class' );
|
||||
|
||||
|
||||
var Foo = Class.extend(
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
require( './common' );
|
||||
|
||||
var assert = require( 'assert' ),
|
||||
Class = require( 'class' );
|
||||
Class = require( '../lib/class' );
|
||||
|
||||
var Foo = Class.extend(
|
||||
{
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
require( './common' );
|
||||
|
||||
var assert = require( 'assert' ),
|
||||
Class = require( 'class' );
|
||||
Class = require( '../lib/class' );
|
||||
|
||||
|
||||
assert.ok(
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
require( './common' );
|
||||
|
||||
var assert = require( 'assert' ),
|
||||
Class = require( 'class' ),
|
||||
Class = require( '../lib/class' ),
|
||||
Script = process.binding( 'evals' ).Script,
|
||||
sandbox = {};
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
require( './common' );
|
||||
|
||||
var assert = require( 'assert' ),
|
||||
Class = require( 'class' ),
|
||||
Class = require( '../lib/class' ),
|
||||
index = require( '../' );
|
||||
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
require( './common' );
|
||||
|
||||
var assert = require( 'assert' ),
|
||||
Interface = require( 'interface' ),
|
||||
Interface = require( '../lib/interface' ),
|
||||
abstractMethod = Interface.abstractMethod;
|
||||
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
require( './common' );
|
||||
|
||||
var assert = require( 'assert' ),
|
||||
Interface = require( 'interface' ),
|
||||
Interface = require( '../lib/interface' ),
|
||||
abstractMethod = Interface.abstractMethod;
|
||||
|
||||
var FooType = Interface.extend();
|
||||
|
|
Loading…
Reference in New Issue