Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!doctype html> | |
| 2 | |
|
Julien - ping for review
2014/07/14 15:44:13
Nit: Unneeded empty space.
dsinclair
2014/07/14 15:50:18
Done.
| |
| 3 <script> | |
|
Julien - ping for review
2014/07/14 15:44:14
if (window.testRunner)
testRunner.dumpAsText()
dsinclair
2014/07/14 15:50:18
Done.
| |
| 4 function makeChild() | |
| 5 { | |
| 6 var child = document.createElement('div'); | |
| 7 child.textContent = 'my text content'; | |
| 8 return child; | |
| 9 } | |
| 10 | |
| 11 function runTest() | |
| 12 { | |
| 13 document.querySelector('table').appendChild(makeChild()); | |
| 14 document.querySelector('tbody').appendChild(makeChild()); | |
| 15 document.querySelector('tr').appendChild(makeChild()); | |
| 16 document.querySelector('td').appendChild(makeChild()); | |
| 17 } | |
| 18 onload = runTest; | |
| 19 </script> | |
| 20 <style> | |
| 21 #target { | |
| 22 background-color: green; | |
| 23 } | |
| 24 #target:first-letter, #target div:first-letter { color: red; } | |
| 25 </style> | |
| 26 | |
| 27 <div>This test is successfully if it does not crash.</div> | |
|
Julien - ping for review
2014/07/14 15:44:14
Let's add a description about what you are testing
dsinclair
2014/07/14 15:50:18
Better?
| |
| 28 | |
| 29 <table id="target"> | |
| 30 a | |
| 31 <tr><td>Test</td></tr> | |
| 32 </table> | |
| OLD | NEW |