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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-file.html

Issue 1751953003: Remove the support of multiple shadow roots with a user agent shadow root (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix failing tests Created 4 years, 9 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <body>
3 <script src="../../../resources/js-test.js"></script>
4 <input type="file">
5 <script>
6 description('Clicking on a file control should open a file chooser dialog even i f it has author ShadowRoots. This test requires testRunner, and should open the file chooser dialog just once.');
7 var file = document.querySelector('input');
8 var root = file.createShadowRoot();
9 root.innerHTML = '<span>Click to choose a file</span>';
10 eventSender.mouseMoveTo(file.offsetLeft + 8, file.offsetTop + 8);
11 eventSender.mouseDown();
12 eventSender.mouseUp();
13
14 file.addEventListener('DOMActivate', function(event) { event.preventDefault(); } , false);
15 eventSender.mouseDown();
16 eventSender.mouseUp();
17 </script>
18 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698