From 2da2247c8650add601ba6d55a0424da51fe791c7 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Sat, 22 Oct 2011 16:47:09 -0400 Subject: [PATCH] [#25] Added successful test to MemberBuilderValidator's method tests to ensure successful functionality is also tested --- test/MemberBuilderValidator/MethodTest.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/MemberBuilderValidator/MethodTest.js b/test/MemberBuilderValidator/MethodTest.js index 3804999..5e78bd6 100644 --- a/test/MemberBuilderValidator/MethodTest.js +++ b/test/MemberBuilderValidator/MethodTest.js @@ -240,6 +240,15 @@ require( 'common' ).testCase( }, + /** + * Ensure we do not prevent legitimate method overriding + */ + 'Can override concrete virtual method with concrete method': function() + { + this.quickKeywordMethodTest( [ 'override' ], null, [ 'virtual' ] ); + }, + + /** * Abstract methods act as a sort of placeholder, requiring an * implementation. Once an implementation has been defined, it does not make