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

Side by Side Diff: LayoutTests/fast/js/script-tests/exception-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, 4 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("Test for correct properties on Error objects.");
2
3 function enumerableProperties(object)
4 {
5 var result = [];
6 for (var i in object)
7 result.push(i);
8 return result;
9 }
10
11 try {
12 // generate a RangeError.
13 [].length = -1;
14 } catch (rangeError) {
15 var nativeError = rangeError;
16 var error = new Error("message");
17
18 shouldBe('enumerableProperties(error)', '[]');
19 shouldBe('enumerableProperties(nativeError)', '["stack", "line", "sourceURL" ]');
20
21 shouldBe('Object.getPrototypeOf(nativeError).name', '"RangeError"');
22 shouldBe('Object.getPrototypeOf(nativeError).message', '""');
23 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698