Index: LayoutTests/fast/workers/worker-nested-importScripts-error.html |
diff --git a/LayoutTests/fast/workers/worker-nested-importScripts-error.html b/LayoutTests/fast/workers/worker-nested-importScripts-error.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..49cdacc4ca674dad11e1e755b0567e09eca97d94 |
--- /dev/null |
+++ b/LayoutTests/fast/workers/worker-nested-importScripts-error.html |
@@ -0,0 +1,22 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+<script src="../../resources/js-test.js"></script> |
+</head> |
+<body> |
+<script> |
+description("This tests that errors from nested importScripts have the expected provenance."); |
+ |
+self.jsTestIsAsync = true; |
+ |
+var worker = startWorker("resources/importScripts-1.js"); |
+var event; |
+worker.onerror = function (e) { |
+ event = e; |
+ shouldBeEqualToString("event.type", "error"); |
+ shouldBeTrue("event.filename.indexOf('invalidScript.js') >= 0"); |
+ finishJSTest(); |
+}; |
+</script> |
+</body> |
+</html> |