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

Unified Diff: third_party/WebKit/LayoutTests/editing/selection/readonly-disabled-text-selection.html

Issue 2078143002: Make plugin elements return false from canStartSelection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix readonly-disabled-text-selection for changes in r401155 Created 4 years, 6 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/editing/selection/readonly-disabled-text-selection.html
diff --git a/third_party/WebKit/LayoutTests/editing/selection/readonly-disabled-text-selection.html b/third_party/WebKit/LayoutTests/editing/selection/readonly-disabled-text-selection.html
index 805c5bd8c2a3da9e528a31d6ad2d9a5783d7cc13..4193d43822c4b42646891232a1a2085777a0c25f 100644
--- a/third_party/WebKit/LayoutTests/editing/selection/readonly-disabled-text-selection.html
+++ b/third_party/WebKit/LayoutTests/editing/selection/readonly-disabled-text-selection.html
@@ -29,10 +29,9 @@ onload = function() {
function doLongPressOnElement(elementId) {
var element = document.getElementById(elementId);
var bounds = element.getBoundingClientRect();
- var middleX = (bounds.left + bounds.right) / 2;
- var middleY = (bounds.top + bounds.bottom) / 2;
- // Touch directly in the center of the element.
- window.eventSender.gestureLongPress(middleX, middleY);
+ var x = bounds.left + 5;
+ var y = bounds.top + 5;
+ window.eventSender.gestureLongPress(x, y);
shouldBeEqualToString('window.getSelection().toString()', element.value);
}
</script>
« no previous file with comments | « third_party/WebKit/LayoutTests/NeverFixTests ('k') | third_party/WebKit/Source/core/html/HTMLPlugInElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698