[#25] Combined separate property and method vis test
parent
6d1cc06c27
commit
ce7853965e
|
@ -87,7 +87,7 @@ require( 'common' ).testCase(
|
||||||
|
|
||||||
this.basicVisPropTest = function( vis )
|
this.basicVisPropTest = function( vis )
|
||||||
{
|
{
|
||||||
var name = vis + 'name',
|
var name = vis + 'propname',
|
||||||
val = vis + 'val';
|
val = vis + 'val';
|
||||||
|
|
||||||
this.buildStubProp( name, val, vis );
|
this.buildStubProp( name, val, vis );
|
||||||
|
@ -99,7 +99,7 @@ require( 'common' ).testCase(
|
||||||
|
|
||||||
this.basicVisMethodTest = function( vis )
|
this.basicVisMethodTest = function( vis )
|
||||||
{
|
{
|
||||||
var name = vis + 'name',
|
var name = vis + 'metohdname',
|
||||||
val = vis + 'val';
|
val = vis + 'val';
|
||||||
|
|
||||||
this.buildStubMethod( name, val, vis );
|
this.buildStubMethod( name, val, vis );
|
||||||
|
@ -225,7 +225,11 @@ require( 'common' ).testCase(
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
'Properties are only accessible via their respective interfaces': function()
|
/**
|
||||||
|
* The various members should be copied only to the interface specified by
|
||||||
|
* their access modifiers (public, protected, or private).
|
||||||
|
*/
|
||||||
|
'Members are only accessible via their respective interfaces': function()
|
||||||
{
|
{
|
||||||
var _self = this,
|
var _self = this,
|
||||||
tests = [ 'public', 'protected', 'private' ];
|
tests = [ 'public', 'protected', 'private' ];
|
||||||
|
@ -233,17 +237,6 @@ require( 'common' ).testCase(
|
||||||
for ( i in tests )
|
for ( i in tests )
|
||||||
{
|
{
|
||||||
_self.basicVisPropTest( tests[ i ] );
|
_self.basicVisPropTest( tests[ i ] );
|
||||||
};
|
|
||||||
},
|
|
||||||
|
|
||||||
|
|
||||||
'Methods are only accessible via their respective interfaces': function()
|
|
||||||
{
|
|
||||||
var _self = this;
|
|
||||||
tests = [ 'public', 'protected', 'private' ];
|
|
||||||
|
|
||||||
for ( i in tests )
|
|
||||||
{
|
|
||||||
_self.basicVisMethodTest( tests[ i ] );
|
_self.basicVisMethodTest( tests[ i ] );
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue