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

Unified Diff: LayoutTests/touchadjustment/block-testing.html

Issue 14859016: Don't force layout for mouse event hit tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update all tests Created 7 years, 7 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: LayoutTests/touchadjustment/block-testing.html
diff --git a/LayoutTests/touchadjustment/block-testing.html b/LayoutTests/touchadjustment/block-testing.html
index 9d7b4ff877ac0fe31ae47cc2d9dca07673ebb94a..bfa738eea9597a94a3a47fe6290f8f4389183a84 100644
--- a/LayoutTests/touchadjustment/block-testing.html
+++ b/LayoutTests/touchadjustment/block-testing.html
@@ -37,6 +37,8 @@
{
if (window.testRunner && window.internals && internals.touchNodeAdjustedToBestClickableNode) {
description('Test touch-adjustment on a block where we also touch the inner text and outside link.');
+ // Mouse events only work after an initial layout
+ document.body.offsetLeft;
testDirectTouches();
document.getElementById('sandbox').style.display = 'none';
}
@@ -45,4 +47,4 @@
</script>
<script src="../fast/js/resources/js-test-post.js"></script>
</body>
-</html>
+</html>

Powered by Google App Engine
This is Rietveld 408576698