Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/paint/invalidation/table/animated-row-background.html |
| diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/table/animated-row-background.html b/third_party/WebKit/LayoutTests/paint/invalidation/table/animated-row-background.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..801834399c0556385dd608fa28229adc9edcf54f |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/paint/invalidation/table/animated-row-background.html |
| @@ -0,0 +1,28 @@ |
| +<!DOCTYPE html> |
| +<style> |
| +td { width: 100px; height: 100px } |
| +tr { background-image: url(../../../fast/backgrounds/resources/red-green-animated.gif) } |
| +</style> |
| +<table> |
| + <tr id="row"> |
| + <td id="cell1"></td> |
| + <td id="cell2"></td> |
| + </tr> |
| +</table> |
| +<img id="image"> |
| +<script src="../resources/text-based-repaint.js"></script> |
| +<script> |
| +window.testIsAsync = true; |
| +function repaintTest() { |
| + if (window.internals) |
| + internals.advanceImageAnimation(image); |
| + requestAnimationFrame(function() { |
| + finishRepaintTest(); |
| + }); |
| +} |
| +onload = function() { |
| + console.log("onload"); |
|
wkorman
2016/11/15 18:45:11
rm
Xianzhu
2016/11/15 18:52:29
Done.
|
| + image.onload = runRepaintTest; |
| + image.src="../../../fast/backgrounds/resources/red-green-animated.gif"; |
|
wkorman
2016/11/15 18:45:11
Why does the test need both this animated image in
Xianzhu
2016/11/15 18:52:29
The <img> element has two purposes:
1. ensures tha
|
| +} |
| +</script> |