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

Unified Diff: LayoutTests/compositing/gestures/gesture-tapHighlight-with-squashing.html

Issue 687313002: Fix LinkHighlight to position correctly w.r.t. squashed layers. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed composited scrolling Created 6 years, 2 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/compositing/gestures/gesture-tapHighlight-with-squashing.html
diff --git a/LayoutTests/compositing/gestures/gesture-tapHighlight-with-squashing.html b/LayoutTests/compositing/gestures/gesture-tapHighlight-with-squashing.html
index 9985e802d7f445dfca94b9158cfdb39b2a5b5319..02646aa86e30fe42c6055649a2734ae45917f16b 100644
--- a/LayoutTests/compositing/gestures/gesture-tapHighlight-with-squashing.html
+++ b/LayoutTests/compositing/gestures/gesture-tapHighlight-with-squashing.html
@@ -1,6 +1,4 @@
<!DOCTYPE html>
-<html>
-<head>
<style>
div {
border: black solid 1px;
@@ -29,15 +27,21 @@
background-color: orange;
}
+ .squash-spacer {
+ position: relative;
+ top: 40px;
+ }
+
.target {
position: relative;
top: 80px;
+ height: 10px; width: 100%;
}
</style>
<script>
if (window.testRunner) {
- testRunner.dumpAsText();
+ testRunner.dumpAsTextWithPixelResults();
testRunner.waitUntilDone();
}
@@ -53,23 +57,18 @@
if (window.eventSender) {
eventSender.gestureShowPress(x, y);
- window.testRunner.notifyDone();
+ window.setTimeout(function() { window.testRunner.notifyDone(); }, 0);
}
}
window.onload = runTest;
</script>
-</head>
-<body>
- <div class='fixed composited'></div>
- <div class='container'>
- <div class='composited'></div>
- <div class='target'>
- <a href='#' id='targetLink'>Target Link.</a>
- </div>
- <div class='filler'></div>
+<div class='fixed composited'></div>
+<div class='container'>
+ <div class='composited'></div>
+ <div class='squash-spacer'></div>
+ <div class='target'>
+ <a href='#' id='targetLink'>Target Link.</a>
</div>
-
- This test is successful if it doesn't crash.
-</body>
-</html>
+ <div class='filler'></div>
+</div>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/compositing/gestures/gesture-tapHighlight-with-squashing-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698