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

Unified Diff: LayoutTests/compositing/repaint/scroll-fixed-layer-out-of-view.html

Issue 263553005: Convert repaintRectsAsText callers to text-based-repaint.js (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase again Created 6 years, 8 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/repaint/scroll-fixed-layer-out-of-view.html
diff --git a/LayoutTests/compositing/repaint/scroll-fixed-layer-out-of-view.html b/LayoutTests/compositing/repaint/scroll-fixed-layer-out-of-view.html
index 9d2a44882a34afbd8896edee6716f797b8809d0c..6eee9f4d3d0340fe66dd7deeb10c426b7db792eb 100644
--- a/LayoutTests/compositing/repaint/scroll-fixed-layer-out-of-view.html
+++ b/LayoutTests/compositing/repaint/scroll-fixed-layer-out-of-view.html
@@ -1,31 +1,21 @@
<!DOCTYPE html>
<html>
<head>
+ <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
<script type="text/javascript">
- if (window.testRunner)
- testRunner.dumpAsText();
-
if (window.internals)
internals.settings.setAcceleratedCompositingForFixedPositionEnabled(true);
- function test()
+ function repaintTest()
{
- document.body.offsetHeight;
- if (window.internals)
- window.internals.startTrackingRepaints(document);
-
window.scrollTo(0, 1000);
window.scrollTo(0, 100);
-
- if (window.internals)
- document.getElementById('repaintRects').textContent = window.internals.repaintRectsAsText(document);
}
</script>
</head>
-<body style="height:2000px" onload="test()">
+<body style="height:2000px" onload="runRepaintTest()">
<div style="position: fixed; top: -300px; left: 100px; width: 88px; height: 88px; background-color: silver"></div>
<div style="position: fixed; top: 1000px; left: 100px; width: 99px; height: 99px; background-color: silver"></div>
There should be no repaints here:
- <pre id="repaintRects"></pre>
</body>
</html>
« no previous file with comments | « LayoutTests/compositing/repaint/scroll-fixed-layer-no-content.html ('k') | LayoutTests/css3/flexbox/repaint.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698