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

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

Issue 2392433003: DevTools: Catch async errors in unit tests (Closed)
Patch Set: Style 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: third_party/WebKit/LayoutTests/http/tests/inspector-unit/test-failure.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector-unit/test-failure.html b/third_party/WebKit/LayoutTests/http/tests/inspector-unit/test-failure.html
new file mode 100644
index 0000000000000000000000000000000000000000..1a0bc2481fb1824586b686ac6f30cce9219894f5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector-unit/test-failure.html
@@ -0,0 +1,16 @@
+<html>
+<head>
+<base href="/inspector-debug/"></base>
+<script src="/inspector-debug/Runtime.js"></script>
+<script src="/inspector-unit/inspector-unit-test.js"></script>
+<script>
+function test()
+{
+ setTimeout(_ => { throw {stack: "This error is expected"} }, 0);
+}
+</script>
+</head>
+<body>
+Tests that a test will properly exit if it has an asynchronous error.
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698