forked from mirrors/gecko-dev
Automatic update from web-platform-tests Fix a few flaky test in css-paint-api/ The problem of these tests is that we do a takeScreenShot in the rAF, and a rAF doesn't guarantee that the animation is ready, so it can be easily flaky given that the animations are running on the compositor thread. This CL fixes it so that it calls takeScreenShot when the animation ready promise is resolved, and the makes sure that the animation already begun. Bug: 1133821 Change-Id: I4fae6ccb9fe992316831d4d2013e1aa32eb52c82 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2562728 Reviewed-by: Kevin Ellis <kevers@chromium.org> Commit-Queue: Xida Chen <xidachen@chromium.org> Cr-Commit-Position: refs/heads/master@{#831650} -- wpt-commits: 130f163afe563f8d858e960570bfdd9dc02cdbae wpt-pr: 26661
14 lines
333 B
HTML
14 lines
333 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<body>
|
|
<canvas id ="canvas" width="100" height="100"></canvas>
|
|
<script>
|
|
var canvas = document.getElementById('canvas');
|
|
var context = canvas.getContext("2d");
|
|
context.fillStyle = 'blue';
|
|
context.fillRect(0, 0, 100, 100);
|
|
context.fillStyle = '#987664';
|
|
context.fillRect(0, 0, 50, 50);
|
|
</script>
|
|
</body>
|
|
</html>
|