Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Side by Side Diff: LayoutTests/fast/js/script-tests/object-prototype-properties.js

Issue 20867002: Remove old tests that have been migrated to the v8 repo. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove unused script-tests as well Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 description(
2 'This is a test case for <a https://bugs.webkit.org/show_bug.cgi?id=64678">bug 6 4678</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 toObjec t.
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, 'propertyIsEn umerable')");
14 shouldThrow("Object.prototype.isPrototypeOf.call(undefined, this)");
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698