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

Unified Diff: third_party/WebKit/LayoutTests/compositing/reflections/nested-reflection-anchor-point.html

Issue 2569063002: Tighten expectations for 3 flaky animated compositing tests. (Closed)
Patch Set: Created 4 years 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: third_party/WebKit/LayoutTests/compositing/reflections/nested-reflection-anchor-point.html
diff --git a/third_party/WebKit/LayoutTests/compositing/reflections/nested-reflection-anchor-point.html b/third_party/WebKit/LayoutTests/compositing/reflections/nested-reflection-anchor-point.html
index 2c9116e7a62d3734c76d1d6a9287f7ed4a4fa51b..d5530ed2e3f538eedd86a1dc52bed5243d598f4b 100644
--- a/third_party/WebKit/LayoutTests/compositing/reflections/nested-reflection-anchor-point.html
+++ b/third_party/WebKit/LayoutTests/compositing/reflections/nested-reflection-anchor-point.html
@@ -2,6 +2,7 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <script src="../../resources/run-after-layout-and-paint.js"></script>
<style>
.outer {
width: 120px;
@@ -27,16 +28,13 @@
}
</style>
<script type="text/javascript" charset="utf-8">
- if (window.testRunner)
- testRunner.waitUntilDone();
-
function doTest()
{
- window.setTimeout(function() {
- document.getElementById('inner').className = 'inner composited changed';
- if (window.testRunner)
- testRunner.notifyDone();
- }, 0);
+ if (window.testRunner) {
+ runAfterLayoutAndPaint(function() {
+ document.getElementById('inner').className = 'inner composited changed';
+ }, true);
+ }
}
window.addEventListener('load', doTest, false);
</script>

Powered by Google App Engine
This is Rietveld 408576698