| 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 Error: Sy
ntaxError: DOM Exception 12. | 19 PASS document.querySelector("span.c3:nth-of-type(n3)") threw exception SyntaxErr
or: An invalid or illegal string was specified.. |
| 20 PASS document.querySelector("span.c3:nth-of-type(foo)") threw exception Error: S
yntaxError: DOM Exception 12. | 20 PASS document.querySelector("span.c3:nth-of-type(foo)") threw exception SyntaxEr
ror: An invalid or illegal string was specified.. |
| 21 PASS document.querySelector("span.c3:nth-of-type(2n3)") threw exception Error: S
yntaxError: DOM Exception 12. | 21 PASS document.querySelector("span.c3:nth-of-type(2n3)") threw exception SyntaxEr
ror: An invalid or illegal string was specified.. |
| 22 PASS document.querySelector("span.c3:nth-of-type(foon + bar)") threw exception E
rror: SyntaxError: DOM Exception 12. | 22 PASS document.querySelector("span.c3:nth-of-type(foon + bar)") threw exception S
yntaxError: An invalid or illegal string was specified.. |
| 23 PASS successfullyParsed is true | 23 PASS successfullyParsed is true |
| 24 | 24 |
| 25 TEST COMPLETE | 25 TEST COMPLETE |
| 26 | 26 |
| OLD | NEW |