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

Unified Diff: test/webkit/fast/js/kde/lval-exceptions.js

Issue 2161413002: Adjust whitespace to make tests oblivious to --harmony-function-tostring (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: test/webkit/fast/js/kde/lval-exceptions.js
diff --git a/test/webkit/fast/js/kde/lval-exceptions.js b/test/webkit/fast/js/kde/lval-exceptions.js
index 14012b561db7d25a5f6eb964dba0a33009f8d307..eca07942fdea139d85de5cbfffbd015940d38462 100644
--- a/test/webkit/fast/js/kde/lval-exceptions.js
+++ b/test/webkit/fast/js/kde/lval-exceptions.js
@@ -25,19 +25,19 @@ description("KDE JS Test");
// Tests for raising --- and non-raising exceptions on access to reference to undefined things...
// Locals should throw on access if undefined..
-fnShouldThrow(function() { a = x; }, ReferenceError);
+fnShouldThrow(function () { a = x; }, ReferenceError);
// Read-modify-write versions of assignment should throw as well
-fnShouldThrow(function() { x += "foo"; }, ReferenceError);
+fnShouldThrow(function () { x += "foo"; }, ReferenceError);
// Other reference types should just return undefined...
a = new Object();
-fnShouldNotThrow(function() { b = a.x; });
-fnShouldNotThrow(function() { b = a['x']; });
-fnShouldNotThrow(function() { a['x'] += 'baz'; });
+fnShouldNotThrow(function () { b = a.x; });
+fnShouldNotThrow(function () { b = a['x']; });
+fnShouldNotThrow(function () { a['x'] += 'baz'; });
shouldBe("a['x']", '"undefinedbaz"');
-fnShouldNotThrow(function() { b = a.y; });
-fnShouldNotThrow(function() { a.y += 'glarch'; });
+fnShouldNotThrow(function () { b = a.y; });
+fnShouldNotThrow(function () { a.y += 'glarch'; });
shouldBe("a['y']", '"undefinedglarch"');
« no previous file with comments | « test/webkit/fast/js/function-toString-semicolon-insertion-expected.txt ('k') | test/webkit/resources/JSON-stringify.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698