blob: 8137c154e05b693fbd8dbeae63ece9fc0c376ed4 [file] [log] [blame]
This test makes sure that querySelector with pseudo-element doesn't match anything.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS document.querySelectorAll("#test p").length is 1
PASS document.querySelector("#test p") is target
PASS document.querySelectorAll("#test p.ng").length is 1
PASS document.querySelector("#test p.ng") is target
PASS document.querySelectorAll("#test div p").length is 1
PASS document.querySelector("#test div p") is target
PASS document.querySelectorAll("#test div p.ng").length is 1
PASS document.querySelector("#test div p.ng") is target
PASS document.querySelectorAll("#test p:first-line").length is 0
PASS document.querySelector("#test p:first-line") is null
PASS successfullyParsed is true
TEST COMPLETE