1 This test passes if the nth-of-type can accept a parameter that is an+b, odd or even. But it does not accept any other parameter.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 debug("These spans should alternate red and green");
7 span span span span span span span span
8 debug("These spans should alternate red and green");
9 span span span span span span span span
10 debug("These spans should be black");
11 span span span span span span span span
12 debug("These spans should be black");
13 span span span span span span span span
15 PASS document.defaultView.getComputedStyle(el, null).getPropertyValue('color') is 'rgb(255, 0, 0)'
16 PASS document.defaultView.getComputedStyle(el, null).getPropertyValue('color') is 'rgb(0, 128, 0)'
17 PASS document.defaultView.getComputedStyle(el, null).getPropertyValue('color') is 'rgb(255, 0, 0)'
18 PASS document.defaultView.getComputedStyle(el, null).getPropertyValue('color') is 'rgb(0, 128, 0)'
19 PASS document.querySelector("span.c3:nth-of-type(n3)") threw exception SyntaxError: Failed to execute 'querySelector' on 'Document': 'span.c3:nth-of-type(n3)' is not a valid selector..
20 PASS document.querySelector("span.c3:nth-of-type(foo)") threw exception SyntaxError: Failed to execute 'querySelector' on 'Document': 'span.c3:nth-of-type(foo)' is not a valid selector..
21 PASS document.querySelector("span.c3:nth-of-type(2n3)") threw exception SyntaxError: Failed to execute 'querySelector' on 'Document': 'span.c3:nth-of-type(2n3)' is not a valid selector..
22 PASS document.querySelector("span.c3:nth-of-type(foon + bar)") threw exception SyntaxError: Failed to execute 'querySelector' on 'Document': 'span.c3:nth-of-type(foon + bar)' is not a valid selector..
23 PASS successfullyParsed is true