Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: LayoutTests/fast/dom/shadow/input-with-validation.html

Issue 14594006: Remove Internals::createShadowRoot(element) and polyfill.js. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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.&#x0a;Should not be identical with the current password."> 5 <input id=password type=password required maxlength=20 title="Needs at least 8 l etters.&#x0a;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 if (window.internals) 10 if (window.internals)
12 internals.settings.setAuthorShadowDOMForAnyElementEnabled(true); 11 internals.settings.setAuthorShadowDOMForAnyElementEnabled(true);
13 12
14 var input = document.getElementById('password'); 13 var input = document.getElementById('password');
15 var shadowRoot = input.webkitCreateShadowRoot(); 14 var shadowRoot = input.webkitCreateShadowRoot();
16 shadowRoot.innerHTML = "<shadow></shadow>"; 15 shadowRoot.innerHTML = "<shadow></shadow>";
17 16
18 document.getElementById('submit').click(); 17 document.getElementById('submit').click();
19 if (window.testRunner) { 18 if (window.testRunner) {
20 testRunner.waitUntilDone(); 19 testRunner.waitUntilDone();
21 setTimeout(function() { 20 setTimeout(function() {
22 testRunner.notifyDone(); 21 testRunner.notifyDone();
23 }, 10); 22 }, 10);
24 } 23 }
25 </script> 24 </script>
26 25
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/shadow/iframe-shadow.html ('k') | LayoutTests/fast/dom/shadow/input-with-validation-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698