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

Unified Diff: test/inspector/runtime/exception-thrown.js

Issue 2384373002: [inspector] introduced exceptionThrown support in test runner (Closed)
Patch Set: addressed comments Created 4 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
Index: test/inspector/runtime/exception-thrown.js
diff --git a/test/inspector/runtime/exception-thrown.js b/test/inspector/runtime/exception-thrown.js
new file mode 100644
index 0000000000000000000000000000000000000000..76752f9d3b9ea2f070827dd0d9224fdb443e90a4
--- /dev/null
+++ b/test/inspector/runtime/exception-thrown.js
@@ -0,0 +1,12 @@
+// Copyright 2016 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+print("Check that exceptionThrown is supported by test runner.")
+
+Protocol.Runtime.enable();
+Protocol.Runtime.onExceptionThrown(message => InspectorTest.logMessage(message));
+Protocol.Runtime.evaluate({ expression: "setTimeout(() => { \n throw new Error() }, 0)" });
+Protocol.Runtime.evaluate({ expression: "setTimeout(\" }\", 0)" });
+Protocol.Runtime.evaluate({ expression: "setTimeout(() => { \n throw 239; }, 0)" });
+InspectorTest.completeTestAfterPendingTimeouts();
« no previous file with comments | « test/inspector/runtime/console-line-and-column-expected.txt ('k') | test/inspector/runtime/exception-thrown-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698