diff options
Diffstat (limited to 'third_party/WebKit/LayoutTests/fast/animation/script-tests/request-animation-frame-display.js')
| -rw-r--r-- | third_party/WebKit/LayoutTests/fast/animation/script-tests/request-animation-frame-display.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/third_party/WebKit/LayoutTests/fast/animation/script-tests/request-animation-frame-display.js b/third_party/WebKit/LayoutTests/fast/animation/script-tests/request-animation-frame-display.js new file mode 100644 index 0000000..8429242 --- /dev/null +++ b/third_party/WebKit/LayoutTests/fast/animation/script-tests/request-animation-frame-display.js @@ -0,0 +1,20 @@ +description("Tests requestAnimationFrame callback handling of display: property changed within another callback"); + +var e = document.getElementById("e"); +e.style.display="none"; +var callbackInvokedOnA=false; +window.webkitRequestAnimationFrame(function() { + callbackInvokedOnA=true; +}, e); + +var f = document.getElementById("f"); +window.webkitRequestAnimationFrame(function() { + e.style.display=""; +}, f); + +if (window.layoutTestController) + layoutTestController.display(); + +shouldBeTrue("callbackInvokedOnA"); + +var successfullyParsed = true; |
