Summary

Harness status: OK

Found 22 tests

Details

ResultTest NameMessage
PassReturning a string must not cancel the event: CustomEvent, non-cancelable
Asserts run
Pass
assert_true(true, "CustomEvent must be able to trigger the event handler")
    at  /html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling.html:23:5
Pass
assert_false(false, "The event must not have been canceled")
    at  /html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling.html:24:5
PassReturning a string must not cancel the event: CustomEvent, cancelable
Asserts run
Pass
assert_true(true, "CustomEvent must be able to trigger the event handler")
    at  /html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling.html:42:5
Pass
assert_false(false, "The event must not have been canceled")
    at  /html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling.html:43:5
PassReturning false must not cancel the event, because it's coerced to the DOMString "false" which does not cancel CustomEvents: CustomEvent, cancelable
Asserts run
Pass
assert_true(true, "CustomEvent must be able to trigger the event handler")
    at  /html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling.html:62:5
Pass
assert_false(false, "The event must not have been canceled")
    at  /html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling.html:63:5
PassReturning a string must not cancel the event: BeforeUnloadEvent with type "click", cancelable
Asserts run
Pass
assert_false(false, "The event must not have been canceled")
    at  /html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling.html:79:5
PassReturning null with a real iframe unloading
Asserts run
Pass
assert_equals(false, false, "canceled")
    at Test.<anonymous> ( /html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling-1.html:24:9)
Pass
assert_equals("", "", "returnValue")
    at Test.<anonymous> ( /html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling-1.html:25:9)
PassReturning undefined with a real iframe unloading
Asserts run
Pass
assert_equals(false, false, "canceled")
    at Test.<anonymous> ( /html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling-1.html:24:9)
Pass
assert_equals("", "", "returnValue")
    at Test.<anonymous> ( /html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling-1.html:25:9)
PassReturning with a real iframe unloading
Asserts run
Pass
assert_equals(true, true, "canceled")
    at Test.<anonymous> ( /html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling-1.html:24:9)
Pass
assert_equals("", "", "returnValue")
    at Test.<anonymous> ( /html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling-1.html:25:9)
PassReturning false with a real iframe unloading
Asserts run
Pass
assert_equals(true, true, "canceled")
    at Test.<anonymous> ( /html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling-1.html:24:9)
Pass
assert_equals("false", "false", "returnValue")
    at Test.<anonymous> ( /html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling-1.html:25:9)
PassReturning true with a real iframe unloading
Asserts run
Pass
assert_equals(true, true, "canceled")
    at Test.<anonymous> ( /html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling-1.html:24:9)
Pass
assert_equals("true", "true", "returnValue")
    at Test.<anonymous> ( /html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling-1.html:25:9)
PassReturning 0 with a real iframe unloading
Asserts run
Pass
assert_equals(true, true, "canceled")
    at Test.<anonymous> ( /html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling-1.html:24:9)
Pass
assert_equals("0", "0", "returnValue")
    at Test.<anonymous> ( /html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling-1.html:25:9)
PassReturning null with a real iframe unloading; setting returnValue to foo
Asserts run
Pass
assert_equals(false, false, "canceled")
    at Test.<anonymous> ( /html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling-1.html:24:9)
Pass
assert_equals("foo", "foo", "returnValue")
    at Test.<anonymous> ( /html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling-1.html:25:9)
PassReturning undefined with a real iframe unloading; setting returnValue to foo
Asserts run
Pass
assert_equals(false, false, "canceled")
    at Test.<anonymous> ( /html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling-1.html:24:9)
Pass
assert_equals("foo", "foo", "returnValue")
    at Test.<anonymous> ( /html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling-1.html:25:9)
PassReturning with a real iframe unloading; setting returnValue to foo
Asserts run
Pass
assert_equals(true, true, "canceled")
    at Test.<anonymous> ( /html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling-1.html:24:9)
Pass
assert_equals("foo", "foo", "returnValue")
    at Test.<anonymous> ( /html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling-1.html:25:9)
PassReturning false with a real iframe unloading; setting returnValue to foo
Asserts run
Pass
assert_equals(true, true, "canceled")
    at Test.<anonymous> ( /html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling-1.html:24:9)
Pass
assert_equals("foo", "foo", "returnValue")
    at Test.<anonymous> ( /html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling-1.html:25:9)
PassReturning true with a real iframe unloading; setting returnValue to foo
Asserts run
Pass
assert_equals(true, true, "canceled")
    at Test.<anonymous> ( /html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling-1.html:24:9)
Pass
assert_equals("foo", "foo", "returnValue")
    at Test.<anonymous> ( /html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling-1.html:25:9)
PassReturning 0 with a real iframe unloading; setting returnValue to foo
Asserts run
Pass
assert_equals(true, true, "canceled")
    at Test.<anonymous> ( /html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling-1.html:24:9)
Pass
assert_equals("foo", "foo", "returnValue")
    at Test.<anonymous> ( /html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling-1.html:25:9)
PassReturning undefined with a real iframe unloading; setting returnValue to
Asserts run
Pass
assert_equals(false, false, "canceled")
    at Test.<anonymous> ( /html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling-1.html:24:9)
Pass
assert_equals("", "", "returnValue")
    at Test.<anonymous> ( /html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling-1.html:25:9)
PassReturning undefined with a real iframe unloading; calling preventDefault()
Asserts run
Pass
assert_equals(true, true, "canceled")
    at Test.<anonymous> ( /html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling-1.html:24:9)
Pass
assert_equals("", "", "returnValue")
    at Test.<anonymous> ( /html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling-1.html:25:9)
PassReturning undefined with a real iframe unloading; setting returnValue to foo; calling preventDefault()
Asserts run
Pass
assert_equals(true, true, "canceled")
    at Test.<anonymous> ( /html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling-1.html:24:9)
Pass
assert_equals("foo", "foo", "returnValue")
    at Test.<anonymous> ( /html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling-1.html:25:9)
PassReturning foo with a real iframe unloading; calling preventDefault()
Asserts run
Pass
assert_equals(true, true, "canceled")
    at Test.<anonymous> ( /html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling-1.html:24:9)
Pass
assert_equals("foo", "foo", "returnValue")
    at Test.<anonymous> ( /html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling-1.html:25:9)
PassReturning foo with a real iframe unloading; setting returnValue to foo; calling preventDefault()
Asserts run
Pass
assert_equals(true, true, "canceled")
    at Test.<anonymous> ( /html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling-1.html:24:9)
Pass
assert_equals("foo", "foo", "returnValue")
    at Test.<anonymous> ( /html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling-1.html:25:9)
PassReturning true with a real iframe unloading; setting returnValue to ; calling preventDefault()
Asserts run
Pass
assert_equals(true, true, "canceled")
    at Test.<anonymous> ( /html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling-1.html:24:9)
Pass
assert_equals("true", "true", "returnValue")
    at Test.<anonymous> ( /html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling-1.html:25:9)