getSelection.html

FAILExpected6 of 18 subtests pass466 ms

Details

Test
/selection/getSelection.html
Harness
OK

Subtests

StatusSubtestMessage
PASSwindow.getSelection() instanceof Selection
PASSwindow.getSelection() === window.getSelection()
PASSdocument.getSelection() instanceof Selection
PASSdocument.getSelection() === document.getSelection()
PASSwindow.getSelection() === document.getSelection()
PASSSelection's range must initially be null
FAILgetSelection() on HTML document with null defaultView must be null
assert_equals: Sanity check: defaultView of created HTML document must be null expected (object) null but got (undefined) undefined
assert_equals: Sanity check: defaultView of created HTML document must be null expected (object) null but got (undefined) undefined
FAILgetSelection() on XML document with null defaultView must be null
assert_equals: Sanity check: defaultView of created XML document must be null expected (object) null but got (undefined) undefined
assert_equals: Sanity check: defaultView of created XML document must be null expected (object) null but got (undefined) undefined
FAILwindow.getSelection() instanceof Selection in an iframe onload
assert_true: Sanity check: window must have Selection property expected true got false
assert_true: Sanity check: window must have Selection property expected true got false
FAILdocument.getSelection() instanceof Selection in an iframe onload
assert_true: Sanity check: window must have Selection property expected true got false
assert_true: Sanity check: window must have Selection property expected true got false
FAILwindow.getSelection() === document.getSelection() in an iframe onload
iframe.contentWindow.getSelection is not a function
iframe.contentWindow.getSelection is not a function
FAILgetSelection() inside and outside iframe must return different objects onload
iframe.contentWindow.getSelection is not a function
iframe.contentWindow.getSelection is not a function
FAILgetSelection() on HTML document with null defaultView must be null inside an iframe onload
assert_equals: Sanity check: defaultView of created HTML document must be null expected (object) null but got (undefined) undefined
assert_equals: Sanity check: defaultView of created HTML document must be null expected (object) null but got (undefined) undefined
FAILwindow.getSelection() instanceof Selection in an iframe immediately after appendChild
assert_true: Sanity check: window must have Selection property expected true got false
assert_true: Sanity check: window must have Selection property expected true got false
FAILdocument.getSelection() instanceof Selection in an iframe immediately after appendChild
assert_true: Sanity check: window must have Selection property expected true got false
assert_true: Sanity check: window must have Selection property expected true got false
FAILwindow.getSelection() === document.getSelection() in an iframe immediately after appendChild
iframe.contentWindow.getSelection is not a function
iframe.contentWindow.getSelection is not a function
FAILgetSelection() inside and outside iframe must return different objects immediately after appendChild
iframe.contentWindow.getSelection is not a function
iframe.contentWindow.getSelection is not a function
FAILgetSelection() on HTML document with null defaultView must be null inside an iframe immediately after appendChild
assert_equals: Sanity check: defaultView of created HTML document must be null expected (object) null but got (undefined) undefined
assert_equals: Sanity check: defaultView of created HTML document must be null expected (object) null but got (undefined) undefined