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

Unified Diff: LayoutTests/compositing/repaint/fixed-pos-inside-composited-intermediate-layer.html

Issue 403843002: Convert some layout tests to text-based-repaint tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase tests (due to removal of <pre>) Created 6 years, 5 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/fixed-pos-inside-composited-intermediate-layer.html
diff --git a/LayoutTests/compositing/repaint/fixed-pos-inside-composited-intermediate-layer.html b/LayoutTests/compositing/repaint/fixed-pos-inside-composited-intermediate-layer.html
index fbef215afd5b0afcaf087bb6168ec9d8683faba9..0fbac0be600cc8763e403340772a881354d4e73e 100644
--- a/LayoutTests/compositing/repaint/fixed-pos-inside-composited-intermediate-layer.html
+++ b/LayoutTests/compositing/repaint/fixed-pos-inside-composited-intermediate-layer.html
@@ -2,7 +2,7 @@
<html>
<head>
-<script src="../../resources/run-after-display.js"></script>
+<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
<style>
.compositedBehind {
@@ -34,32 +34,13 @@
</style>
<script>
- if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
- }
-
if (window.internals) {
/* Note carefully, compositing for fixed position is _disabled_ here */
internals.settings.setAcceleratedCompositingForFixedPositionEnabled(false);
}
- function test()
- {
- runAfterDisplay(function() {
- if (window.internals)
- window.internals.startTrackingRepaints(document);
-
- window.scrollTo(0, 100);
-
- runAfterDisplay(function() {
- if (window.internals)
- document.getElementById('layers').textContent = window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
-
- if (window.testRunner)
- testRunner.notifyDone();
- });
- });
+ function repaintTest() {
+ window.scrollTo(0, 100);
}
</script>
@@ -67,7 +48,7 @@
-<body onload="test()">
+<body onload="runRepaintTest()">
<!--
Among other duplicate bugs: https://code.google.com/p/chromium/issues/detail?id=128375
A non-composited fixed-position element can get grouped into a composited container.
@@ -80,8 +61,6 @@
<div class="containerOverlapsComposited">
<div class="fixed"></div>
</div>
-
- <pre id="layers"></pre>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698