Commit 2e4858e7 authored by schenney's avatar schenney Committed by Commit bot

Tighten expectations for 3 flaky animated compositing tests.

These 3 tests are flaky when run in random order or even alone.
As a first step in improving them, modify the tests to get away
from setTimeout and to verify that the pauseAnimationAPI is working.

This is unlikely to resolve the flakiness, but it will help narrow
the cause.

R=chrishtr
BUG=653722

Review-Url: https://codereview.chromium.org/2569063002
Cr-Commit-Position: refs/heads/master@{#438608}
parent e2d6faa1
......@@ -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>
......
Animation on original and reflection should both be paused half way through, giving 45deg rotation.
1
PASS - "webkitTransform.0" property for "inner" element at 0.5s saw something close to: 0.76
PASS - "webkitTransform.0" property for "inner" element at 0.5s saw something close to: 0.707107
......@@ -42,7 +42,7 @@
<script type="text/javascript" charset="utf-8">
const expectedValues = [
// [time, element-id, property, expected-value, tolerance]
[0.5, "inner", "webkitTransform.0", 0.76, 0.1],
[0.5, "inner", "webkitTransform.0", 0.707107, 0.000001],
];
var pixelTest = true;
......
1
PASS - "-webkit-transform.1" property for "inner" element at 0.5s saw something close to: 0.76
PASS - "-webkit-transform.1" property for "inner" element at 0.5s saw something close to: 0.707107
......@@ -39,7 +39,7 @@
const expectedValues = [
// [time, element-id, property, expected-value, tolerance]
[0.5, 'inner', '-webkit-transform.1', 0.76, 0.1],
[0.5, 'inner', '-webkit-transform.1', 0.707107, 0.000001],
];
function setupTest()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment