Fixed TTS-1899 by updating 7 TCs in tct-animationtiming-w3c-tests
authoryuhanx.xu <yuhanx.xu@intel.com>
Mon, 19 Aug 2013 03:29:15 +0000 (11:29 +0800)
committerwanmingx.lin <wanmingx.lin@intel.com>
Mon, 19 Aug 2013 05:34:03 +0000 (13:34 +0800)
Signed-off-by: yuhanx.xu <yuhanx.xu@intel.com>
tct-animationtiming-w3c-tests/animationtiming/AnimationTiming_WindowAnimationTiming_cancelAnimationFrame_boolean.html
tct-animationtiming-w3c-tests/animationtiming/AnimationTiming_WindowAnimationTiming_cancelAnimationFrame_neg10.html
tct-animationtiming-w3c-tests/animationtiming/AnimationTiming_WindowAnimationTiming_cancelAnimationFrame_string.html
tct-animationtiming-w3c-tests/animationtiming/AnimationTiming_WindowAnimationTiming_cancelAnimationFrame_undefined.html
tct-animationtiming-w3c-tests/animationtiming/AnimationTiming_WindowAnimationTiming_cancelAnimationFrame_validhandle.html
tct-animationtiming-w3c-tests/animationtiming/AnimationTiming_WindowAnimationTiming_requestAnimationFrame_cancelAnimationFrame.html
tct-animationtiming-w3c-tests/animationtiming/AnimationTiming_WindowAnimationTiming_requestAnimationFrame_singleAnimation.html

index c1ce1feb8a9576eed02c283f489ddd1eb1c2b5fc..05d25ed83a0a12c26b994c6c202808d70fb313b4 100644 (file)
@@ -28,26 +28,23 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 Authors:
          Yu, XiaoyanX <xiaoyanx.yu@intel.com>
          Cui, Jieqiong <jieqiongx.cui@intel.com>
+         Xu, Yuhan <yuhanx.xu@intel.com>
 
 -->
 
 <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>
-    <script type="text/javascript" src="../resources/testharness.js"></script>
-    <link rel="stylesheet" href="../resources/testharness.css" />
-    <script type="text/javascript" src="w3c/paintnotificationharness.js"></script>
+    <title>Check whether window.cancelRequestAnimationFrame || window.webkitCancelRequestAnimationFrame || 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>
-    <div id="log"></div>
     <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 reqAnimAPI = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.msRequestAnimationFrame || oRequestAnimationFrame;
+        var cancelAnimAPI = window.cancelRequestAnimationFrame || window.webkitCancelRequestAnimationFrame || window.mozCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame;
         var requestId = 0;
-        var handle=true;
+        var handle = true;
         function animate(time) {
             document.getElementById("animated").style.left =
                 (time - animationStartTime) % 2000 / 4 + "px";
index 5cf74eb0512743047140f7c22a43565e22936d28..d7e7ff5031be81588d42794eab2f96833e4001f5 100644 (file)
@@ -28,26 +28,23 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 Authors:
          Yu, XiaoyanX <xiaoyanx.yu@intel.com>
          Cui, Jieqiong <jieqiongx.cui@intel.com>
+         Xu, Yuhan <yuhanx.xu@intel.com>
 
 -->
 
 <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>
-    <script type="text/javascript" src="../resources/testharness.js"></script>
-    <link rel="stylesheet" href="../resources/testharness.css" />
-    <script type="text/javascript" src="w3c/paintnotificationharness.js"></script>
+    <title>Check whether window.cancelRequestAnimationFrame || window.webkitCancelRequestAnimationFrame || 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>
-    <div id="log"></div>
     <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 reqAnimAPI = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.msRequestAnimationFrame || oRequestAnimationFrame;
+        var cancelAnimAPI = window.cancelRequestAnimationFrame || window.webkitCancelRequestAnimationFrame || window.mozCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame;;
         var requestId = 0;
-        var handle=-10;
+        var handle = -10;
         function animate(time) {
             document.getElementById("animated").style.left =
                 (time - animationStartTime) % 2000 / 4 + "px";
index ce075f220ca50293a87056b457f452ed931a7697..f77750e67dbcdb88dd564275e3c3b9f17e9c31af 100644 (file)
@@ -28,26 +28,23 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 Authors:
          Yu, XiaoyanX <xiaoyanx.yu@intel.com>
          Cui, Jieqiong <jieqiongx.cui@intel.com>
+         Xu, Yuhan <yuhanx.xu@intel.com>
 
 -->
 
 <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>
-    <script type="text/javascript" src="../resources/testharness.js"></script>
-    <link rel="stylesheet" href="../resources/testharness.css" />
-    <script type="text/javascript" src="w3c/paintnotificationharness.js"></script>
+    <title>Check whether window.cancelRequestAnimationFrame || window.webkitCancelRequestAnimationFrame || 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>
-    <div id="log"></div>
     <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 reqAnimAPI = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.msRequestAnimationFrame || oRequestAnimationFrame;
+        var cancelAnimAPI = window.cancelRequestAnimationFrame || window.webkitCancelRequestAnimationFrame || window.mozCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame;;
         var requestId = 0;
-        var handle="abc";
+        var handle = "abc";
         function animate(time) {
             document.getElementById("animated").style.left =
                 (time - animationStartTime) % 2000 / 4 + "px";
@@ -58,7 +55,7 @@ Authors:
             requestId =reqAnimAPI(animate);
         }
         function stop() {
-                cancelAnimAPI(handle);
+            cancelAnimAPI(handle);
         }
     </script>
     <button onclick="stop()">Stop</button>
index 95a22be0bc4a9f51a0a4898de65cd4ff47153e1a..f6a82687da087d6841fcc1f4b4e21b83c4454fbb 100644 (file)
@@ -28,29 +28,26 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 Authors:
          Yu, XiaoyanX <xiaoyanx.yu@intel.com>
          Cui, Jieqiong <jieqiongx.cui@intel.com>
+         Xu, Yuhan <yuhanx.xu@intel.com>
 
 -->
 
 <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>
-    <script type="text/javascript" src="../resources/testharness.js"></script>
-    <link rel="stylesheet" href="../resources/testharness.css" />
-    <script type="text/javascript" src="w3c/paintnotificationharness.js"></script>
+    <title>Check whether window.cancelRequestAnimationFrame || window.webkitCancelRequestAnimationFrame || 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>
-    <div id="log"></div>
     <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 reqAnimAPI = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.msRequestAnimationFrame || oRequestAnimationFrame;
+        var cancelAnimAPI = window.cancelRequestAnimationFrame || window.webkitCancelRequestAnimationFrame || window.mozCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame;;
         var requestId = 0;
         function animate(time) {
             document.getElementById("animated").style.left =
                 (time - animationStartTime) % 2000 / 4 + "px";
-            requestId =reqAnimAPI(animate);
+            requestId = reqAnimAPI(animate);
         }
         function start() {
             animationStartTime = Date.now();
index 4c3a68e3b299f2326b5d0936c434264180dce953..c1bc1a10113a8cd6f347bca85cb822113ac3e89e 100644 (file)
@@ -28,24 +28,21 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 Authors:
          Yu, XiaoyanX <xiaoyanx.yu@intel.com>
          Cui, Jieqiong <jieqiongx.cui@intel.com>
+         Xu, Yuhan <yuhanx.xu@intel.com>
 
 -->
 
 <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>
-    <script type="text/javascript" src="../resources/testharness.js"></script>
-    <link rel="stylesheet" href="../resources/testharness.css" />
-    <script type="text/javascript" src="w3c/paintnotificationharness.js"></script>
+    <title>Check window.cancelRequestAnimationFrame || window.webkitCancelRequestAnimationFrame || 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>
-    <div id="log"></div>
     <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 reqAnimAPI = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.msRequestAnimationFrame || oRequestAnimationFrame;
+        var cancelAnimAPI = window.cancelRequestAnimationFrame || window.webkitCancelRequestAnimationFrame || window.mozCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame;;
         var requestId = 0;
         function animate(time) {
             document.getElementById("animated").style.left =
index fcffdf235233811bfaa74c48f4ae2206f0d7fec4..d8562f1f8dbb67f6a76254d261fbaa90e0acc693 100644 (file)
@@ -28,23 +28,21 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 Authors:
          Yu, XiaoyanX <xiaoyanx.yu@intel.com>
          Cui, Jieqiong <jieqiongx.cui@intel.com>
+         Xu, Yuhan <yuhanx.xu@intel.com>
 
 -->
 
 <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>
-    <script type="text/javascript" src="../resources/testharness.js"></script>
-    <link rel="stylesheet" href="../resources/testharness.css" />
+    <title>Check if window.cancelRequestAnimationFrame || window.webkitCancelRequestAnimationFrame || 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>
-    <div id="log"></div>
     <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 reqAnimAPI = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.msRequestAnimationFrame || oRequestAnimationFrame;
+        var cancelAnimAPI = window.cancelRequestAnimationFrame || window.webkitCancelRequestAnimationFrame || window.mozCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame;;
         var requestId = 0;
         function animate(time) {
             document.getElementById("animated").style.left =
index c0897942e19d9c0fae5a7fc828d3b6fcc422fe20..262cd9599ad1c0ce6feff5e221a24856e0a36f3f 100644 (file)
@@ -28,6 +28,7 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 Authors:
          Yu, XiaoyanX <xiaoyanx.yu@intel.com>
          Cui, Jieqiong <jieqiongx.cui@intel.com>
+         Xu, Yuhan <yuhanx.xu@intel.com>
 
 -->
 
@@ -35,15 +36,12 @@ Authors:
   <head>
     <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
     <title>check if requestAnimationFrame only schedules a single animation</title>
-    <script type="text/javascript" src="../resources/testharness.js"></script>
-    <link rel="stylesheet" href="../resources/testharness.css" />
   </head>
   <body onload="start()">
     <p>PASS If a red box display a text "500px" on screen </p>
     <p>FAIL If a red box dosen't display a text "500px" on screen </p>
-    <div id="log"></div>
     <script>
-        var reqAnimAPI =   window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.msRequestAnimationFrame || oRequestAnimationFrame;
+        var reqAnimAPI = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.msRequestAnimationFrame || oRequestAnimationFrame;
         var requestId = 0;
         function animate(time) {
             document.getElementById("animated").style.left ="500px";