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

Unified Diff: LayoutTests/fast/events/touch/gesture/context-menu-on-long-press.html

Issue 320453002: Update layout tests for touch text selection. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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
« no previous file with comments | « no previous file | LayoutTests/fast/events/touch/gesture/context-menu-on-long-press-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/events/touch/gesture/context-menu-on-long-press.html
diff --git a/LayoutTests/fast/events/touch/gesture/context-menu-on-long-press.html b/LayoutTests/fast/events/touch/gesture/context-menu-on-long-press.html
index f88b85f8d22afbda83ae856be0c894962774158b..33dc575b500323427117bf5cd67e389e926bb169 100644
--- a/LayoutTests/fast/events/touch/gesture/context-menu-on-long-press.html
+++ b/LayoutTests/fast/events/touch/gesture/context-menu-on-long-press.html
@@ -2,10 +2,16 @@
<html>
<head>
<script src="../../../../resources/js-test.js"></script>
+<style>
+#empty {
+ width: 100px;
+ height: 50px;
+}
+</style>
</head>
<body onload="test()">
<p>This test checks that the context menu is shown on long press gesture.</p>
-<div id="text">Testing</div>
+<div id="empty"></div>
<div id="result">FAIL</div>
<script>
function test()
@@ -15,10 +21,10 @@ function test()
document.oncontextmenu = function() { document.getElementById("result").innerHTML = "PASS"; }
- var text = document.getElementById("text");
+ var empty = document.getElementById("empty");
- var x = text.offsetParent.offsetLeft + text.offsetLeft + 4;
- var y = text.offsetParent.offsetTop + text.offsetTop + text.offsetHeight / 2;
+ var x = empty.offsetParent.offsetLeft + empty.offsetLeft + 4;
+ var y = empty.offsetParent.offsetTop + empty.offsetTop + empty.offsetHeight / 2;
if (!window.eventSender)
return;
« no previous file with comments | « no previous file | LayoutTests/fast/events/touch/gesture/context-menu-on-long-press-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698