OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <body> | 3 <body> |
4 <p id="description">This test setting a value clears suggested value.</p> | 4 <p id="description">This test setting a value clears suggested value.</p> |
5 <pre><input id="test" type="text" value="initial value"></pre> | 5 <pre><input id="test" type="text" value="initial value"></pre> |
6 <script src="../../resources/dump-as-markup.js"></script> | 6 <script src="../../resources/dump-as-markup.js"></script> |
7 <script> | 7 <script> |
8 | 8 |
9 var input = document.getElementById('test'); | 9 var input = document.getElementById('test'); |
10 var result = document.getElementById('result'); | 10 var result = document.getElementById('result'); |
(...skipping 28 matching lines...) Expand all Loading... |
39 | 39 |
40 log(); | 40 log(); |
41 var innerTextValue = internals.shadowRoot(input).firstChild.innerText; | 41 var innerTextValue = internals.shadowRoot(input).firstChild.innerText; |
42 addText(innerTextValue == 'new value' ? 'PASS' : 'FAIL'); | 42 addText(innerTextValue == 'new value' ? 'PASS' : 'FAIL'); |
43 Markup.dump(input.parentNode, 'After setting value'); | 43 Markup.dump(input.parentNode, 'After setting value'); |
44 } | 44 } |
45 | 45 |
46 </script> | 46 </script> |
47 </body> | 47 </body> |
48 </html> | 48 </html> |
OLD | NEW |