| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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', 'div:not(:not(div))', 'div:not(:hover)', 'div:not(div div)', 'div
:not(div div:not)', 'div:not(div div:hover)', 'div div:not(:hover)', | 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)', 'div:not(div div)', 'div
:not(div div:not)', 'div:not(div div:hover)', 'div div:not(:hover)', |
| 55 ]; | 55 ]; |
| 56 | 56 |
| 57 function doTest() { | 57 function doTest() { |
| 58 if (!window.internals) | 58 if (!window.internals) |
| 59 return; | 59 return; |
| 60 | 60 |
| 61 if (window.testRunner) | |
| 62 testRunner.dumpAsText(); | |
| 63 | |
| 64 for (var i = 0; i < dataOfValidCases.length; ++i) { | 61 for (var i = 0; i < dataOfValidCases.length; ++i) { |
| 65 test(dataOfValidCases[i], true); | 62 test(dataOfValidCases[i], true); |
| 66 } | 63 } |
| 67 for (var i = 0; i < dataOfInvalidCases.length; ++i) { | 64 for (var i = 0; i < dataOfInvalidCases.length; ++i) { |
| 68 test(dataOfInvalidCases[i], false); | 65 test(dataOfInvalidCases[i], false); |
| 69 } | 66 } |
| 70 } | 67 } |
| 71 | 68 |
| 72 doTest(); | 69 doTest(); |
| 73 var successfullyParsed = true; | 70 var successfullyParsed = true; |
| 74 </script> | 71 </script> |
| 75 </body> | 72 </body> |
| 76 </html> | 73 </html> |
| OLD | NEW |