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

Unified Diff: test/webkit/eval-throw-return.js

Issue 1415283003: Adapt tests in preparation of shipping --harmony-completion. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address comments. Created 5 years, 2 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/mjsunit/harmony/do-expressions.js ('k') | test/webkit/eval-throw-return-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/webkit/eval-throw-return.js
diff --git a/test/webkit/eval-throw-return.js b/test/webkit/eval-throw-return.js
index d5c23a7b015b0dbab022d1a0cbebe3498ad6f524..34c2870c8d41f64a2a8ccd7328f46adf1d59c801 100644
--- a/test/webkit/eval-throw-return.js
+++ b/test/webkit/eval-throw-return.js
@@ -37,9 +37,6 @@ function twoFunc() {
}
shouldBe('eval("1;")', "1");
-shouldBe('eval("1; try { foo = [2,3,throwFunc(), 4]; } catch (e){}")', "1");
-shouldBe('eval("1; try { 2; throw \\"\\"; } catch (e){}")', "1");
-shouldBe('eval("1; try { 2; throwFunc(); } catch (e){}")', "1");
shouldBe('eval("1; try { 2; throwFunc(); } catch (e){3;} finally {}")', "3");
shouldBe('eval("1; try { 2; throwFunc(); } catch (e){3;} finally {4;}")', "3");
shouldBe('eval("function blah() { 1; }\\n blah();")', "undefined");
@@ -48,7 +45,5 @@ shouldBe('eval("if (true) { 1; } else { 2; }")', "1");
shouldBe('eval("if (false) { 1; } else { 2; }")', "2");
shouldBe('eval("try{1; if (true) { 2; throw \\"\\"; } else { 2; }} catch(e){}")', "undefined");
shouldBe('eval("1; var i = 0; do { ++i; 2; } while(i!=1);")', "2");
-//shouldBe('eval("try{1; var i = 0; do { ++i; 2; throw \\"\\"; } while(i!=1);} catch(e){}")', "undefined");
-shouldBe('eval("1; try{2; throwOnReturn();} catch(e){}")', "1");
shouldBe('eval("1; twoFunc();")', "undefined");
shouldBe('eval("1; with ( { a: 0 } ) { 2; }")', "2");
« no previous file with comments | « test/mjsunit/harmony/do-expressions.js ('k') | test/webkit/eval-throw-return-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698