Pass | Test toString exception propagated correctly. | Asserts runPass | assert_throws_js(function "function Error() { [native code] }", function "function() { new SharedWorker({toString:function(){throw new Error()}}, "name") }", "toString exception not propagated")
at Test.<anonymous> ( /workers/SharedWorker-constructor.html:8:3) |
|
Pass | Test recursive worker creation results in exception. | Asserts runPass | assert_throws_js(function "function RangeError() { [native code] }", function "function() { var foo = {toString:function(){new Worker(foo)}} new SharedWorker(foo, name); }", "Trying to create workers recursively did not result in an exception.")
at Test.<anonymous> ( /workers/SharedWorker-constructor.html:15:3) |
|
Pass | Test SharedWorker creation without arguments results in exception. | Asserts runPass | assert_throws_js(function "function TypeError() { [native code] }", function "function() { new SharedWorker(); }", "Invoking SharedWorker constructor without arguments did not result in an exception.")
at Test.<anonymous> ( /workers/SharedWorker-constructor.html:23:3) |
|
Pass | Test SharedWorker constructor without a name does not result in an exception. | Asserts runNo asserts ran |
Pass | Test SharedWorker constructor with null name does not result in an exception. | Asserts runNo asserts ran |
Pass | Test SharedWorker constructor with undefined name does not result in an exception. | Asserts runNo asserts ran |
Pass | Test SharedWorker constructor suceeds. | Asserts runNo asserts ran |