blob: 5f53f060e0a4b0241ca3ea6896bb1079b7980d74 [file] [log] [blame]
Test queries whose leftmost selector matches the root node.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS document.body.querySelectorAll('#target > div').length is 6
PASS document.body.querySelectorAll('#target').length is 0
PASS document.body.querySelectorAll('.target > div').length is 6
PASS document.body.querySelectorAll('.target').length is 0
PASS document.body.querySelectorAll('body > div').length is 6
PASS document.body.querySelectorAll('body').length is 0
PASS document.body.querySelector('#target') is null
PASS document.body.querySelector('.target') is null
PASS document.body.querySelector('body') is null
PASS successfullyParsed is true
TEST COMPLETE