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

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: address CL feedback 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.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..55b96087921e36914307a8a3964f86c312ad9bf8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector-unit/test-failure.js
@@ -0,0 +1,2 @@
+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