| OLD | NEW |
| 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../js/resources/js-test-pre.js"></script> | 4 <script src="../js/resources/js-test-pre.js"></script> |
| 5 <style> | 5 <style> |
| 6 span.c1:nth-of-type(2n -1){ color: red; } | 6 span.c1:nth-of-type(2n -1){ color: red; } |
| 7 span.c1:nth-of-type(2n){ color: green; } | 7 span.c1:nth-of-type(2n){ color: green; } |
| 8 span.c2:nth-of-type(odd){ color: red; } | 8 span.c2:nth-of-type(odd){ color: red; } |
| 9 span.c2:nth-of-type(even){ color: green; } | 9 span.c2:nth-of-type(even){ color: green; } |
| 10 span.c3:nth-of-type(n3){ color: red; } | 10 span.c3:nth-of-type(n3){ color: red; } |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 shouldBe("document.defaultView.getComputedStyle(el, null).getPropertyValue('colo
r')", "'rgb(0, 128, 0)'"); | 56 shouldBe("document.defaultView.getComputedStyle(el, null).getPropertyValue('colo
r')", "'rgb(0, 128, 0)'"); |
| 57 | 57 |
| 58 shouldThrow('document.querySelector("span.c3:nth-of-type(n3)")', '"SyntaxError:
Failed to execute query: \'span.c3:nth-of-type(n3)\' is not a valid selector."')
; | 58 shouldThrow('document.querySelector("span.c3:nth-of-type(n3)")', '"SyntaxError:
Failed to execute query: \'span.c3:nth-of-type(n3)\' is not a valid selector."')
; |
| 59 | 59 |
| 60 shouldThrow('document.querySelector("span.c3:nth-of-type(foo)")', '"SyntaxError:
Failed to execute query: \'span.c3:nth-of-type(foo)\' is not a valid selector."
'); | 60 shouldThrow('document.querySelector("span.c3:nth-of-type(foo)")', '"SyntaxError:
Failed to execute query: \'span.c3:nth-of-type(foo)\' is not a valid selector."
'); |
| 61 | 61 |
| 62 shouldThrow('document.querySelector("span.c3:nth-of-type(2n3)")', '"SyntaxError:
Failed to execute query: \'span.c3:nth-of-type(2n3)\' is not a valid selector."
'); | 62 shouldThrow('document.querySelector("span.c3:nth-of-type(2n3)")', '"SyntaxError:
Failed to execute query: \'span.c3:nth-of-type(2n3)\' is not a valid selector."
'); |
| 63 | 63 |
| 64 shouldThrow('document.querySelector("span.c3:nth-of-type(foon + bar)")', '"Synta
xError: Failed to execute query: \'span.c3:nth-of-type(foon + bar)\' is not a va
lid selector."'); | 64 shouldThrow('document.querySelector("span.c3:nth-of-type(foon + bar)")', '"Synta
xError: Failed to execute query: \'span.c3:nth-of-type(foon + bar)\' is not a va
lid selector."'); |
| 65 </script> | 65 </script> |
| 66 <script src="../js/resources/js-test-post.js"></script> | |
| 67 </body> | 66 </body> |
| 68 </html> | 67 </html> |
| OLD | NEW |