Fixing tests of internal test suite.
This commit is contained in:
@@ -15,5 +15,5 @@
|
||||
var a = new Object();
|
||||
var b = 123;
|
||||
|
||||
assert(a.isPrototypeOf(b));
|
||||
assert(!a.isPrototypeOf(b));
|
||||
|
||||
|
||||
@@ -15,4 +15,4 @@
|
||||
var object = new Object();
|
||||
var otherObject = new Object();
|
||||
|
||||
assert(otherObject.isPrototypeOf(object));
|
||||
assert(!otherObject.isPrototypeOf(object));
|
||||
|
||||
@@ -13,4 +13,4 @@
|
||||
// limitations under the License.
|
||||
|
||||
var object = new Object();
|
||||
assert(object.isPrototypeOf(object));
|
||||
assert(!object.isPrototypeOf(object));
|
||||
|
||||
@@ -14,4 +14,4 @@
|
||||
|
||||
var object = Object.create(null);
|
||||
var temp = new Object();
|
||||
assert(temp.isPrototypeOf(object));
|
||||
assert(!temp.isPrototypeOf(object));
|
||||
|
||||
@@ -12,4 +12,12 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
Object.prototype.isPrototypeOf.call(undefined, {});
|
||||
try
|
||||
{
|
||||
Object.prototype.isPrototypeOf.call(undefined, {});
|
||||
|
||||
assert(false);
|
||||
} catch (e)
|
||||
{
|
||||
assert (e instanceof TypeError);
|
||||
}
|
||||
|
||||
@@ -23,4 +23,4 @@ var propertyDescriptor = {
|
||||
|
||||
Object.defineProperty(object, 'prop', propertyDescriptor);
|
||||
|
||||
assert(object.propertyIsEnumerable('prop'));
|
||||
assert(!object.propertyIsEnumerable('prop'));
|
||||
|
||||
Reference in New Issue
Block a user