1
0
Fork 0

[#25] Removed duplicate code from MemberBuilderValidator method test

closure/master
Mike Gerwitz 2011-10-22 16:37:07 -04:00
parent cf99aa88e8
commit 8ebcc3f1b3
1 changed files with 2 additions and 28 deletions

View File

@ -236,20 +236,7 @@ require( 'common' ).testCase(
*/
'Cannot override non-virtual methods': function()
{
var name = 'foo',
_self = this;
this.quickFailureTest( name, 'non-virtual', function()
{
// override provided, but not 'virtual'
_self.sut.validateMethod(
name,
function() {},
{ override: true },
{ member: function() {} },
{}
);
} );
this.quickKeywordMethodTest( [ 'override' ], 'non-virtual', [] );
},
@ -261,20 +248,7 @@ require( 'common' ).testCase(
*/
'Cannot override concrete method with abstract method': function()
{
var name = 'foo',
_self = this;
this.quickFailureTest( name, 'concrete', function()
{
// attempting to override concrete (non-abstract) method
_self.sut.validateMethod(
name,
function() {},
{ 'abstract': true },
{ member: function() {} },
{}
);
} );
this.quickKeywordMethodTest( [ 'abstract' ], 'concrete', [] );
},