blob: f1b1a63f5ad7f33a25f69f81206379e9d6f6ef9f [file] [log] [blame]
This test makes sure that :scope works correctly with the matches() API.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS theTarget.matches(":scope") is true
PASS theTarget.matches(":not(:scope)") is false
PASS theTarget.matches("body :scope") is true
PASS theTarget.matches("body>:scope") is true
PASS theTarget.matches("sibling + :scope") is true
PASS theTarget.matches("sibling ~ :scope") is true
PASS theTarget.matches("#theTarget:scope") is true
PASS theTarget.matches(":scope#theTarget") is true
PASS theTarget.matches("[webkit]:scope#theTarget") is true
PASS theTarget.matches(":not([webkit=fast]):scope#theTarget") is false
PASS theTarget.matches(":scope target") is false
PASS theTarget.matches(":scope > target") is false
PASS theTarget.matches(":scope + target") is false
PASS theTarget.matches(":scope ~ target") is false
PASS theTarget.matches(":scope *") is false
PASS theTarget.matches(":scope > *") is false
PASS theTarget.matches(":scope + *") is false
PASS theTarget.matches(":scope ~ *") is false
PASS successfullyParsed is true
TEST COMPLETE