getSelection.html
Details
- Test
/selection/getSelection.html- Harness
- OK
Subtests
| Status | Subtest |
|---|---|
| PASS | window.getSelection() instanceof Selection |
| PASS | window.getSelection() === window.getSelection() |
| PASS | document.getSelection() instanceof Selection |
| PASS | document.getSelection() === document.getSelection() |
| PASS | window.getSelection() === document.getSelection() |
| PASS | Selection's range must initially be null |
| FAIL | getSelection() 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 |
| FAIL | getSelection() 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 |
| FAIL | window.getSelection() instanceof Selection in an iframe onload assert_true: Sanity check: window must have Selection property expected true got false |
| FAIL | document.getSelection() instanceof Selection in an iframe onload assert_true: Sanity check: window must have Selection property expected true got false |
| FAIL | window.getSelection() === document.getSelection() in an iframe onload iframe.contentWindow.getSelection is not a function |
| FAIL | getSelection() inside and outside iframe must return different objects onload iframe.contentWindow.getSelection is not a function |
| FAIL | getSelection() 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 |
| FAIL | window.getSelection() instanceof Selection in an iframe immediately after appendChild assert_true: Sanity check: window must have Selection property expected true got false |
| FAIL | document.getSelection() instanceof Selection in an iframe immediately after appendChild assert_true: Sanity check: window must have Selection property expected true got false |
| FAIL | window.getSelection() === document.getSelection() in an iframe immediately after appendChild iframe.contentWindow.getSelection is not a function |
| FAIL | getSelection() inside and outside iframe must return different objects immediately after appendChild iframe.contentWindow.getSelection is not a function |
| FAIL | getSelection() 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 |