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

Unified Diff: test/webkit/object-literal-syntax.js

Issue 491053002: Add back the duplicate property checker (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/test262/test262.status ('k') | test/webkit/object-literal-syntax-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/webkit/object-literal-syntax.js
diff --git a/test/webkit/object-literal-syntax.js b/test/webkit/object-literal-syntax.js
index 40f842b40392a5960a9cc99fa89678d1012c5b35..e9cc2dd8c51cc89bd6cfa3963f0f841babd9a77b 100644
--- a/test/webkit/object-literal-syntax.js
+++ b/test/webkit/object-literal-syntax.js
@@ -23,20 +23,20 @@
description("Make sure that we correctly identify parse errors in object literals");
-shouldBeTrue("({a:1, get a(){}}), true");
-shouldBeTrue("({a:1, set a(v){}}), true");
-shouldBeTrue("({get a(){}, a:1}), true");
-shouldBeTrue("({set a(v){}, a:1}), true");
-shouldBeTrue("({get a(){}, get a(){}}), true");
-shouldBeTrue("({set a(v){}, set a(v){}}), true");
-shouldBeTrue("({set a(v){}, get a(){}, set a(v){}}), true");
-shouldBeTrue("(function(){({a:1, get a(){}})}), true");
-shouldBeTrue("(function(){({a:1, set a(v){}})}), true");
-shouldBeTrue("(function(){({get a(){}, a:1})}), true");
-shouldBeTrue("(function(){({set a(v){}, a:1})}), true");
-shouldBeTrue("(function(){({get a(){}, get a(){}})}), true");
-shouldBeTrue("(function(){({set a(v){}, set a(v){}})}), true");
-shouldBeTrue("(function(){({set a(v){}, get a(){}, set a(v){}})}), true");
+shouldThrow("({a:1, get a(){}})");
+shouldThrow("({a:1, set a(v){}})");
+shouldThrow("({get a(){}, a:1})");
+shouldThrow("({set a(v){}, a:1})");
+shouldThrow("({get a(){}, get a(){}})");
+shouldThrow("({set a(v){}, set a(v){}})");
+shouldThrow("({set a(v){}, get a(){}, set a(v){}})");
+shouldThrow("(function(){({a:1, get a(){}})})");
+shouldThrow("(function(){({a:1, set a(v){}})})");
+shouldThrow("(function(){({get a(){}, a:1})})");
+shouldThrow("(function(){({set a(v){}, a:1})})");
+shouldThrow("(function(){({get a(){}, get a(){}})})");
+shouldThrow("(function(){({set a(v){}, set a(v){}})})");
+shouldThrow("(function(){({set a(v){}, get a(){}, set a(v){}})})");
shouldBeTrue("({a:1, a:1, a:1}), true");
shouldBeTrue("({get a(){}, set a(v){}}), true");
shouldBeTrue("({set a(v){}, get a(){}}), true");
« no previous file with comments | « test/test262/test262.status ('k') | test/webkit/object-literal-syntax-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698