Summary

Harness status: OK

Found 7 tests

Details

ResultTest NameMessage
PassTest toString exception propagated correctly.
Asserts run
Pass
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)
PassTest recursive worker creation results in exception.
Asserts run
Pass
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)
PassTest SharedWorker creation without arguments results in exception.
Asserts run
Pass
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)
PassTest SharedWorker constructor without a name does not result in an exception.
Asserts runNo asserts ran
PassTest SharedWorker constructor with null name does not result in an exception.
Asserts runNo asserts ran
PassTest SharedWorker constructor with undefined name does not result in an exception.
Asserts runNo asserts ran
PassTest SharedWorker constructor suceeds.
Asserts runNo asserts ran