Index: third_party/WebKit/LayoutTests/http/tests/dom/script-module-load-incomplete-no-crash.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/dom/script-module-load-incomplete-no-crash.html b/third_party/WebKit/LayoutTests/http/tests/dom/script-module-load-incomplete-no-crash.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..135a0ce1e06834f17263d6e6b4a8d7619aa33538 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/http/tests/dom/script-module-load-incomplete-no-crash.html |
@@ -0,0 +1,12 @@ |
+<!DOCTYPE html> |
+<title>Module script graph fetch in flight when document is destroyed shouldn't crash.</title> |
+<script> |
+// This test expects the testrunner terminates the test without waiting for onload. |
+ |
+if (window.testRunner) |
+ testRunner.dumpAsText(); |
+</script> |
+<script type="module"> |
+import { notfound } from "./404.js"; |
+import { slow } from "./../../resources/slow-script.pl?delay=1000"; |
+</script> |