Index: third_party/WebKit/LayoutTests/imported/wpt/workers/interfaces/WorkerUtils/importScripts/002.worker.js |
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/workers/interfaces/WorkerUtils/importScripts/002.worker.js b/third_party/WebKit/LayoutTests/imported/wpt/workers/interfaces/WorkerUtils/importScripts/002.worker.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2cecbcb53525691cefa687d8e7cb3302eeeb1d6c |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/imported/wpt/workers/interfaces/WorkerUtils/importScripts/002.worker.js |
@@ -0,0 +1,11 @@ |
+importScripts("/resources/testharness.js"); |
+ |
+test(function() { |
+ var ran = false; |
+ assert_throws("SyntaxError", function() { |
+ importScripts('data:text/javascript,ran=true','http://foo bar'); |
+ }); |
+ assert_false(ran, 'first argument to importScripts ran'); |
+}); |
+ |
+done(); |