2011-04-25 Simon Fraser <simon.fraser@apple.com>
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Apr 2011 03:17:17 +0000 (03:17 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Apr 2011 03:17:17 +0000 (03:17 +0000)
        Reviewed by Daniel Bates.

        Move transition-test-helpers.js to resources/
        https://bugs.webkit.org/show_bug.cgi?id=59397

        Move transition-test-helpers.js and fix tests.

        * transitions/background-transitions.html:
        * transitions/border-radius-transition.html:
        * transitions/clip-transition.html:
        * transitions/color-transition-all.html:
        * transitions/color-transition-premultiplied.html:
        * transitions/default-timing-function.html:
        * transitions/font-family-during-transition.html:
        * transitions/mask-transitions.html:
        * transitions/min-max-width-height-transitions.html:
        * transitions/mismatched-shadow-styles.html:
        * transitions/move-after-transition.html:
        * transitions/multiple-background-size-transitions.html:
        * transitions/multiple-background-transitions.html:
        * transitions/multiple-mask-transitions.html:
        * transitions/multiple-shadow-transitions.html:
        * transitions/negative-delay.html:
        * transitions/resources/interrupted-accelerated-transition-final.html:
        * transitions/resources/transition-test-helpers.js:
        (roundNumber):
        (isCloseEnough):
        (isShadow):
        ():
        (expected):
        (callback.delay):
        * transitions/shorthand-border-transitions.html:
        * transitions/shorthand-transitions.html:
        * transitions/steps-timing-function.html:
        * transitions/svg-text-shadow-transition.html:
        * transitions/text-indent-transition.html:
        * transitions/transform-op-list-match.html:
        * transitions/transform-op-list-no-match.html:
        * transitions/transition-drt-api-delay.html:
        * transitions/transition-end-event-rendering.html:
        * transitions/transition-hit-test-transform.html:
        * transitions/transition-shorthand-delay.html:
        * transitions/zero-duration-in-list.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84874 268f45cc-cd09-0410-ab3c-d52691b4dbfc

31 files changed:
LayoutTests/ChangeLog
LayoutTests/transitions/background-transitions.html
LayoutTests/transitions/border-radius-transition.html
LayoutTests/transitions/clip-transition.html
LayoutTests/transitions/color-transition-all.html
LayoutTests/transitions/color-transition-premultiplied.html
LayoutTests/transitions/default-timing-function.html
LayoutTests/transitions/font-family-during-transition.html
LayoutTests/transitions/mask-transitions.html
LayoutTests/transitions/min-max-width-height-transitions.html
LayoutTests/transitions/mismatched-shadow-styles.html
LayoutTests/transitions/move-after-transition.html
LayoutTests/transitions/multiple-background-size-transitions.html
LayoutTests/transitions/multiple-background-transitions.html
LayoutTests/transitions/multiple-mask-transitions.html
LayoutTests/transitions/multiple-shadow-transitions.html
LayoutTests/transitions/negative-delay.html
LayoutTests/transitions/resources/interrupted-accelerated-transition-final.html
LayoutTests/transitions/resources/transition-test-helpers.js [moved from LayoutTests/transitions/transition-test-helpers.js with 100% similarity]
LayoutTests/transitions/shorthand-border-transitions.html
LayoutTests/transitions/shorthand-transitions.html
LayoutTests/transitions/steps-timing-function.html
LayoutTests/transitions/svg-text-shadow-transition.html
LayoutTests/transitions/text-indent-transition.html
LayoutTests/transitions/transform-op-list-match.html
LayoutTests/transitions/transform-op-list-no-match.html
LayoutTests/transitions/transition-drt-api-delay.html
LayoutTests/transitions/transition-end-event-rendering.html
LayoutTests/transitions/transition-hit-test-transform.html
LayoutTests/transitions/transition-shorthand-delay.html
LayoutTests/transitions/zero-duration-in-list.html

index 43a0699..7b48c27 100644 (file)
@@ -2,6 +2,52 @@
 
         Reviewed by Daniel Bates.
 
+        Move transition-test-helpers.js to resources/
+        https://bugs.webkit.org/show_bug.cgi?id=59397
+        
+        Move transition-test-helpers.js and fix tests.
+
+        * transitions/background-transitions.html:
+        * transitions/border-radius-transition.html:
+        * transitions/clip-transition.html:
+        * transitions/color-transition-all.html:
+        * transitions/color-transition-premultiplied.html:
+        * transitions/default-timing-function.html:
+        * transitions/font-family-during-transition.html:
+        * transitions/mask-transitions.html:
+        * transitions/min-max-width-height-transitions.html:
+        * transitions/mismatched-shadow-styles.html:
+        * transitions/move-after-transition.html:
+        * transitions/multiple-background-size-transitions.html:
+        * transitions/multiple-background-transitions.html:
+        * transitions/multiple-mask-transitions.html:
+        * transitions/multiple-shadow-transitions.html:
+        * transitions/negative-delay.html:
+        * transitions/resources/interrupted-accelerated-transition-final.html:
+        * transitions/resources/transition-test-helpers.js:
+        (roundNumber):
+        (isCloseEnough):
+        (isShadow):
+        ():
+        (expected):
+        (callback.delay):
+        * transitions/shorthand-border-transitions.html:
+        * transitions/shorthand-transitions.html:
+        * transitions/steps-timing-function.html:
+        * transitions/svg-text-shadow-transition.html:
+        * transitions/text-indent-transition.html:
+        * transitions/transform-op-list-match.html:
+        * transitions/transform-op-list-no-match.html:
+        * transitions/transition-drt-api-delay.html:
+        * transitions/transition-end-event-rendering.html:
+        * transitions/transition-hit-test-transform.html:
+        * transitions/transition-shorthand-delay.html:
+        * transitions/zero-duration-in-list.html:
+
+2011-04-25  Simon Fraser  <simon.fraser@apple.com>
+
+        Reviewed by Daniel Bates.
+
         Make a couple of animation tests into text tests
         https://bugs.webkit.org/show_bug.cgi?id=59389
 
index 5ac17e7..e7385b6 100644 (file)
@@ -32,7 +32,7 @@
     }
     
   </style>
-  <script src="transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
+  <script src="resources/transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
   <script type="text/javascript" charset="utf-8">
 
     const expectedValues = [
@@ -48,7 +48,6 @@
     }
   
     runTransitionTest(expectedValues, setupTest, true);
-    
   </script>
 </head>
 <body>
index 98734de..4d2ed2b 100644 (file)
@@ -29,7 +29,7 @@
     }
     
   </style>
-  <script src="transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
+  <script src="resources/transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
   <script type="text/javascript" charset="utf-8">
 
     const expectedValues = [
index 28d491a..aa7338c 100644 (file)
@@ -16,7 +16,7 @@
       clip: rect(30px, 70px, 70px, 30px);
     }
   </style>
-  <script src="transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
+  <script src="resources/transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
   <script type="text/javascript" charset="utf-8">
     
     const expectedValues = [
index 9b4d8d7..81d8c67 100644 (file)
@@ -18,7 +18,7 @@
       color: #0F0;
     }
   </style>
-  <script src="transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
+  <script src="resources/transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
   <script type="text/javascript" charset="utf-8">
     const expectedValues = [
       // [time, element-id, property, expected-value, tolerance, post-completion callback, should-be-transitioning]
index d725a16..90c789f 100644 (file)
@@ -29,7 +29,7 @@
       background-color: rgba(0, 0, 255, 1);
     }
   </style>
-  <script src="transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
+  <script src="resources/transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
   <script type="text/javascript" charset="utf-8">
     const expectedValues = [
       // [time, element-id, property, expected-value, tolerance]
index 975fdcc..97c9106 100644 (file)
@@ -39,7 +39,7 @@
     }
     
   </style>
-  <script src="transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
+  <script src="resources/transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
   <script type="text/javascript" charset="utf-8">
 
     const expectedValues = [
index 79268ff..1ecd0f5 100644 (file)
@@ -21,7 +21,7 @@
   }
   </style>
   
-  <script src="transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
+  <script src="resources/transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
   <script type="text/javascript" charset="utf-8">
     const expectedValues = [
       // [time, element-id, property, expected-value, tolerance]
index dd579ef..77df82f 100644 (file)
@@ -32,7 +32,7 @@
     }
     
   </style>
-  <script src="transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
+  <script src="resources/transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
   <script type="text/javascript" charset="utf-8">
 
     const expectedValues = [
index 726f46e..6f1a5bb 100644 (file)
@@ -41,7 +41,7 @@
     }
 
   </style>
-  <script src="transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
+  <script src="resources/transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
   <script type="text/javascript" charset="utf-8">
 
     const expectedValues = [
index 7cb6616..4b00f90 100644 (file)
@@ -39,7 +39,7 @@
     }
 
   </style>
-  <script src="transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
+  <script src="resources/transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
   <script type="text/javascript" charset="utf-8">
 
     const expectedValues = [
index 33b44bc..d47522c 100644 (file)
@@ -39,7 +39,7 @@
     }
 
    </style>
-   <script src="transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
+   <script src="resources/transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" charset="utf-8">
 
     function testEnded()
index 22af4eb..23f5926 100644 (file)
@@ -38,7 +38,7 @@
     }
 
   </style>
-  <script src="transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
+  <script src="resources/transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
   <script type="text/javascript" charset="utf-8">
 
     const expectedValues = [
index 2c0e268..ba5e74c 100644 (file)
@@ -46,7 +46,7 @@
     }
 
   </style>
-  <script src="transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
+  <script src="resources/transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
   <script type="text/javascript" charset="utf-8">
 
     const expectedValues = [
index beee8da..6f95268 100644 (file)
@@ -46,7 +46,7 @@
     }
 
   </style>
-  <script src="transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
+  <script src="resources/transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
   <script type="text/javascript" charset="utf-8">
 
     const expectedValues = [
index 96599ec..f8d476b 100644 (file)
@@ -49,7 +49,7 @@
     }
 
   </style>
-  <script src="transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
+  <script src="resources/transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
   <script type="text/javascript" charset="utf-8">
 
     const expectedValues = [
index f9970b0..55208e4 100644 (file)
@@ -55,7 +55,7 @@
     }
   </style>
 
-  <script src="transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
+  <script src="resources/transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
 
   <script>
     // The delay of square1 is negative so square1 should be in ahead of square2.
index f18faf7..9d8ed2b 100644 (file)
@@ -19,7 +19,7 @@
         }
     </style>
 
-    <script src="../transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
+    <script src="../resources/transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
     <script type="text/javascript" charset="utf-8">
 
     const expectedValues = [
index 4880598..d99a785 100644 (file)
@@ -46,7 +46,7 @@
       border-bottom-width: 40px;
     }
   </style>
-  <script src="transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
+  <script src="resources/transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
   <script type="text/javascript" charset="utf-8">
     
     const expectedValues = [
index 8b97227..8d6285b 100644 (file)
@@ -28,7 +28,7 @@
     }
 
   </style>
-  <script src="transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
+  <script src="resources/transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
   <script type="text/javascript" charset="utf-8">
     
     const expectedValues = [
index 66fae31..e641ea9 100644 (file)
@@ -16,7 +16,7 @@
       -webkit-transition-property: -webkit-transform;
     }
   </style>
-  <script src="transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
+  <script src="resources/transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
   <script type="text/javascript" charset="utf-8">
     
     const expectedValues = [
index 7b8ab75..e2fea96 100644 (file)
@@ -17,7 +17,7 @@
         }
     </style>
 
-    <script src="transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
+    <script src="resources/transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
     <script type="text/javascript" charset="utf-8">
         const expectedValues = [
             // [time, element-id, property, expected-value, tolerance]
index 5f92528..9793e3e 100644 (file)
@@ -23,7 +23,7 @@
     }
 
   </style>
-  <script src="transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
+  <script src="resources/transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
   <script type="text/javascript" charset="utf-8">
 
     const expectedValues = [
index ce96a8e..54f765f 100644 (file)
@@ -16,7 +16,7 @@
       -webkit-transition-property: -webkit-transform;
     }
   </style>
-  <script src="transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
+  <script src="resources/transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
   <script type="text/javascript" charset="utf-8">
     
     function DegreesToRotation(angle)
index 14165d0..920b0ee 100644 (file)
@@ -16,7 +16,7 @@
       -webkit-transition-property: -webkit-transform;
     }
   </style>
-  <script src="transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
+  <script src="resources/transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
   <script type="text/javascript" charset="utf-8">
     
     function DegreesToRotation(angle)
index 589f599..2d044a2 100644 (file)
@@ -21,7 +21,7 @@
       left: 200px;
     }
    </style>
-   <script src="transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
+   <script src="resources/transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" charset="utf-8">
     function endTest() {
       if (window.layoutTestController) {
index d7b68c6..62d8773 100644 (file)
@@ -42,7 +42,7 @@
     }
 
    </style>
-   <script src="transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
+   <script src="resources/transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" charset="utf-8">
 
     function testEnded()
index 819181e..125b9e9 100644 (file)
@@ -26,7 +26,7 @@
         position:absolute;
     }
      </style>
-   <script src="transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
+   <script src="resources/transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" charset="utf-8">
         function checkResult(pos, isIn)
         {
index 58d5cb8..7a13ab6 100644 (file)
@@ -22,7 +22,7 @@
       left: 200px;
     }
    </style>
-   <script src="transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
+   <script src="resources/transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" charset="utf-8">
     function endTest() {
       if (window.layoutTestController) {
index d4babb1..ded19a4 100644 (file)
@@ -16,7 +16,7 @@
       -webkit-transition-property: top, left;
     }
   </style>
-  <script src="transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
+  <script src="resources/transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
   <script type="text/javascript" charset="utf-8">
     
     const expectedValues = [