summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/animation/request-animation-frame-within-callback.html
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/WebKit/LayoutTests/fast/animation/request-animation-frame-within-callback.html')
-rw-r--r--third_party/WebKit/LayoutTests/fast/animation/request-animation-frame-within-callback.html39
1 files changed, 13 insertions, 26 deletions
diff --git a/third_party/WebKit/LayoutTests/fast/animation/request-animation-frame-within-callback.html b/third_party/WebKit/LayoutTests/fast/animation/request-animation-frame-within-callback.html
index d5a366f..96fbbf0 100644
--- a/third_party/WebKit/LayoutTests/fast/animation/request-animation-frame-within-callback.html
+++ b/third_party/WebKit/LayoutTests/fast/animation/request-animation-frame-within-callback.html
@@ -1,28 +1,15 @@
<!DOCTYPE html>
<html>
-<span id="e">FAIL</span>
-<script>
-if (window.layoutTestController)
- layoutTestController.dumpAsText();
-
-var e = document.getElementById("e");
-var sameFrame;
-window.webkitRequestAnimationFrame(function() {
- sameFrame = true;
-}, e);
-window.webkitRequestAnimationFrame(function() {
- window.webkitRequestAnimationFrame(function() {
- e.innerHTML = sameFrame ? "FAIL" : "PASS";
- }, e);
-}, e);
-window.webkitRequestAnimationFrame(function() {
- sameFrame = false;
-}, e);
-
-// This should fire the three already registered callbacks, but not the one dynamically registered.
-if (window.layoutTestController)
- layoutTestController.display();
-// This should fire the dynamically registered callback.
-if (window.layoutTestController)
- layoutTestController.display();
-</script>
+<head>
+<link rel="stylesheet" href="../js/resources/js-test-style.css">
+<script src="../js/resources/js-test-pre.js"></script>
+</head>
+<body>
+<p id="description"></p>
+<div id="console"></div>
+<span id="e"></span>
+<span id="f"></span>
+<script src="script-tests/request-animation-frame-within-callback.js"></script>
+<script src="../js/resources/js-test-post.js"></script>
+</body>
+</html>