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

Unified Diff: LayoutTests/fast/js/script-tests/stack-overflow-arrity-catch.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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/js/script-tests/stack-overflow-arrity-catch.js
diff --git a/LayoutTests/fast/js/script-tests/stack-overflow-arrity-catch.js b/LayoutTests/fast/js/script-tests/stack-overflow-arrity-catch.js
deleted file mode 100644
index deb11721f0f9200c1ba4406d6d87cb1f30ca41af..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/js/script-tests/stack-overflow-arrity-catch.js
+++ /dev/null
@@ -1,58 +0,0 @@
-description('Test that if an arrity check causes a stack overflow, the exception goes to the right catch');
-
-function funcWith20Args(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8,
- arg9, arg10, arg11, arg12, arg13, arg14, arg15,
- arg16, arg17, arg18, arg19, arg20)
-{
- debug("ERROR: Shouldn't arrive in 20 arg function!");
-}
-
-var gotRightCatch = false, gotWrongCatch1 = false, gotWrongCatch2 = false;
-
-function test1()
-{
- try {
- test2();
- } catch (err) {
- // Should get here because of stack overflow,
- // now cause a stack overflow exception due to arrity processing
- try {
- var dummy = new RegExp('a|b|c');
- } catch(err) {
- gotWrongCatch1 = true;
- }
-
- try {
- funcWith20Args(1, 2, 3);
- } catch (err2) {
- gotRightCatch = true;
- }
- }
-}
-
-function test2()
-{
- try {
- var dummy = new Date();
- } catch(err) {
- gotWrongCatch2 = true;
- }
-
- try {
- test1();
- } catch (err) {
- // Should get here because of stack overflow,
- // now cause a stack overflow exception due to arrity processing
- try {
- funcWith20Args(1, 2, 3, 4, 5, 6);
- } catch (err2) {
- gotRightCatch = true;
- }
- }
-}
-
-test1();
-
-shouldBeTrue("gotRightCatch");
-shouldBeFalse("gotWrongCatch1");
-shouldBeFalse("gotWrongCatch2");
« no previous file with comments | « LayoutTests/fast/js/script-tests/reserved-words-strict.js ('k') | LayoutTests/fast/js/script-tests/string-capitalization.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698