tizen beta release
[profile/ivi/webkit-efl.git] / LayoutTests / fast / js / script-tests / object-prototype-properties.js
1 description(
2 'This is a test case for <a https://bugs.webkit.org/show_bug.cgi?id=64678">bug 64678</a>.'
3 );
4
5 //ES 5.1 allows for Object.prototype.toString being called with undefined/null.
6 shouldBe("Object.prototype.toString.call(undefined)", '"[object Undefined]"');
7 shouldBe("Object.prototype.toString.call(null)", '"[object Null]"');
8
9 // These calls pass undefined as this value, and as such should throw in toObject.
10 shouldThrow("Object.prototype.toLocaleString.call(undefined)");
11 shouldThrow("Object.prototype.valueOf.call(undefined)");
12 shouldThrow("Object.prototype.hasOwnProperty.call(undefined, 'hasOwnProperty')");
13 shouldThrow("Object.prototype.propertyIsEnumerable.call(undefined, 'propertyIsEnumerable')");
14 shouldThrow("Object.prototype.isPrototypeOf.call(undefined, this)");