1 Test importScripts for SharedWorkers.
4 PASS: importScripts(), exists, is a function, and doesn't throw when not given any arguments
5 Loaded message from different origin
6 PASS: executed script from different origin
7 Loaded message from different origin
8 PASS: executed script from different origin through a redirect
9 Testing single argument:
11 PASS: loaded first source
12 Testing multiple arguments:
15 PASS: Both sources loaded and executed.
16 Testing multiple arguments (different order):
17 Resource 2 loaded before resource 1
20 PASS: Both sources loaded and executed.
21 Testing multiple arguments, with different origin for one argument:
23 Loaded message from different origin
25 PASS: all resources executed.
27 PASS: Threw NetworkError: Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'http://127.0.0.1:8000/workers/resources/nonexistant' failed to load. when load failed
28 PASS: some resources were loaded despite the network error
30 PASS: Threw Error: Uncaught SyntaxError: Unexpected identifier when encountering a syntax error in imported script
31 PASS: some resources were loaded despite the presence of a syntax error
32 Testing multiple arguments, with first resource throwing an exception:
34 First resource throwing an exception
35 PASS: Propagated 'Error: Uncaught Thrown by first resource' from script
36 PASS: First resource was executed, and second resource was not
37 Testing multiple arguments, with second resource throwing an exception:
40 Second resource throwing an exception
41 PASS: Propagated 'Error: Uncaught Thrown by second resource' from script
42 PASS: Both scripts were executed
43 Testing multiple arguments, with second argument throwing in toString():
44 PASS: User error recieved in toString
45 PASS: No script was executed