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

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

Issue 22852020: Only allow reprojecting shadows between ShadowRoots of the same type (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Delete another test Created 7 years, 4 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
(Empty)
1 <!DOCTYPE html>
2
3 <p>Validation should be shown if Shadow DOM has a shadow element.</p>
4 <form id='form' action="input-with-validation.html">
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.">
6 <input type=submit id=submit>
7 </form>
8
9 <script>
10 if (window.internals)
11 internals.settings.setAuthorShadowDOMForAnyElementEnabled(true);
12
13 var input = document.getElementById('password');
14 var shadowRoot = input.createShadowRoot();
15 shadowRoot.innerHTML = "<shadow></shadow>";
16
17 document.getElementById('submit').click();
18 if (window.testRunner) {
19 testRunner.waitUntilDone();
20 setTimeout(function() {
21 testRunner.notifyDone();
22 }, 10);
23 }
24 </script>
25
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('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