OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="resources/polyfill.js"></script> | |
3 | 2 |
4 <p>Validation should be shown if Shadow DOM has a shadow element.</p> | 3 <p>Validation should be shown if Shadow DOM has a shadow element.</p> |
5 <form id='form' action="input-with-validation.html"> | 4 <form id='form' action="input-with-validation.html"> |
6 <input id=password type=password required maxlength=20 title="Needs at least 8 l
etters.
Should not be identical with the current password."> | 5 <input id=password type=password required maxlength=20 title="Needs at least 8 l
etters.
Should not be identical with the current password."> |
7 <input type=submit id=submit> | 6 <input type=submit id=submit> |
8 </form> | 7 </form> |
9 | 8 |
10 <script> | 9 <script> |
11 var input = document.getElementById('password'); | 10 var input = document.getElementById('password'); |
12 | 11 |
13 document.getElementById('submit').click(); | 12 document.getElementById('submit').click(); |
14 if (window.testRunner) { | 13 if (window.testRunner) { |
15 testRunner.waitUntilDone(); | 14 testRunner.waitUntilDone(); |
16 setTimeout(function() { | 15 setTimeout(function() { |
17 testRunner.notifyDone(); | 16 testRunner.notifyDone(); |
18 }, 10); | 17 }, 10); |
19 } | 18 } |
20 </script> | 19 </script> |
21 | 20 |
OLD | NEW |