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

Unified Diff: LayoutTests/inspector/console/console-eval-throw-expected.txt

Issue 369333002: DevTools: Added error message when the command is invoked from the console with exception (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@add-evaluate-exception-details
Patch Set: Created 6 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/inspector/console/console-eval-throw-expected.txt
diff --git a/LayoutTests/inspector/console/console-eval-throw-expected.txt b/LayoutTests/inspector/console/console-eval-throw-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..6d0e7295bc8f4543d7a0a4e4b0c5984165471741
--- /dev/null
+++ b/LayoutTests/inspector/console/console-eval-throw-expected.txt
@@ -0,0 +1,43 @@
+Tests that evaluating 'throw undefined|1|string|object|Error' in the console won't crash the browser and correctly reported. Bug 59611.
+
+
+Running: testThrowUndefined
vsevik 2014/07/18 14:41:06 We should clear messages between tests in test sui
kozyatinskiy1 2014/07/18 16:10:08 Done.
+throw undefined
+Uncaught undefined VM:2
+
+Running: testThrowNumber
+throw undefined
+Uncaught undefined VM:2
+throw 1
+Uncaught 1 VM:2
+
+Running: testThrowString
+throw undefined
+Uncaught undefined VM:2
+throw 1
+Uncaught 1 VM:2
+throw 'asdf'
+Uncaught asdf VM:2
+
+Running: testThrowObject
+throw undefined
+Uncaught undefined VM:2
+throw 1
+Uncaught 1 VM:2
+throw 'asdf'
+Uncaught asdf VM:2
+throw {a:42}
+Uncaught Object {a: 42} VM:2
+
+Running: testThrowError
+throw undefined
+Uncaught undefined VM:2
+throw 1
+Uncaught 1 VM:2
+throw 'asdf'
+Uncaught asdf VM:2
+throw {a:42}
+Uncaught Object {a: 42} VM:2
+throw new Error('asdf')
+Uncaught Error: asdf VM:2
+

Powered by Google App Engine
This is Rietveld 408576698