1
0
Fork 0

Tests will not attempt to use Object.isFrozen() unless defined

closure/master
Mike Gerwitz 2010-12-28 09:14:54 -05:00
parent 665b11e116
commit dce46bb555
2 changed files with 19 additions and 10 deletions

View File

@ -44,8 +44,13 @@ assert.ok(
"Extend method creates a new object"
);
assert.equal(
Object.isFrozen( Foo ),
true,
"Generated class should be frozen"
);
// only perform check if supported by the engine
if ( Object.isFrozen )
{
assert.equal(
Object.isFrozen( Foo ),
true,
"Generated class should be frozen"
);
}

View File

@ -35,9 +35,13 @@ assert.ok(
"Interface extend method creates a new interface object"
);
assert.equal(
Object.isFrozen( FooType ),
true,
"Generated interface object should be frozen"
);
// only perform check if supported by the engine
if ( Object.isFrozen )
{
assert.equal(
Object.isFrozen( FooType ),
true,
"Generated interface object should be frozen"
);
}