OLD | NEW |
---|---|
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
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 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <p>This test checks select attribute of content element is valid.</p> | 7 <p>This test checks select attribute of content element is valid.</p> |
8 <pre id="console"></pre> | 8 <pre id="console"></pre> |
9 <div id="container"></div> | 9 <div id="container"></div> |
10 | 10 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
44 'div:active', 'div:hover', 'div:focus', | 44 'div:active', 'div:hover', 'div:focus', |
45 'div div:not(div)', 'div:not(div) div', 'div span div', | 45 'div div:not(div)', 'div:not(div) div', 'div span div', |
46 'div < div', 'div - dvi', '< div', '+div', '~div', 'div:!', '!:!', 'div::!', 'div::first_of_type', | 46 'div < div', 'div - dvi', '< div', '+div', '~div', 'div:!', '!:!', 'div::!', 'div::first_of_type', |
47 'pe;ro', '@screen', '@import "style.css"', 'div :first-of-type', 'div::first -of-type', | 47 'pe;ro', '@screen', '@import "style.css"', 'div :first-of-type', 'div::first -of-type', |
48 ' div, ,div', 'div \'\'', | 48 ' div, ,div', 'div \'\'', |
49 'div:link', 'div:visited', 'div:target', 'div:enabled', 'div:checked', | 49 'div:link', 'div:visited', 'div:target', 'div:enabled', 'div:checked', |
50 'div:indeterminate', 'div:nth-child(1)', 'div:nth-last-child(1)', 'div:nth-o f-type(1)', | 50 'div:indeterminate', 'div:nth-child(1)', 'div:nth-last-child(1)', 'div:nth-o f-type(1)', |
51 'div:nth-last-of-type(1)', 'div:first-child', 'div:last-child', 'div:first-o f-type', | 51 'div:nth-last-of-type(1)', 'div:first-child', 'div:last-child', 'div:first-o f-type', |
52 'div:last-of-type', 'div:only-of-type', | 52 'div:last-of-type', 'div:only-of-type', |
53 'div:first-of-type:last-of-type', 'div.elem:visited', '*:visited', | 53 'div:first-of-type:last-of-type', 'div.elem:visited', '*:visited', |
54 'div:first-of-type, div', 'div, div:first-of-type', 'div:first-of-type, div: last-of-type', | 54 'div:first-of-type, div', 'div, div:first-of-type', 'div:first-of-type, div: last-of-type', 'div:not(:not(div))', 'div:not(:hover)', |
hayato
2014/09/09 05:58:32
Could you add a test where a selector which is not
hayato
2014/09/09 05:58:32
You might want to remove a space at the end of the
| |
55 ]; | 55 ]; |
56 | 56 |
57 var dataOfValidCasesIfPseudoClassIsAllowed = [ | 57 var dataOfValidCasesIfPseudoClassIsAllowed = [ |
58 null, '', | 58 null, '', |
59 'ns|div', '*|div', '|div', 'div', | 59 'ns|div', '*|div', '|div', 'div', |
60 'ns|*', '*|*', '|*', '*', | 60 'ns|*', '*|*', '|*', '*', |
61 '.elem', 'p.elem', 'foo.elem', '*.right', | 61 '.elem', 'p.elem', 'foo.elem', '*.right', |
62 '#elem', 'p#elem', 'foo#elem', '*#something', | 62 '#elem', 'p#elem', 'foo#elem', '*#something', |
63 'div[title]', 'div[class="example"]', 'div[hello="Cleveland"][goodbye="Colum bus"]', | 63 'div[title]', 'div[class="example"]', 'div[hello="Cleveland"][goodbye="Colum bus"]', |
64 'div[rel~="copyright"]', 'div[href="http://www.example.com/"]', | 64 'div[rel~="copyright"]', 'div[href="http://www.example.com/"]', |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
110 for (var i = 0; i < dataOfInvalidCasesIfPseudoClassIsAllowed.length; ++i) { | 110 for (var i = 0; i < dataOfInvalidCasesIfPseudoClassIsAllowed.length; ++i) { |
111 test(dataOfInvalidCases[i], false); | 111 test(dataOfInvalidCases[i], false); |
112 } | 112 } |
113 } | 113 } |
114 | 114 |
115 doTest(); | 115 doTest(); |
116 var successfullyParsed = true; | 116 var successfullyParsed = true; |
117 </script> | 117 </script> |
118 </body> | 118 </body> |
119 </html> | 119 </html> |
OLD | NEW |