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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-button-click.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, 10 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-button-click.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-button-click.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-button-click.html
deleted file mode 100644
index 4785574709695e9d58a4140fe768f12dc26689f1..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-button-click.html
+++ /dev/null
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<body>
-<script src="../../../resources/js-test.js"></script>
-
-<input type="button" value="Button" style="padding:10px; -webkit-appearance:none;" onclick="++clickCount">
-<div id=console></div>
-
-<script>
-description('Make sure that mouse click on an input button with shadow nodes works.');
-var clickCount = 0;
-var input = document.querySelector('input');
-var root = input.createShadowRoot();
-root.innerHTML = '<span style="margin:8px;">Foo</span><shadow></shadow><span>Bar</span>';
-var inputRect = input.getBoundingClientRect();
-var shadowNodeRect = root.firstChild.getBoundingClientRect();
-
-debug('Click on the padding area of the button:');
-eventSender.mouseMoveTo(inputRect.left + 3, inputRect.top + inputRect.height / 2);
-eventSender.mouseDown();
-eventSender.mouseUp();
-shouldBe('clickCount', '1');
-
-debug('Click on the margin area of a shadow node:');
-clickCount = 0;
-eventSender.mouseMoveTo(shadowNodeRect.left - 3, shadowNodeRect.top + shadowNodeRect.height / 2);
-eventSender.mouseDown();
-eventSender.mouseUp();
-shouldBe('clickCount', '1');
-
-debug('Click on the middle of a shadow node:');
-clickCount = 0;
-eventSender.mouseMoveTo(shadowNodeRect.left + shadowNodeRect.width / 2, shadowNodeRect.top + shadowNodeRect.height / 2);
-eventSender.mouseDown();
-eventSender.mouseUp();
-shouldBe('clickCount', '1');
-
-debug('Click on the original value text:');
-clickCount = 0;
-eventSender.mouseMoveTo(shadowNodeRect.right + 10, shadowNodeRect.top + shadowNodeRect.height / 2);
-eventSender.mouseDown();
-eventSender.mouseUp();
-shouldBe('clickCount', '1');
-</script>
-
-</body>
-

Powered by Google App Engine
This is Rietveld 408576698