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

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

Issue 2513423003: DevTools: Convert inspector-unit tests to use reusable test harness (Closed)
Patch Set: clean diff Created 4 years, 1 month 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-spec.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector-unit/test-failure-spec.js b/third_party/WebKit/LayoutTests/http/tests/inspector-unit/test-failure-spec.js
new file mode 100644
index 0000000000000000000000000000000000000000..e6295c515fa415fe0659328d9ddb895cce5c0d64
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector-unit/test-failure-spec.js
@@ -0,0 +1,4 @@
+function test() {
+ UnitTest.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