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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector-unit/test-failure.js

Issue 2513423003: DevTools: Convert inspector-unit tests to use reusable test harness (Closed)
Patch Set: Moved type definition out of externs Created 4 years 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: third_party/WebKit/LayoutTests/http/tests/inspector-unit/test-failure.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector-unit/test-failure.js b/third_party/WebKit/LayoutTests/http/tests/inspector-unit/test-failure.js
new file mode 100644
index 0000000000000000000000000000000000000000..7db125793ca51c9d37413bae33f483f8eeacf7bc
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector-unit/test-failure.js
@@ -0,0 +1,2 @@
+TestRunner.addResult("Tests that a test will properly exit if it has an asynchronous error.");
+setTimeout(_ => { throw {stack: "This error is expected"} }, 0);

Powered by Google App Engine
This is Rietveld 408576698