OLD | NEW |
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. | 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. |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 debug("These spans should alternate red and green"); | 6 debug("These spans should alternate red and green"); |
7 span span span span span span span span | 7 span span span span span span span span |
8 debug("These spans should alternate red and green"); | 8 debug("These spans should alternate red and green"); |
9 span span span span span span span span | 9 span span span span span span span span |
10 debug("These spans should be black"); | 10 debug("These spans should be black"); |
11 span span span span span span span span | 11 span span span span span span span span |
12 debug("These spans should be black"); | 12 debug("These spans should be black"); |
13 span span span span span span span span | 13 span span span span span span span span |
14 | 14 |
15 PASS document.defaultView.getComputedStyle(el, null).getPropertyValue('color') i
s 'rgb(255, 0, 0)' | 15 PASS document.defaultView.getComputedStyle(el, null).getPropertyValue('color') i
s 'rgb(255, 0, 0)' |
16 PASS document.defaultView.getComputedStyle(el, null).getPropertyValue('color') i
s 'rgb(0, 128, 0)' | 16 PASS document.defaultView.getComputedStyle(el, null).getPropertyValue('color') i
s 'rgb(0, 128, 0)' |
17 PASS document.defaultView.getComputedStyle(el, null).getPropertyValue('color') i
s 'rgb(255, 0, 0)' | 17 PASS document.defaultView.getComputedStyle(el, null).getPropertyValue('color') i
s 'rgb(255, 0, 0)' |
18 PASS document.defaultView.getComputedStyle(el, null).getPropertyValue('color') i
s 'rgb(0, 128, 0)' | 18 PASS document.defaultView.getComputedStyle(el, null).getPropertyValue('color') i
s 'rgb(0, 128, 0)' |
19 PASS document.querySelector("span.c3:nth-of-type(n3)") threw exception SyntaxErr
or: Failed to execute query: 'span.c3:nth-of-type(n3)' is not a valid selector.. | 19 PASS document.querySelector("span.c3:nth-of-type(n3)") threw exception SyntaxErr
or: Failed to execute 'querySelector' on 'Document': 'span.c3:nth-of-type(n3)' i
s not a valid selector.. |
20 PASS document.querySelector("span.c3:nth-of-type(foo)") threw exception SyntaxEr
ror: Failed to execute query: 'span.c3:nth-of-type(foo)' is not a valid selector
.. | 20 PASS document.querySelector("span.c3:nth-of-type(foo)") threw exception SyntaxEr
ror: 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 SyntaxEr
ror: Failed to execute query: 'span.c3:nth-of-type(2n3)' is not a valid selector
.. | 21 PASS document.querySelector("span.c3:nth-of-type(2n3)") threw exception SyntaxEr
ror: 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 S
yntaxError: Failed to execute query: 'span.c3:nth-of-type(foon + bar)' is not a
valid selector.. | 22 PASS document.querySelector("span.c3:nth-of-type(foon + bar)") threw exception S
yntaxError: Failed to execute 'querySelector' on 'Document': 'span.c3:nth-of-typ
e(foon + bar)' is not a valid selector.. |
23 PASS successfullyParsed is true | 23 PASS successfullyParsed is true |
24 | 24 |
25 TEST COMPLETE | 25 TEST COMPLETE |
26 | 26 |
OLD | NEW |