MemberBuilderValidator tests now properly wrap certain functions (they were working, but let's be safe)
parent
e4cd1eabe5
commit
e385a9c8fb
|
@ -33,7 +33,10 @@ require( 'common' ).testCase(
|
||||||
{
|
{
|
||||||
var _self = this;
|
var _self = this;
|
||||||
|
|
||||||
this.quickFailureTest = shared.quickFailureTest;
|
this.quickFailureTest = function()
|
||||||
|
{
|
||||||
|
shared.quickFailureTest.apply( _self, arguments );
|
||||||
|
};
|
||||||
|
|
||||||
this.quickVisChangeTest = function( start, override, failtest, failstr )
|
this.quickVisChangeTest = function( start, override, failtest, failstr )
|
||||||
{
|
{
|
||||||
|
|
|
@ -39,7 +39,10 @@ require( 'common' ).testCase(
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
this.quickFailureTest = shared.quickFailureTest;
|
this.quickFailureTest = function()
|
||||||
|
{
|
||||||
|
shared.quickFailureTest.apply( _self, arguments );
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
this.quickVisChangeTest = function( start, override, failtest, failstr )
|
this.quickVisChangeTest = function( start, override, failtest, failstr )
|
||||||
|
|
|
@ -31,7 +31,10 @@ require( 'common' ).testCase(
|
||||||
{
|
{
|
||||||
var _self = this;
|
var _self = this;
|
||||||
|
|
||||||
this.quickFailureTest = shared.quickFailureTest;
|
this.quickFailureTest = function()
|
||||||
|
{
|
||||||
|
shared.quickFailureTest.apply( _self, arguments );
|
||||||
|
};
|
||||||
|
|
||||||
this.quickKeywordPropTest = function( keywords, identifier, prev )
|
this.quickKeywordPropTest = function( keywords, identifier, prev )
|
||||||
{
|
{
|
||||||
|
|
|
@ -119,11 +119,11 @@ exports.quickKeywordTest = function( type, keywords, identifier, prev )
|
||||||
|
|
||||||
if ( identifier )
|
if ( identifier )
|
||||||
{
|
{
|
||||||
_self.quickFailureTest( name, identifier, testfunc );
|
this.quickFailureTest.call( this, name, identifier, testfunc );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_self.assertDoesNotThrow( testfunc, Error );
|
this.assertDoesNotThrow( testfunc, Error );
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -206,11 +206,13 @@ exports.quickVisChangeTest = function(
|
||||||
|
|
||||||
if ( failtest )
|
if ( failtest )
|
||||||
{
|
{
|
||||||
this.quickFailureTest( name, ( failstr || 'de-escalate' ), testfun );
|
this.quickFailureTest.call( this,
|
||||||
|
name, ( failstr || 'de-escalate' ), testfun
|
||||||
|
);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_self.assertDoesNotThrow( testfun, Error );
|
this.assertDoesNotThrow( testfun, Error );
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue