<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
- <title>Check whether window.cancelRequestAnimationFrame || window.webkitCancelRequestAnimationFrame || window.mozCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame; can be used normally with invalid parameter boolean</title>
+ <title>Check whether window.cancelRequestAnimationFrame || window.cancelAnimationFrame || window.mozCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame; can be used normally with invalid parameter boolean</title>
</head>
<body onload="start()">
<p>PASS If a red box moves from left to right, when click "Stop" button, the red box won't stop </p>
<p>FAIL If screen displays no animation or animation stops when click "Stop" button</p>
<script>
var reqAnimAPI = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.msRequestAnimationFrame || oRequestAnimationFrame;
- var cancelAnimAPI = window.cancelRequestAnimationFrame || window.webkitCancelRequestAnimationFrame || window.mozCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame;
+ var cancelAnimAPI = window.cancelRequestAnimationFrame || window.cancelAnimationFrame || window.mozCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame;
var requestId = 0;
var handle = true;
function animate(time) {
<html>
<head>
- <title>check if window.cancelRequestAnimationFrame || window.webkitCancelRequestAnimationFrame || window.mozCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame; is defined and not null</title>
+ <title>check if window.cancelRequestAnimationFrame || window.cancelAnimationFrame || window.mozCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame; is defined and not null</title>
<script type="text/javascript" src="../resources/testharness.js"></script>
</head>
<body>
<div id="log"></div>
<script type="text/javascript">
setup({timeout:500});
- var reqAnimAPI = window.cancelRequestAnimationFrame || window.webkitCancelRequestAnimationFrame || window.mozCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame;;
+ var reqAnimAPI = window.cancelRequestAnimationFrame || window.cancelAnimationFrame || window.mozCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame;;
test(function(){
assert_true(reqAnimAPI !== undefined && reqAnimAPI != null,
- "check if window.cancelRequestAnimationFrame || window.webkitCancelRequestAnimationFrame || window.mozCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame; is defined and not null");
- }, "check if window.cancelRequestAnimationFrame || window.webkitCancelRequestAnimationFrame || window.mozCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame; is defined and not null");
+ "check if window.cancelRequestAnimationFrame || window.cancelAnimationFrame || window.mozCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame; is defined and not null");
+ }, "check if window.cancelRequestAnimationFrame || window.cancelAnimationFrame || window.mozCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame; is defined and not null");
</script>
</body>
</html>
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
- <title>Check whether window.cancelRequestAnimationFrame || window.webkitCancelRequestAnimationFrame || window.mozCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame; can be used normally with invalid parameter negative number</title>
+ <title>Check whether window.cancelRequestAnimationFrame || window.cancelAnimationFrame || window.mozCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame; can be used normally with invalid parameter negative number</title>
</head>
<body onload="start()">
<p>PASS If a red box moves from left to right, when click "Stop" button, the red box won't stop </p>
<p>FAIL If screen displays no animation or animation stops when click "Stop" button</p>
<script>
var reqAnimAPI = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.msRequestAnimationFrame || oRequestAnimationFrame;
- var cancelAnimAPI = window.cancelRequestAnimationFrame || window.webkitCancelRequestAnimationFrame || window.mozCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame;;
+ var cancelAnimAPI = window.cancelRequestAnimationFrame || window.cancelAnimationFrame || window.mozCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame;;
var requestId = 0;
var handle = -10;
function animate(time) {
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
- <title>Check whether window.cancelRequestAnimationFrame || window.webkitCancelRequestAnimationFrame || window.mozCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame; can be used normally with invalid parameter string</title>
+ <title>Check whether window.cancelRequestAnimationFrame || window.cancelAnimationFrame || window.mozCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame; can be used normally with invalid parameter string</title>
</head>
<body onload="start()">
<p>PASS If a red box moves from left to right, when click "Stop" button, the red box won't stop </p>
<p>FAIL If screen displays no animation or animation stops when click "Stop" button</p>
<script>
var reqAnimAPI = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.msRequestAnimationFrame || oRequestAnimationFrame;
- var cancelAnimAPI = window.cancelRequestAnimationFrame || window.webkitCancelRequestAnimationFrame || window.mozCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame;;
+ var cancelAnimAPI = window.cancelRequestAnimationFrame || window.cancelAnimationFrame || window.mozCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame;;
var requestId = 0;
var handle = "abc";
function animate(time) {
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
- <title>Check whether window.cancelRequestAnimationFrame || window.webkitCancelRequestAnimationFrame || window.mozCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame; can be used normally with invalid parameter undefined</title>
+ <title>Check whether window.cancelRequestAnimationFrame || window.cancelAnimationFrame || window.mozCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame; can be used normally with invalid parameter undefined</title>
</head>
<body onload="start()">
<p>PASS If a red box moves from left to right, when click "Stop" button, the red box won't stop </p>
<p>FAIL If screen displays no animation or animation stops when click "Stop" button</p>
<script>
var reqAnimAPI = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.msRequestAnimationFrame || oRequestAnimationFrame;
- var cancelAnimAPI = window.cancelRequestAnimationFrame || window.webkitCancelRequestAnimationFrame || window.mozCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame;;
+ var cancelAnimAPI = window.cancelRequestAnimationFrame || window.cancelAnimationFrame || window.mozCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame;;
var requestId = 0;
function animate(time) {
document.getElementById("animated").style.left =
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
- <title>Check window.cancelRequestAnimationFrame || window.webkitCancelRequestAnimationFrame || window.mozCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame; can be called normally with the parameter returned by window.webkitRequestAnimationFrame</title>
+ <title>Check window.cancelRequestAnimationFrame || window.cancelAnimationFrame || window.mozCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame; can be called normally with the parameter returned by window.webkitRequestAnimationFrame</title>
</head>
<body onload="start()">
<p>PASS If a red box moves from left to right, when click the "Stop" buttonthe red box should stop</p>
<p>FAIL If screen deosn't have any animation or red box won't stop when clicks the "Stop" button</p>
<script>
var reqAnimAPI = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.msRequestAnimationFrame || oRequestAnimationFrame;
- var cancelAnimAPI = window.cancelRequestAnimationFrame || window.webkitCancelRequestAnimationFrame || window.mozCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame;;
+ var cancelAnimAPI = window.cancelRequestAnimationFrame || window.cancelAnimationFrame || window.mozCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame;;
var requestId = 0;
function animate(time) {
document.getElementById("animated").style.left =
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
- <title>Check if window.cancelRequestAnimationFrame || window.webkitCancelRequestAnimationFrame || window.mozCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame; and RequestAnimationFrame invoked sucessfully</title>
+ <title>Check if window.cancelRequestAnimationFrame || window.cancelAnimationFrame || window.mozCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame; and RequestAnimationFrame invoked sucessfully</title>
</head>
<body>
<p>PASS If a red box will move from left to right while click the button "Start". The red box will stop while click the button "Stop"</p>
<p>FAIL If the screen doesn't have any animation or red box does not stop while clicks the "Stop" button</p>
<script>
var reqAnimAPI = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.msRequestAnimationFrame || oRequestAnimationFrame;
- var cancelAnimAPI = window.cancelRequestAnimationFrame || window.webkitCancelRequestAnimationFrame || window.mozCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame;;
+ var cancelAnimAPI = window.cancelRequestAnimationFrame || window.cancelAnimationFrame || window.mozCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame;;
var requestId = 0;
function animate(time) {
document.getElementById("animated").style.left =
<script>
var t = async_test("Check if document's hidden attribute is false, window.webkitRequestAnimationFrame invoked sucessfully");
var reqAnimAPI = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.msRequestAnimationFrame || oRequestAnimationFrame;
- var cancelAnimAPI = window.cancelRequestAnimationFrame || window.webkitCancelRequestAnimationFrame || window.mozCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame;;
+ var cancelAnimAPI = window.cancelRequestAnimationFrame || window.cancelAnimationFrame || window.mozCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame;;
var requestId = 0;
function animate(time) {
t.step(function() {
window.msRequestAnimationFrame ||
oRequestAnimationFrame;
var cancelAnimAPI = window.cancelRequestAnimationFrame ||
- window.webkitCancelRequestAnimationFrame ||
+ window.cancelAnimationFrame ||
window.mozCancelAnimationFrame ||
window.msCancelAnimationFrame ||
window.oCancelAnimationFrame;