| Index: LayoutTests/fast/dom/shadow/shadowdom-for-input-file.html
|
| diff --git a/LayoutTests/fast/dom/shadow/shadowdom-for-input-file.html b/LayoutTests/fast/dom/shadow/shadowdom-for-input-file.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d3ddd5dec7b066e41445bc4ce0324aa238330615
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/dom/shadow/shadowdom-for-input-file.html
|
| @@ -0,0 +1,19 @@
|
| +<!DOCTYPE html>
|
| +<body>
|
| +<script src="../../js/resources/js-test-pre.js"></script>
|
| +<input type="file">
|
| +<script>
|
| +description('Clicking on a file control should open a file chooser dialog even if it has author ShadowRoots. This test requires testRunner, and should open the file chooser dialog just once.');
|
| +var file = document.querySelector('input');
|
| +var root = file.createShadowRoot();
|
| +root.innerHTML = '<span>Click to choose a file</span>';
|
| +eventSender.mouseMoveTo(file.offsetLeft + 8, file.offsetTop + 8);
|
| +eventSender.mouseDown();
|
| +eventSender.mouseUp();
|
| +
|
| +file.addEventListener('DOMActivate', function(event) { event.preventDefault(); }, false);
|
| +eventSender.mouseDown();
|
| +eventSender.mouseUp();
|
| +</script>
|
| +<script src="../../js/resources/js-test-post.js"></script>
|
| +</body>
|
|
|