Summary

Harness status: OK

Found 18 tests

Details

ResultTest NameMessage
Passwindow.getSelection() instanceof Selection
Asserts run
Pass
assert_true(true, "Sanity check: window must have Selection property")
    at Test.<anonymous> ( /selection/getSelection.html:17:5)
Pass
assert_true(true)
    at Test.<anonymous> ( /selection/getSelection.html:20:5)
Passwindow.getSelection() === window.getSelection()
Asserts run
Pass
assert_equals(object "", object "")
    at Test.<anonymous> ( /selection/getSelection.html:24:5)
Passdocument.getSelection() instanceof Selection
Asserts run
Pass
assert_true(true, "Sanity check: window must have Selection property")
    at Test.<anonymous> ( /selection/getSelection.html:28:5)
Pass
assert_not_equals(object "[object Window]", null, "Sanity check: document.defaultView must not be null")
    at Test.<anonymous> ( /selection/getSelection.html:34:5)
Pass
assert_equals("object", "object", "document.getSelection() must be an object")
    at Test.<anonymous> ( /selection/getSelection.html:37:5)
Pass
assert_true(true)
    at Test.<anonymous> ( /selection/getSelection.html:39:5)
Passdocument.getSelection() === document.getSelection()
Asserts run
Pass
assert_not_equals(object "[object Window]", null, "Sanity check: document.defaultView must not be null")
    at Test.<anonymous> ( /selection/getSelection.html:43:5)
Pass
assert_equals(object "", object "")
    at Test.<anonymous> ( /selection/getSelection.html:45:5)
Passwindow.getSelection() === document.getSelection()
Asserts run
Pass
assert_not_equals(object "[object Window]", null, "Sanity check: document.defaultView must not be null")
    at Test.<anonymous> ( /selection/getSelection.html:49:5)
Pass
assert_equals(object "", object "")
    at Test.<anonymous> ( /selection/getSelection.html:51:5)
PassSelection's range must initially be null
Asserts run
Pass
assert_equals(0, 0, "window.getSelection().rangeCount must initially be 0")
    at Test.<anonymous> ( /selection/getSelection.html:60:5)
Pass
assert_equals("object", "object", "Sanity check: document.getSelection() must be an object")
    at Test.<anonymous> ( /selection/getSelection.html:62:5)
Pass
assert_equals(0, 0, "document.getSelection().rangeCount must initially be 0")
    at Test.<anonymous> ( /selection/getSelection.html:64:5)
PassgetSelection() on HTML document with null defaultView must be null
Asserts run
Pass
assert_equals(null, null, "Sanity check: defaultView of created HTML document must be null")
    at Test.<anonymous> ( /selection/getSelection.html:70:5)
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /selection/getSelection.html:72:5)
PassgetSelection() on XML document with null defaultView must be null
Asserts run
Pass
assert_true(true, "XML document must have getSelection()")
    at Test.<anonymous> ( /selection/getSelection.html:78:5)
Pass
assert_equals(null, null, "Sanity check: defaultView of created XML document must be null")
    at Test.<anonymous> ( /selection/getSelection.html:80:5)
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /selection/getSelection.html:82:5)
Passwindow.getSelection() instanceof Selection in an iframe onload
Asserts run
Pass
assert_true(true, "Sanity check: window must have Selection property")
    at Test.<anonymous> ( /selection/getSelection.html:101:5)
Pass
assert_not_equals(object "[object Window]", null, "Sanity check: document.defaultView must not be null")
    at Test.<anonymous> ( /selection/getSelection.html:103:5)
Pass
assert_not_equals(object "", null, "window.getSelection() must not be null")
    at Test.<anonymous> ( /selection/getSelection.html:105:5)
Pass
assert_true(true)
    at Test.<anonymous> ( /selection/getSelection.html:107:5)
Passdocument.getSelection() instanceof Selection in an iframe onload
Asserts run
Pass
assert_true(true, "Sanity check: window must have Selection property")
    at Test.<anonymous> ( /selection/getSelection.html:112:5)
Pass
assert_not_equals(object "[object Window]", null, "Sanity check: document.defaultView must not be null")
    at Test.<anonymous> ( /selection/getSelection.html:114:5)
Pass
assert_not_equals(object "", null, "document.getSelection() must not be null")
    at Test.<anonymous> ( /selection/getSelection.html:116:5)
Pass
assert_equals("object", "object", "document.getSelection() must be an object")
    at Test.<anonymous> ( /selection/getSelection.html:118:5)
Pass
assert_true(true)
    at Test.<anonymous> ( /selection/getSelection.html:120:5)
Passwindow.getSelection() === document.getSelection() in an iframe onload
Asserts run
Pass
assert_not_equals(object "[object Window]", null, "Sanity check: document.defaultView must not be null")
    at Test.<anonymous> ( /selection/getSelection.html:125:5)
Pass
assert_equals(object "", object "")
    at Test.<anonymous> ( /selection/getSelection.html:127:5)
PassgetSelection() inside and outside iframe must return different objects onload
Asserts run
Pass
assert_not_equals(object "", object "")
    at Test.<anonymous> ( /selection/getSelection.html:132:5)
PassgetSelection() on HTML document with null defaultView must be null inside an iframe onload
Asserts run
Pass
assert_equals(null, null, "Sanity check: defaultView of created HTML document must be null")
    at Test.<anonymous> ( /selection/getSelection.html:138:5)
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /selection/getSelection.html:140:5)
Passwindow.getSelection() instanceof Selection in an iframe immediately after appendChild
Asserts run
Pass
assert_true(true, "Sanity check: window must have Selection property")
    at Test.<anonymous> ( /selection/getSelection.html:101:5)
Pass
assert_not_equals(object "[object Window]", null, "Sanity check: document.defaultView must not be null")
    at Test.<anonymous> ( /selection/getSelection.html:103:5)
Pass
assert_not_equals(object "", null, "window.getSelection() must not be null")
    at Test.<anonymous> ( /selection/getSelection.html:105:5)
Pass
assert_true(true)
    at Test.<anonymous> ( /selection/getSelection.html:107:5)
Passdocument.getSelection() instanceof Selection in an iframe immediately after appendChild
Asserts run
Pass
assert_true(true, "Sanity check: window must have Selection property")
    at Test.<anonymous> ( /selection/getSelection.html:112:5)
Pass
assert_not_equals(object "[object Window]", null, "Sanity check: document.defaultView must not be null")
    at Test.<anonymous> ( /selection/getSelection.html:114:5)
Pass
assert_not_equals(object "", null, "document.getSelection() must not be null")
    at Test.<anonymous> ( /selection/getSelection.html:116:5)
Pass
assert_equals("object", "object", "document.getSelection() must be an object")
    at Test.<anonymous> ( /selection/getSelection.html:118:5)
Pass
assert_true(true)
    at Test.<anonymous> ( /selection/getSelection.html:120:5)
Passwindow.getSelection() === document.getSelection() in an iframe immediately after appendChild
Asserts run
Pass
assert_not_equals(object "[object Window]", null, "Sanity check: document.defaultView must not be null")
    at Test.<anonymous> ( /selection/getSelection.html:125:5)
Pass
assert_equals(object "", object "")
    at Test.<anonymous> ( /selection/getSelection.html:127:5)
PassgetSelection() inside and outside iframe must return different objects immediately after appendChild
Asserts run
Pass
assert_not_equals(object "", object "")
    at Test.<anonymous> ( /selection/getSelection.html:132:5)
PassgetSelection() on HTML document with null defaultView must be null inside an iframe immediately after appendChild
Asserts run
Pass
assert_equals(null, null, "Sanity check: defaultView of created HTML document must be null")
    at Test.<anonymous> ( /selection/getSelection.html:138:5)
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /selection/getSelection.html:140:5)