Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(337)

Side by Side Diff: LayoutTests/fast/css/css3-nth-tokens-script.html

Issue 99083002: WIP: Migrate generated bindings to new ExceptionState constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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="../../resources/js-test.js"></script> 4 <script src="../../resources/js-test.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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 el = document.querySelector("span.c1:nth-of-type(2n)"); 49 el = document.querySelector("span.c1:nth-of-type(2n)");
50 shouldBe("document.defaultView.getComputedStyle(el, null).getPropertyValue('colo r')", "'rgb(0, 128, 0)'"); 50 shouldBe("document.defaultView.getComputedStyle(el, null).getPropertyValue('colo r')", "'rgb(0, 128, 0)'");
51 51
52 el = document.querySelector("span.c2:nth-of-type(odd)"); 52 el = document.querySelector("span.c2:nth-of-type(odd)");
53 shouldBe("document.defaultView.getComputedStyle(el, null).getPropertyValue('colo r')", "'rgb(255, 0, 0)'"); 53 shouldBe("document.defaultView.getComputedStyle(el, null).getPropertyValue('colo r')", "'rgb(255, 0, 0)'");
54 54
55 el = document.querySelector("span.c2:nth-of-type(even)"); 55 el = document.querySelector("span.c2:nth-of-type(even)");
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 \'querySelector\' on \'Document\': \'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 \'querySelector\' on \'Document\': \'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 \'querySelector\' on \'Document\': \'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 \'querySelector\' on \'Document\': \'span.c3:nth-of-ty pe(foon + bar)\' is not a valid selector."');
65 </script> 65 </script>
66 </body> 66 </body>
67 </html> 67 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698