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

Unified Diff: LayoutTests/compositing/repaint/scroll-fixed-layer-no-content.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
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/compositing/repaint/scroll-fixed-layer-out-of-view.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/compositing/repaint/scroll-fixed-layer-no-content.html
diff --git a/LayoutTests/compositing/repaint/scroll-fixed-layer-no-content.html b/LayoutTests/compositing/repaint/scroll-fixed-layer-no-content.html
index 3d90b1586e562dbefa18b567eea73cecb010b378..5e23a384068bea72c5e028034f90cdb92a3314c4 100644
--- a/LayoutTests/compositing/repaint/scroll-fixed-layer-no-content.html
+++ b/LayoutTests/compositing/repaint/scroll-fixed-layer-no-content.html
@@ -1,30 +1,19 @@
<!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: 100px; left: 100px; width: 200px; height: 200px"></div>
There should be no repaints here:
- <pre id="repaintRects"></pre>
</body>
</html>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/compositing/repaint/scroll-fixed-layer-out-of-view.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698