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

Unified Diff: LayoutTests/compositing/absolute-inside-out-of-view-fixed.html

Issue 191693002: Delay scrollContents until the next paint (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix layout tests Created 6 years, 9 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/absolute-inside-out-of-view-fixed.html
diff --git a/LayoutTests/compositing/absolute-inside-out-of-view-fixed.html b/LayoutTests/compositing/absolute-inside-out-of-view-fixed.html
index ac2bc36fef465b712d4b8dae9eb64b3a6e9b4756..cab03de8d08b7180b24e95ec62b5e7af96ba29dd 100644
--- a/LayoutTests/compositing/absolute-inside-out-of-view-fixed.html
+++ b/LayoutTests/compositing/absolute-inside-out-of-view-fixed.html
@@ -2,6 +2,7 @@
<html>
<head>
+ <script src="../resources/run-after-display.js"></script>
<style>
body {
margin: 0;
@@ -29,20 +30,25 @@
if (window.testRunner) {
testRunner.waitUntilDone();
testRunner.dumpAsText();
- if (window.internals) {
- window.internals.settings.setAcceleratedCompositingForFixedPositionEnabled(true);
- window.internals.settings.setFixedPositionCreatesStackingContext(true);
- }
+ }
+ if (window.internals) {
+ window.internals.settings.setAcceleratedCompositingForFixedPositionEnabled(true);
+ window.internals.settings.setFixedPositionCreatesStackingContext(true);
}
function doScroll()
{
window.setTimeout(function() {
window.scrollTo(0, 200);
- if (window.internals) {
- document.getElementById('results').innerText = internals.layerTreeAsText(document);
- testRunner.notifyDone();
- }
+
+ runAfterDisplay(function() {
+ if (window.internals) {
+ document.getElementById('results').innerText = internals.layerTreeAsText(document);
+ if (window.testRunner) {
+ testRunner.notifyDone();
+ }
+ }
+ });
}, 10);
}

Powered by Google App Engine
This is Rietveld 408576698