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

Unified Diff: test/mjsunit/debug-scripts-throw.js

Issue 1411193002: [debugger] Add test for Debug.scripts without listener. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/debug-scripts-throw.js
diff --git a/test/mjsunit/regress/regress-crbug-474297.js b/test/mjsunit/debug-scripts-throw.js
similarity index 53%
copy from test/mjsunit/regress/regress-crbug-474297.js
copy to test/mjsunit/debug-scripts-throw.js
index ce240251bdbc7abcab5be67742e14d9c920e8435..ee7cbd335b32cb6bb436da3bbbde36bebf65e700 100644
--- a/test/mjsunit/regress/regress-crbug-474297.js
+++ b/test/mjsunit/debug-scripts-throw.js
@@ -2,11 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Flags: --gc-interval=33 --expose-gc --allow-natives-syntax
+// Flags: --expose-debug-as debug
-var Debug = %GetDebugContext().Debug;
-Debug.setListener(function(){});
+// Get the Debug object exposed from the debug context global object.
+Debug = debug.Debug;
-%DebugGetLoadedScripts();
+assertThrows("Debug.scripts()");
+Debug.setListener(function(){});
+assertDoesNotThrow("Debug.scripts()");
Debug.setListener(null);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698