Fixed bug TTS-1865 by update 23 TCs in tct-backgrounds-css3-tests
authoryuhanx.xu <yuhanx.xu@intel.com>
Tue, 20 Aug 2013 08:16:44 +0000 (16:16 +0800)
committerwanmingx.lin <wanmingx.lin@intel.com>
Tue, 20 Aug 2013 09:51:28 +0000 (17:51 +0800)
Signed-off-by: yuhanx.xu <yuhanx.xu@intel.com>
23 files changed:
tct-backgrounds-css3-tests/backgrounds/CSS3BG_background-attachment_local_no-repeat_none.html
tct-backgrounds-css3-tests/backgrounds/CSS3BG_background-image_many_url.html
tct-backgrounds-css3-tests/backgrounds/CSS3BG_background-size_50pct_no-repeat_none.html
tct-backgrounds-css3-tests/backgrounds/CSS3BG_background-size_50pct_no-repeat_url_png.html
tct-backgrounds-css3-tests/backgrounds/CSS3BG_background-size_50pct_repeat-x_url_png.html
tct-backgrounds-css3-tests/backgrounds/CSS3BG_background-size_50pct_repeat-y_none.html
tct-backgrounds-css3-tests/backgrounds/CSS3BG_background-size_50pct_repeat-y_png.html
tct-backgrounds-css3-tests/backgrounds/CSS3BG_background-size_50pct_repeat-y_url_png.html
tct-backgrounds-css3-tests/backgrounds/CSS3BG_background-size_50pct_repeat_none.html
tct-backgrounds-css3-tests/backgrounds/CSS3BG_background-size_50pct_repeat_url_png.html
tct-backgrounds-css3-tests/backgrounds/CSS3BG_border-image-width_20pct_fill_none.html
tct-backgrounds-css3-tests/backgrounds/CSS3BG_border-image_50pct_50pct_none_20pct.html
tct-backgrounds-css3-tests/backgrounds/CSS3BG_border-image_50pct_50pct_none_50px.html
tct-backgrounds-css3-tests/backgrounds/CSS3BG_border-image_50pct_50pct_none_auto.html
tct-backgrounds-css3-tests/backgrounds/CSS3BG_border-image_50pct_50pct_url_png_20pct.html
tct-backgrounds-css3-tests/backgrounds/CSS3BG_border-image_50pct_50pct_url_png_50px.html
tct-backgrounds-css3-tests/backgrounds/CSS3BG_border-image_50pct_50pct_url_png_auto.html
tct-backgrounds-css3-tests/backgrounds/CSS3BG_border-image_50px_40px_none_20pct.html
tct-backgrounds-css3-tests/backgrounds/CSS3BG_border-image_50px_40px_none_50px.html
tct-backgrounds-css3-tests/backgrounds/CSS3BG_border-image_50px_40px_none_auto.html
tct-backgrounds-css3-tests/backgrounds/CSS3BG_border-image_50px_40px_url_png_20pct.html
tct-backgrounds-css3-tests/backgrounds/CSS3BG_border-image_50px_40px_url_png_50px.html
tct-backgrounds-css3-tests/backgrounds/CSS3BG_border-image_50px_40px_url_png_auto.html

index 2e2cffa87f90146a0cc9f7e6b73c213f23f3dc1a..e6d1b39f013284f086ea28c175a436b593fed414 100644 (file)
@@ -62,7 +62,7 @@ Authors:
             div.style[headProp("backgroundRepeat")] = "no-repeat";
             div.style[headProp("backgroundImage")] = "none";
             var propvalue = GetCurrentStyle("backgroundAttachment");
-            assert_equals(propvalue, "local", "The element background-attachment should ")
+            assert_equals(propvalue, "local", "The element background-attachment should ");
             var backgroundRepeat = GetCurrentStyle("backgroundRepeat");
             assert_equals(backgroundRepeat, "no-repeat", "The element background-repeat should ");
             var backgroundImage = GetCurrentStyle("backgroundImage");
index a8efb452b70c0a77e32377cd98d03f906b38904c..ef0d46d55d80b657c39536a941ded205934c49de 100644 (file)
@@ -1,32 +1,33 @@
 <!DOCTYPE html>
 <!--
-Copyright (c) 2012 Intel Corporation.
+Copyright (c) 2013 Intel Corporation.
 
-Redistribution and use in source and binary forms, with or without modification, 
-are permitted provided that the following conditions are met: 
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
 
-* Redistributions of works must retain the original copyright notice, this list 
+* Redistributions of works must retain the original copyright notice, this list
   of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice, 
-  this list of conditions and the following disclaimer in the documentation 
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors 
-  may be used to endorse or promote products derived from this work without 
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
   specific prior written permission.
 
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
- Authors: 
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
         haox,li <haox,li@intel.com>
+        Xu,Yuhan <yuhanx.xu@intel.com>
 
 -->
 
@@ -37,9 +38,9 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     <link rel="help" href="http://www.w3.org/TR/2012/CR-css3-background-20120724/#the-background-image" />
     <meta name="assert" content="To check if the element background-image test expected many url"/>
     <meta name="flags" content="" />
-    <script src="support/background_border_test.js" type="text/javascript"></script>
-    <script src="../resources/testharness.js" type="text/javascript"></script>
-    <script src="../resources/testharnessreport.js" type="text/javascript"></script>
+    <script src="support/background_border_test.js"></script>
+    <script src="../resources/testharness.js"></script>
+    <script src="../resources/testharnessreport.js"></script>
     <style>
         #bg {
             width: 300px;
@@ -59,11 +60,10 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
         div.style[headProp("backgroundImage")] = "url(support/swatch-orange.png),url(webkit/resources/diamond.png),url(webkit/resources/ring.png)";
         var backgroundImage = GetCurrentStyle("backgroundImage");
         backgroundImage = getfilename(backgroundImage);
-        var t = async_test(document.title, { timeout: 500 });
-        t.step(function () {
-            assert_equals(backgroundImage, "ring.png", "The element background-image test")
-        });
-        t.done();
+        test(function() {
+            var prop = backgroundImage.indexOf("ring.png")!=-1;
+            assert_true(prop, "The element background-image test");
+        }, document.title);
     </script>
   </body>
 </html>
index 0ad132b453a425005dc5aecdbe06e73a586935ff..f634fd9f01f4176687bcbdb32253dd704fc1ce11 100644 (file)
@@ -1,32 +1,33 @@
 <!DOCTYPE html>
 <!--
-Copyright (c) 2012 Intel Corporation.
+Copyright (c) 2013 Intel Corporation.
 
-Redistribution and use in source and binary forms, with or without modification, 
+Redistribution and use in source and binary forms, with or without modification,
 are permitted provided that the following conditions are met:
 
-* Redistributions of works must retain the original copyright notice, this list 
+* Redistributions of works must retain the original copyright notice, this list
   of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice, 
-  this list of conditions and the following disclaimer in the documentation 
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors 
-  may be used to endorse or promote products derived from this work without 
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
   specific prior written permission.
 
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
         haox,li <haox,li@intel.com>
+        Xu,Yuhan <yuhanx.xu@intel.com>
 
 -->
 
@@ -37,9 +38,9 @@ Authors:
     <link rel="help" href="http://www.w3.org/TR/2012/CR-css3-background-20120724/#background-size" />
     <meta name="assert" content="background-size:50%;background-repeat:no-repeat;background-image:none on test div"/>
     <meta name="flags" content="" />
-    <script type="text/javascript" src="../resources/testharness.js"></script>
-    <script type="text/javascript" src="../resources/testharnessreport.js"></script>
-    <script type="text/javascript" src="support/cssstyle.js"></script>
+    <script src="support/cssstyle.js"></script>
+    <script src="../resources/testharness.js"></script>
+    <script src="../resources/testharnessreport.js"></script>
     <style>
         #test{
             height: 200px;
@@ -54,22 +55,21 @@ Authors:
   <body>
     <div id="log"></div>
     <div id="test"></div>
-    <script type="text/javascript">
+    <script>
         var div = document.querySelector("#test");
-        var t = async_test(document.title, { timeout: 500 });
-        t.step(function () {
+        test(function() {
             div.style[headProp("background-size")] = "50%";
             div.style[headProp("background-repeat")] = "no-repeat";
             div.style[headProp("background-image")] = "none";
             var propvalue = GetCurrentStyle("background-size");
-            assert_equals(propvalue, "50%", "The element background-size should ")
+            var prop = propvalue.indexOf("50%") != -1;
+            assert_true(prop, "The element background-size should be 50%");
             var backgroundRepeat = GetCurrentStyle("background-repeat");
             assert_equals(backgroundRepeat, "no-repeat", "The element background-repeat should ");
             var backgroundImage = GetCurrentStyle("background-image");
             prop = backgroundImage.indexOf("none")!=-1;
             assert_true(prop, "The element background-image should be none");
-        });
-        t.done();
+        }, document.title);
     </script>
   </body>
 </html>
index e334d79329c6c77c4bac5bd1c71107cac0e5d8fa..94595b8f5dcbe50ecf49a210c8083bd7807af673 100644 (file)
@@ -1,32 +1,33 @@
 <!DOCTYPE html>
 <!--
-Copyright (c) 2012 Intel Corporation.
+Copyright (c) 2013 Intel Corporation.
 
-Redistribution and use in source and binary forms, with or without modification, 
+Redistribution and use in source and binary forms, with or without modification,
 are permitted provided that the following conditions are met:
 
-* Redistributions of works must retain the original copyright notice, this list 
+* Redistributions of works must retain the original copyright notice, this list
   of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice, 
-  this list of conditions and the following disclaimer in the documentation 
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors 
-  may be used to endorse or promote products derived from this work without 
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
   specific prior written permission.
 
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
         haox,li <haox,li@intel.com>
+        Xu,Yuhan <yuhanx.xu@intel.com>
 
 -->
 
@@ -37,9 +38,9 @@ Authors:
     <link rel="help" href="http://www.w3.org/TR/2012/CR-css3-background-20120724/#background-size" />
     <meta name="assert" content="background-size:50%;background-repeat:no-repeat;background-image:url(support/swatch-orange.png) on test div"/>
     <meta name="flags" content="" />
-    <script type="text/javascript" src="../resources/testharness.js"></script>
-    <script type="text/javascript" src="../resources/testharnessreport.js"></script>
-    <script type="text/javascript" src="support/cssstyle.js"></script>
+    <script src="support/cssstyle.js"></script>
+    <script src="../resources/testharness.js"></script>
+    <script src="../resources/testharnessreport.js"></script>
     <style>
         #test{
             height: 200px;
@@ -54,22 +55,21 @@ Authors:
   <body>
     <div id="log"></div>
     <div id="test"></div>
-    <script type="text/javascript">
+    <script>
         var div = document.querySelector("#test");
-        var t = async_test(document.title, { timeout: 500 });
-        t.step(function () {
+        test(function() {
             div.style[headProp("background-size")] = "50%";
             div.style[headProp("background-repeat")] = "no-repeat";
             div.style[headProp("background-image")] = "url(support/swatch-orange.png)";
             var propvalue = GetCurrentStyle("background-size");
-            assert_equals(propvalue, "50%", "The element background-size should ")
+            var prop = propvalue.indexOf("50%") != -1;
+            assert_true(prop, "The element background-size should be 50%");
             var backgroundRepeat = GetCurrentStyle("background-repeat");
             assert_equals(backgroundRepeat, "no-repeat", "The element background-repeat should ");
             var backgroundImage = GetCurrentStyle("background-image");
             prop = backgroundImage.indexOf("support/swatch-orange.png")!=-1;
             assert_true(prop, "The element background-image should be url(support/swatch-orange.png)");
-        });
-        t.done();
+        }, document.title);
     </script>
   </body>
 </html>
index fab6d362ef952a5d09953d3742030a9fe3239f8c..13876aa14512d94459a81c9a21ee69777892a3c8 100644 (file)
@@ -1,32 +1,33 @@
 <!DOCTYPE html>
 <!--
-Copyright (c) 2012 Intel Corporation.
+Copyright (c) 2013 Intel Corporation.
 
-Redistribution and use in source and binary forms, with or without modification, 
+Redistribution and use in source and binary forms, with or without modification,
 are permitted provided that the following conditions are met:
 
-* Redistributions of works must retain the original copyright notice, this list 
+* Redistributions of works must retain the original copyright notice, this list
   of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice, 
-  this list of conditions and the following disclaimer in the documentation 
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors 
-  may be used to endorse or promote products derived from this work without 
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
   specific prior written permission.
 
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
         haox,li <haox,li@intel.com>
+        Xu,Yuhan <yuhanx.xu@intel.com>
 
 -->
 
@@ -37,9 +38,9 @@ Authors:
     <link rel="help" href="http://www.w3.org/TR/2012/CR-css3-background-20120724/#background-size" />
     <meta name="assert" content="background-size:50%;background-repeat:repeat-x;background-image:url(support/swatch-orange.png) on test div"/>
     <meta name="flags" content="" />
-    <script type="text/javascript" src="../resources/testharness.js"></script>
-    <script type="text/javascript" src="../resources/testharnessreport.js"></script>
-    <script type="text/javascript" src="support/cssstyle.js"></script>
+    <script src="support/cssstyle.js"></script>
+    <script src="../resources/testharness.js"></script>
+    <script src="../resources/testharnessreport.js"></script>
     <style>
         #test{
             height: 200px;
@@ -54,22 +55,21 @@ Authors:
   <body>
     <div id="log"></div>
     <div id="test"></div>
-    <script type="text/javascript">
+    <script>
         var div = document.querySelector("#test");
-        var t = async_test(document.title, { timeout: 500 });
-        t.step(function () {
+        test(function() {
             div.style[headProp("background-size")] = "50%";
             div.style[headProp("background-repeat")] = "repeat-x";
             div.style[headProp("background-image")] = "url(support/swatch-orange.png)";
             var propvalue = GetCurrentStyle("background-size");
-            assert_equals(propvalue, "50%", "The element background-size should ")
+            var prop = propvalue.indexOf("50%") != -1;
+            assert_true(prop, "The element background-size should be 50%");
             var backgroundRepeat = GetCurrentStyle("background-repeat");
             assert_equals(backgroundRepeat, "repeat-x", "The element background-repeat should ");
             var backgroundImage = GetCurrentStyle("background-image");
             prop = backgroundImage.indexOf("support/swatch-orange.png")!=-1;
             assert_true(prop, "The element background-image should be url(support/swatch-orange.png)");
-        });
-        t.done();
+        }, document.title);
     </script>
   </body>
 </html>
index 9e75178afe4b07ff00c9e85230cf477ce2129083..7e92142f717bdff423daf8dc822b91be1f0ad978 100644 (file)
@@ -1,32 +1,33 @@
 <!DOCTYPE html>
 <!--
-Copyright (c) 2012 Intel Corporation.
+Copyright (c) 2013 Intel Corporation.
 
-Redistribution and use in source and binary forms, with or without modification, 
+Redistribution and use in source and binary forms, with or without modification,
 are permitted provided that the following conditions are met:
 
-* Redistributions of works must retain the original copyright notice, this list 
+* Redistributions of works must retain the original copyright notice, this list
   of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice, 
-  this list of conditions and the following disclaimer in the documentation 
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors 
-  may be used to endorse or promote products derived from this work without 
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
   specific prior written permission.
 
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
         haox,li <haox,li@intel.com>
+        Xu,Yuhan <yuhanx.xu@intel.com>
 
 -->
 
@@ -37,9 +38,9 @@ Authors:
     <link rel="help" href="http://www.w3.org/TR/2012/CR-css3-background-20120724/#background-size" />
     <meta name="assert" content="background-size:50%;background-repeat:repeat-y;background-image:none on test div"/>
     <meta name="flags" content="" />
-    <script type="text/javascript" src="../resources/testharness.js"></script>
-    <script type="text/javascript" src="../resources/testharnessreport.js"></script>
-    <script type="text/javascript" src="support/cssstyle.js"></script>
+    <script src="support/cssstyle.js"></script>
+    <script src="../resources/testharness.js"></script>
+    <script src="../resources/testharnessreport.js"></script>
     <style>
         #test{
             height: 200px;
@@ -54,22 +55,21 @@ Authors:
   <body>
     <div id="log"></div>
     <div id="test"></div>
-    <script type="text/javascript">
+    <script>
         var div = document.querySelector("#test");
-        var t = async_test(document.title, { timeout: 500 });
-        t.step(function () {
+        test(function() {
             div.style[headProp("background-size")] = "50%";
             div.style[headProp("background-repeat")] = "repeat-y";
             div.style[headProp("background-image")] = "none";
             var propvalue = GetCurrentStyle("background-size");
-            assert_equals(propvalue, "50%", "The element background-size should ")
+            var prop = propvalue.indexOf("50%") != -1;
+            assert_true(prop, "The element background-size should be 50%");
             var backgroundRepeat = GetCurrentStyle("background-repeat");
             assert_equals(backgroundRepeat, "repeat-y", "The element background-repeat should ");
             var backgroundImage = GetCurrentStyle("background-image");
-            prop = backgroundImage.indexOf("none")!=-1;
+            prop = backgroundImage.indexOf("none") != -1;
             assert_true(prop, "The element background-image should be none");
-        });
-        t.done();
+        }, document.title);
     </script>
   </body>
 </html>
index d8b271aa0ff3f01442cd9b4a5ce22438d5267948..a41ee91f421cbe3d52f17335e3ca2575db9d880b 100644 (file)
@@ -1,32 +1,33 @@
 <!DOCTYPE html>
 <!--
-Copyright (c) 2012 Intel Corporation.
+Copyright (c) 2013 Intel Corporation.
 
-Redistribution and use in source and binary forms, with or without modification, 
+Redistribution and use in source and binary forms, with or without modification,
 are permitted provided that the following conditions are met:
 
-* Redistributions of works must retain the original copyright notice, this list 
+* Redistributions of works must retain the original copyright notice, this list
   of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice, 
-  this list of conditions and the following disclaimer in the documentation 
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors 
-  may be used to endorse or promote products derived from this work without 
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
   specific prior written permission.
 
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
         haox,li <haox,li@intel.com>
+        Xu,Yuhan <yuhanx.xu@intel.com>
 
 -->
 
@@ -37,9 +38,9 @@ Authors:
     <link rel="help" href="http://www.w3.org/TR/2012/CR-css3-background-20120724/#background-size" />
     <meta name="assert" content="background-size:50%;background-repeat:repeat-y;background-image:url(support/swatch-orange.png) on test div"/>
     <meta name="flags" content="" />
-    <script type="text/javascript" src="../resources/testharness.js"></script>
-    <script type="text/javascript" src="../resources/testharnessreport.js"></script>
-    <script type="text/javascript" src="support/cssstyle.js"></script>
+    <script src="support/cssstyle.js"></script>
+    <script src="../resources/testharness.js"></script>
+    <script src="../resources/testharnessreport.js"></script>
     <style>
         #test{
             height: 200px;
@@ -54,22 +55,21 @@ Authors:
   <body>
     <div id="log"></div>
     <div id="test"></div>
-    <script type="text/javascript">
+    <script>
         var div = document.querySelector("#test");
-        var t = async_test(document.title, { timeout: 500 });
-        t.step(function () {
+        test(function() {
             div.style[headProp("background-size")] = "50%";
             div.style[headProp("background-repeat")] = "repeat-y";
             div.style[headProp("background-image")] = "url(support/swatch-orange.png)";
             var propvalue = GetCurrentStyle("background-size");
-            assert_equals(propvalue, "50%", "The element background-size should ")
+            var prop = propvalue.indexOf("50%") != -1;
+            assert_true(prop, "The element background-size should be 50%");
             var backgroundRepeat = GetCurrentStyle("background-repeat");
             assert_equals(backgroundRepeat, "repeat-y", "The element background-repeat should ");
             var backgroundImage = GetCurrentStyle("background-image");
             prop = backgroundImage.indexOf("support/swatch-orange.png")!=-1;
             assert_true(prop, "The element background-image should be url(support/swatch-orange.png)");
-        });
-        t.done();
+        }, document.title);
     </script>
   </body>
 </html>
index 9e350ff6d086f3d231fcc8360c71fccd6e5e4b0f..f26ce1ead8737a240ff265527c12e5bec4bd63e9 100644 (file)
@@ -1,32 +1,33 @@
 <!DOCTYPE html>
 <!--
-Copyright (c) 2012 Intel Corporation.
+Copyright (c) 2013 Intel Corporation.
 
-Redistribution and use in source and binary forms, with or without modification, 
+Redistribution and use in source and binary forms, with or without modification,
 are permitted provided that the following conditions are met:
 
-* Redistributions of works must retain the original copyright notice, this list 
+* Redistributions of works must retain the original copyright notice, this list
   of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice, 
-  this list of conditions and the following disclaimer in the documentation 
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors 
-  may be used to endorse or promote products derived from this work without 
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
   specific prior written permission.
 
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
         haox,li <haox,li@intel.com>
+        Xu,Yuhan <yuhanx.xu@intel.com>
 
 -->
 
@@ -37,9 +38,9 @@ Authors:
     <link rel="help" href="http://www.w3.org/TR/2012/CR-css3-background-20120724/#background-size" />
     <meta name="assert" content="background-size:50%;background-repeat:repeat-x;background-image:none on test div"/>
     <meta name="flags" content="" />
-    <script type="text/javascript" src="../resources/testharness.js"></script>
-    <script type="text/javascript" src="../resources/testharnessreport.js"></script>
-    <script type="text/javascript" src="support/cssstyle.js"></script>
+    <script src="support/cssstyle.js"></script>
+    <script src="../resources/testharness.js"></script>
+    <script src="../resources/testharnessreport.js"></script>
     <style>
         #test{
             height: 200px;
@@ -54,22 +55,21 @@ Authors:
   <body>
     <div id="log"></div>
     <div id="test"></div>
-    <script type="text/javascript">
+    <script>
         var div = document.querySelector("#test");
-        var t = async_test(document.title, { timeout: 500 });
-        t.step(function () {
+        test(function() {
             div.style[headProp("background-size")] = "50%";
             div.style[headProp("background-repeat")] = "repeat-x";
             div.style[headProp("background-image")] = "none";
             var propvalue = GetCurrentStyle("background-size");
-            assert_equals(propvalue, "50%", "The element background-size should ")
+            var prop = propvalue.indexOf("50%") != -1;
+            assert_true(prop, "The element background-size should be 50%")
             var backgroundRepeat = GetCurrentStyle("background-repeat");
             assert_equals(backgroundRepeat, "repeat-x", "The element background-repeat should ");
             var backgroundImage = GetCurrentStyle("background-image");
-            prop = backgroundImage.indexOf("none")!=-1;
+            prop = backgroundImage.indexOf("none") != -1;
             assert_true(prop, "The element background-image should be none");
-        });
-        t.done();
+        }, document.title);
     </script>
   </body>
 </html>
index bf5fbbd14198cca02604c31dfb6d54d70870490f..3a194175b42500a7bc800ea3da5694b7ff682f57 100644 (file)
@@ -1,32 +1,33 @@
 <!DOCTYPE html>
 <!--
-Copyright (c) 2012 Intel Corporation.
+Copyright (c) 2013 Intel Corporation.
 
-Redistribution and use in source and binary forms, with or without modification, 
+Redistribution and use in source and binary forms, with or without modification,
 are permitted provided that the following conditions are met:
 
-* Redistributions of works must retain the original copyright notice, this list 
+* Redistributions of works must retain the original copyright notice, this list
   of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice, 
-  this list of conditions and the following disclaimer in the documentation 
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors 
-  may be used to endorse or promote products derived from this work without 
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
   specific prior written permission.
 
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
         haox,li <haox,li@intel.com>
+        Xu,Yuhan <yuhanx.xu@intel.com>
 
 -->
 
@@ -37,9 +38,9 @@ Authors:
     <link rel="help" href="http://www.w3.org/TR/2012/CR-css3-background-20120724/#background-size" />
     <meta name="assert" content="background-size:50%;background-repeat:repeat;background-image:none on test div"/>
     <meta name="flags" content="" />
-    <script type="text/javascript" src="../resources/testharness.js"></script>
-    <script type="text/javascript" src="../resources/testharnessreport.js"></script>
-    <script type="text/javascript" src="support/cssstyle.js"></script>
+    <script src="support/cssstyle.js"></script>
+    <script src="../resources/testharness.js"></script>
+    <script src="../resources/testharnessreport.js"></script>
     <style>
         #test{
             height: 200px;
@@ -54,22 +55,21 @@ Authors:
   <body>
     <div id="log"></div>
     <div id="test"></div>
-    <script type="text/javascript">
+    <script>
         var div = document.querySelector("#test");
-        var t = async_test(document.title, { timeout: 500 });
-        t.step(function () {
+        test(function() {
             div.style[headProp("background-size")] = "50%";
             div.style[headProp("background-repeat")] = "repeat";
             div.style[headProp("background-image")] = "none";
             var propvalue = GetCurrentStyle("background-size");
-            assert_equals(propvalue, "50%", "The element background-size should ")
+            var prop = propvalue.indexOf("50%") != -1;
+            assert_true(prop, "The element background-size should be 50%");
             var backgroundRepeat = GetCurrentStyle("background-repeat");
             assert_equals(backgroundRepeat, "repeat", "The element background-repeat should ");
             var backgroundImage = GetCurrentStyle("background-image");
             prop = backgroundImage.indexOf("none")!=-1;
             assert_true(prop, "The element background-image should be none");
-        });
-        t.done();
+        }, document.title);
     </script>
   </body>
 </html>
index 5d7fa7575da8513de0696321892bacfb52cd8a38..ed345920e879ded188220e51583fe1b886fa92a1 100644 (file)
@@ -1,32 +1,33 @@
 <!DOCTYPE html>
 <!--
-Copyright (c) 2012 Intel Corporation.
+Copyright (c) 2013 Intel Corporation.
 
-Redistribution and use in source and binary forms, with or without modification, 
+Redistribution and use in source and binary forms, with or without modification,
 are permitted provided that the following conditions are met:
 
-* Redistributions of works must retain the original copyright notice, this list 
+* Redistributions of works must retain the original copyright notice, this list
   of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice, 
-  this list of conditions and the following disclaimer in the documentation 
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors 
-  may be used to endorse or promote products derived from this work without 
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
   specific prior written permission.
 
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
         haox,li <haox,li@intel.com>
+        Xu,Yuhan <yuhanx.xu@intel.com>
 
 -->
 
@@ -37,9 +38,9 @@ Authors:
     <link rel="help" href="http://www.w3.org/TR/2012/CR-css3-background-20120724/#background-size" />
     <meta name="assert" content="background-size:50%;background-repeat:repeat;background-image:url(support/swatch-orange.png) on test div"/>
     <meta name="flags" content="" />
-    <script type="text/javascript" src="../resources/testharness.js"></script>
-    <script type="text/javascript" src="../resources/testharnessreport.js"></script>
-    <script type="text/javascript" src="support/cssstyle.js"></script>
+    <script src="support/cssstyle.js"></script>
+    <script src="../resources/testharness.js"></script>
+    <script src="../resources/testharnessreport.js"></script>
     <style>
         #test{
             height: 200px;
@@ -54,22 +55,21 @@ Authors:
   <body>
     <div id="log"></div>
     <div id="test"></div>
-    <script type="text/javascript">
+    <script>
         var div = document.querySelector("#test");
-        var t = async_test(document.title, { timeout: 500 });
-        t.step(function () {
+        test(function() {
             div.style[headProp("background-size")] = "50%";
             div.style[headProp("background-repeat")] = "repeat";
             div.style[headProp("background-image")] = "url(support/swatch-orange.png)";
             var propvalue = GetCurrentStyle("background-size");
-            assert_equals(propvalue, "50%", "The element background-size should ")
+            var prop = propvalue.indexOf("50%") != -1;
+            assert_true(prop, "The element background-size should be 50%");
             var backgroundRepeat = GetCurrentStyle("background-repeat");
             assert_equals(backgroundRepeat, "repeat", "The element background-repeat should ");
             var backgroundImage = GetCurrentStyle("background-image");
             prop = backgroundImage.indexOf("support/swatch-orange.png")!=-1;
             assert_true(prop, "The element background-image should be url(support/swatch-orange.png)");
-        });
-        t.done();
+        }, document.title);
     </script>
   </body>
 </html>
index 6455fa29bc0a0642a09d5cc67325a178663cabdf..797d8e96bcd5ba11c834a0bb35f6b6ac78127970 100644 (file)
@@ -1,32 +1,33 @@
 <!DOCTYPE html>
 <!--
-Copyright (c) 2012 Intel Corporation.
+Copyright (c) 2013 Intel Corporation.
 
-Redistribution and use in source and binary forms, with or without modification, 
+Redistribution and use in source and binary forms, with or without modification,
 are permitted provided that the following conditions are met:
 
-* Redistributions of works must retain the original copyright notice, this list 
+* Redistributions of works must retain the original copyright notice, this list
   of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice, 
-  this list of conditions and the following disclaimer in the documentation 
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors 
-  may be used to endorse or promote products derived from this work without 
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
   specific prior written permission.
 
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
-        Liu, Jinfeng <jinfengx.liu@intel.com> 
+        Liu, Jinfeng <jinfengx.liu@intel.com>
+        Xu,Yuhan <yuhanx.xu@intel.com>
 
 -->
 
@@ -37,9 +38,9 @@ Authors:
     <link rel="help" href="http://www.w3.org/TR/2012/CR-css3-background-20120724/#border-image-width" />
     <meta name="flags" content="" />
     <meta name="assert" content="border-image-width:20%;border-image-slice:fill;border-image-source:none on test div" />
-    <script type="text/javascript" src="../resources/testharness.js"></script>
-    <script type="text/javascript" src="../resources/testharnessreport.js"></script>
-    <script type="text/javascript" src="support/cssstyle.js"></script>
+    <script src="support/cssstyle.js"></script>
+    <script src="../resources/testharness.js"></script>
+    <script src="../resources/testharnessreport.js"></script>
     <style>
         #test{
             height: 200px;
@@ -54,22 +55,22 @@ Authors:
   <body>
     <div id="log"></div>
     <div id="test"></div>
-    <script type="text/javascript">
+    <script>
         var div = document.querySelector("#test");
-        var t = async_test(document.title, {timeout: 500});
-        t.step(function () {
+        test(function() {
             div.style[headProp("border-image-width")] = "20%";
             div.style[headProp("border-image-slice")] = "fill";
             div.style[headProp("border-image-source")] = "none";
             var propvalue = GetCurrentStyle("border-image-width");
-            assert_equals(propvalue, "20%", "The element border-image-width should ");
+            var prop = propvalue.indexOf("20%") != -1;
+            assert_true(prop, "The element border-image-width should be 20%");
             var borderImageSlice = GetCurrentStyle("border-image-slice");
-            assert_equals(borderImageSlice, "100%", "The element border-image-slice should ");
+            prop = borderImageSlice.indexOf("100%") != -1;
+            assert_true(prop, "The element border-image-slice should be 100%");
             var borderImageSource = GetCurrentStyle("border-image-source");
             prop = borderImageSource.indexOf("none") != -1;
             assert_true(prop, "The element border-image-source should be none");
-        });
-        t.done();
+        }, document.title);
     </script>
   </body>
 </html>
index 8ac04245b2bdc82cd90b887bbd219ee7599b2e6a..a50529f733c1b25037585d194817da15c26df44f 100644 (file)
@@ -1,32 +1,33 @@
 <!DOCTYPE html>
 <!--
-Copyright (c) 2012 Intel Corporation.
+Copyright (c) 2013 Intel Corporation.
 
-Redistribution and use in source and binary forms, with or without modification, 
+Redistribution and use in source and binary forms, with or without modification,
 are permitted provided that the following conditions are met:
 
-* Redistributions of works must retain the original copyright notice, this list 
+* Redistributions of works must retain the original copyright notice, this list
   of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice, 
-  this list of conditions and the following disclaimer in the documentation 
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors 
-  may be used to endorse or promote products derived from this work without 
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
   specific prior written permission.
 
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
-        Liu, Jinfeng <jinfengx.liu@intel.com> 
+        Liu, Jinfeng <jinfengx.liu@intel.com>
+        Xu,Yuhan <yuhanx.xu@intel.com>
 
 -->
 
@@ -37,9 +38,9 @@ Authors:
     <link rel="help" href="http://www.w3.org/TR/2012/CR-css3-background-20120724/#border-image" />
     <meta name="flags" content="" />
     <meta name="assert" content="Check if 'border-image:none 50% 50% / 20%' on test div" />
-    <script type="text/javascript" src="../resources/testharness.js"></script>
-    <script type="text/javascript" src="../resources/testharnessreport.js"></script>
-    <script type="text/javascript" src="support/cssstyle.js"></script>
+    <script src="support/cssstyle.js"></script>
+    <script src="../resources/testharness.js"></script>
+    <script src="../resources/testharnessreport.js"></script>
     <style>
         #test{
             height: 200px;
@@ -54,19 +55,19 @@ Authors:
   <body>
     <div id="log"></div>
     <div id="test"></div>
-    <script type="text/javascript">
+    <script>
         var div = document.querySelector("#test");
-        var t = async_test(document.title, {timeout: 500});
-        t.step(function () {
+        test(function() {
             div.style[headProp("border-image")] = "none 50% 50% / 20%" ;
             var borderImageSlice = GetCurrentStyle("border-image-slice");
-            assert_equals(borderImageSlice, "50%", "The element border-image-slice should ");
+            var prop = borderImageSlice.indexOf("50%") != -1;
+            assert_true(prop, "The element border-image-slice should be 50%");
             var borderImageSource = GetCurrentStyle("border-image-source");
             assert_equals(borderImageSource, "none", "The element border-image-source should ");
             var borderImageWidth = GetCurrentStyle("border-image-width");
-            assert_equals(borderImageWidth, "20%", "The element border-image-width should ");
-        });
-        t.done();
+            prop = borderImageWidth.indexOf("20%") != -1;
+            assert_true(prop, "The element border-image-width should be 50%");
+        }, document.title);
     </script>
   </body>
 </html>
index e0113c5e6dcf0648248caf081ba2c033c6744b50..0f61df16518cee5439f7ee506b100f6c28620c72 100644 (file)
@@ -1,32 +1,33 @@
 <!DOCTYPE html>
 <!--
-Copyright (c) 2012 Intel Corporation.
+Copyright (c) 2013 Intel Corporation.
 
-Redistribution and use in source and binary forms, with or without modification, 
+Redistribution and use in source and binary forms, with or without modification,
 are permitted provided that the following conditions are met:
 
-* Redistributions of works must retain the original copyright notice, this list 
+* Redistributions of works must retain the original copyright notice, this list
   of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice, 
-  this list of conditions and the following disclaimer in the documentation 
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors 
-  may be used to endorse or promote products derived from this work without 
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
   specific prior written permission.
 
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
-        Liu, Jinfeng <jinfengx.liu@intel.com> 
+        Liu, Jinfeng <jinfengx.liu@intel.com>
+        Xu,Yuhan <yuhanx.xu@intel.com>
 
 -->
 
@@ -37,9 +38,9 @@ Authors:
     <link rel="help" href="http://www.w3.org/TR/2012/CR-css3-background-20120724/#border-image" />
     <meta name="flags" content="" />
     <meta name="assert" content="Check if 'border-image: none 50% 50% / 50px' on test div" />
-    <script type="text/javascript" src="../resources/testharness.js"></script>
-    <script type="text/javascript" src="../resources/testharnessreport.js"></script>
-    <script type="text/javascript" src="support/cssstyle.js"></script>
+    <script src="support/cssstyle.js"></script>
+    <script src="../resources/testharness.js"></script>
+    <script src="../resources/testharnessreport.js"></script>
     <style>
         #test{
             height: 200px;
@@ -54,22 +55,19 @@ Authors:
   <body>
     <div id="log"></div>
     <div id="test"></div>
-    <script type="text/javascript">
+    <script>
         var div = document.querySelector("#test");
-        var t = async_test(document.title, {timeout: 500});
-        t.step(function () {
+        test(function() {
             div.style[headProp("border-image")] = "none 50% 50% / 50px";
             var borderImageSlice = GetCurrentStyle("border-image-slice");
-            prop = borderImageSlice.indexOf("50%") != -1;
-            assert_true(prop, "The element border-image-slice should be 50% 50%");
-            var borderImageSlice = GetCurrentStyle("border-image-slice");
-            assert_equals(borderImageSlice, "50%", "The element border-image-slice should ");
+            var prop = borderImageSlice.indexOf("50%") != -1;
+            assert_true(prop, "The element border-image-slice should be 50%");
             var borderImageSource = GetCurrentStyle("border-image-source");
             assert_equals(borderImageSource, "none", "The element border-image-source should ");
             var borderImageWidth = GetCurrentStyle("border-image-width");
-            assert_equals(borderImageWidth, "50px", "The element border-image-width should ");
-        });
-        t.done();
+            prop = borderImageWidth.indexOf("50px") != -1;
+            assert_true(prop, "The element border-image-width should be 50px");
+        }, document.title);
     </script>
   </body>
 </html>
index be72bcb20839e33c4ef7b3c988edb16a4928baef..fd7f9031d9e9a98499600c2e8d7b49a2ff5aa527 100644 (file)
@@ -1,32 +1,33 @@
 <!DOCTYPE html>
 <!--
-Copyright (c) 2012 Intel Corporation.
+Copyright (c) 2013 Intel Corporation.
 
-Redistribution and use in source and binary forms, with or without modification, 
+Redistribution and use in source and binary forms, with or without modification,
 are permitted provided that the following conditions are met:
 
-* Redistributions of works must retain the original copyright notice, this list 
+* Redistributions of works must retain the original copyright notice, this list
   of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice, 
-  this list of conditions and the following disclaimer in the documentation 
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors 
-  may be used to endorse or promote products derived from this work without 
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
   specific prior written permission.
 
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
-        Liu, Jinfeng <jinfengx.liu@intel.com> 
+        Liu, Jinfeng <jinfengx.liu@intel.com>
+        Xu,Yuhan <yuhanx.xu@intel.com>
 
 -->
 
@@ -37,9 +38,9 @@ Authors:
     <link rel="help" href="http://www.w3.org/TR/2012/CR-css3-background-20120724/#border-image" />
     <meta name="flags" content="" />
     <meta name="assert" content="Check if 'border-image:none 50% 50% / auto' on test div" />
-    <script type="text/javascript" src="../resources/testharness.js"></script>
-    <script type="text/javascript" src="../resources/testharnessreport.js"></script>
-    <script type="text/javascript" src="support/cssstyle.js"></script>
+    <script src="support/cssstyle.js"></script>
+    <script src="../resources/testharness.js"></script>
+    <script src="../resources/testharnessreport.js"></script>
     <style>
         #test{
             height: 200px;
@@ -54,19 +55,19 @@ Authors:
   <body>
     <div id="log"></div>
     <div id="test"></div>
-    <script type="text/javascript">
+    <script>
         var div = document.querySelector("#test");
-        var t = async_test(document.title, {timeout: 500});
-        t.step(function () {
+        test(function() {
             div.style[headProp("border-image")] = "none 50% 50% / auto";
             var borderImageSlice = GetCurrentStyle("border-image-slice");
-            assert_equals(borderImageSlice, "50%", "The element border-image-slice should ");
+            var prop = borderImageSlice.indexOf("50%") != -1;
+            assert_true(prop, "The element border-image-slice should be 50%");
             var borderImageSource = GetCurrentStyle("border-image-source");
             assert_equals(borderImageSource, "none", "The element border-image-source should ");
             var borderImageWidth = GetCurrentStyle("border-image-width");
-            assert_equals(borderImageWidth, "auto", "The element border-image-width should ");
-        });
-        t.done();
+            prop = borderImageWidth.indexOf("auto") != -1;
+            assert_true(prop, "The element border-image-width should be auto");
+        }, document.title);
     </script>
   </body>
 </html>
index e4a863d73a6c7f587c3df1d0b8138749d53e4dff..bc444d6261188301c9eae21ef5620567e2fae944 100644 (file)
@@ -1,32 +1,33 @@
 <!DOCTYPE html>
 <!--
-Copyright (c) 2012 Intel Corporation.
+Copyright (c) 2013 Intel Corporation.
 
-Redistribution and use in source and binary forms, with or without modification, 
+Redistribution and use in source and binary forms, with or without modification,
 are permitted provided that the following conditions are met:
 
-* Redistributions of works must retain the original copyright notice, this list 
+* Redistributions of works must retain the original copyright notice, this list
   of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice, 
-  this list of conditions and the following disclaimer in the documentation 
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors 
-  may be used to endorse or promote products derived from this work without 
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
   specific prior written permission.
 
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
-        Liu, Jinfeng <jinfengx.liu@intel.com> 
+        Liu, Jinfeng <jinfengx.liu@intel.com>
+        Xu,Yuhan <yuhanx.xu@intel.com>
 
 -->
 
@@ -37,9 +38,9 @@ Authors:
     <link rel="help" href="http://www.w3.org/TR/2012/CR-css3-background-20120724/#border-image" />
     <meta name="flags" content="" />
     <meta name="assert" content="Check if 'border-image:url(support/swatch-orange.png) 50% 50% / 20%' on test div" />
-    <script type="text/javascript" src="../resources/testharness.js"></script>
-    <script type="text/javascript" src="../resources/testharnessreport.js"></script>
-    <script type="text/javascript" src="support/cssstyle.js"></script>
+    <script src="support/cssstyle.js"></script>
+    <script src="../resources/testharness.js"></script>
+    <script src="../resources/testharnessreport.js"></script>
     <style>
         #test{
             height: 200px;
@@ -54,20 +55,20 @@ Authors:
   <body>
     <div id="log"></div>
     <div id="test"></div>
-    <script type="text/javascript">
+    <script>
         var div = document.querySelector("#test");
-        var t = async_test(document.title, {timeout: 500});
-        t.step(function () {
+        test(function() {
             div.style[headProp("border-image")] = "url(support/swatch-orange.png) 50% 50% / 20%";
             var borderImageSlice = GetCurrentStyle("border-image-slice");
-            assert_equals(borderImageSlice, "50%", "The element border-image-slice should ");
+            var prop = borderImageSlice.indexOf("50%") != -1;
+            assert_true(prop, "The element border-image-slice should be 50%");
             var borderImageWidth = GetCurrentStyle("border-image-width");
-            assert_equals(borderImageWidth, "20%", "The element border-image-width should ");
+            prop = borderImageWidth.indexOf("20%") != -1;
+            assert_true(prop, "The element border-image-width should be 20%");
             var borderImageSource = GetCurrentStyle("border-image-source");
             prop = borderImageSource.indexOf("support/swatch-orange.png") != -1;
             assert_true(prop, "The element border-image-source should be url(support/swatch-orange.png)");
-        });
-        t.done();
+        }, document.title);
     </script>
   </body>
 </html>
index 593d236ae105493d39b635a28cef4fcac95dadf7..37210f4106490cc7ace995cd3fe11d471629bff1 100644 (file)
@@ -1,32 +1,33 @@
 <!DOCTYPE html>
 <!--
-Copyright (c) 2012 Intel Corporation.
+Copyright (c) 2013 Intel Corporation.
 
-Redistribution and use in source and binary forms, with or without modification, 
+Redistribution and use in source and binary forms, with or without modification,
 are permitted provided that the following conditions are met:
 
-* Redistributions of works must retain the original copyright notice, this list 
+* Redistributions of works must retain the original copyright notice, this list
   of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice, 
-  this list of conditions and the following disclaimer in the documentation 
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors 
-  may be used to endorse or promote products derived from this work without 
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
   specific prior written permission.
 
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
-        Liu, Jinfeng <jinfengx.liu@intel.com> 
+        Liu, Jinfeng <jinfengx.liu@intel.com>
+        Xu,Yuhan <yuhanx.xu@intel.com>
 
 -->
 
@@ -37,9 +38,9 @@ Authors:
     <link rel="help" href="http://www.w3.org/TR/2012/CR-css3-background-20120724/#border-image" />
     <meta name="flags" content="" />
     <meta name="assert" content="Check if 'border-image:url(support/swatch-orange.png) 50% 50% / 50px' on test div" />
-    <script type="text/javascript" src="../resources/testharness.js"></script>
-    <script type="text/javascript" src="../resources/testharnessreport.js"></script>
-    <script type="text/javascript" src="support/cssstyle.js"></script>
+    <script src="support/cssstyle.js"></script>
+    <script src="../resources/testharness.js"></script>
+    <script src="../resources/testharnessreport.js"></script>
     <style>
         #test{
             height: 200px;
@@ -54,20 +55,20 @@ Authors:
   <body>
     <div id="log"></div>
     <div id="test"></div>
-    <script type="text/javascript">
+    <script>
         var div = document.querySelector("#test");
-        var t = async_test(document.title, {timeout: 500});
-        t.step(function () {
+        test(function() {
             div.style[headProp("border-image")] = "url(support/swatch-orange.png) 50% 50% / 50px";
             var borderImageSlice = GetCurrentStyle("border-image-slice");
-            assert_equals(borderImageSlice, "50%", "The element border-image-slice should ");
+            var prop = borderImageSlice.indexOf("50%") != -1;
+            assert_true(prop, "The element border-image-slice should be 50%");
             var borderImageWidth = GetCurrentStyle("border-image-width");
-            assert_equals(borderImageWidth, "50px", "The element border-image-width should ");
+            prop = borderImageWidth.indexOf("50px") != -1;
+            assert_true(prop, "The element border-image-width should be 50px");
             var borderImageSource = GetCurrentStyle("border-image-source");
             prop = borderImageSource.indexOf("support/swatch-orange.png") != -1;
             assert_true(prop, "The element border-image-source should be url(support/swatch-orange.png)");
-        });
-        t.done();
+        }, document.title);
     </script>
   </body>
 </html>
index fe990aa8c749fae98c4328cb3e1a87846cdf0834..3228f81efbaf0332bf844020dac9f6ea52cfdfd3 100644 (file)
@@ -1,32 +1,33 @@
 <!DOCTYPE html>
 <!--
-Copyright (c) 2012 Intel Corporation.
+Copyright (c) 2013 Intel Corporation.
 
-Redistribution and use in source and binary forms, with or without modification, 
+Redistribution and use in source and binary forms, with or without modification,
 are permitted provided that the following conditions are met:
 
-* Redistributions of works must retain the original copyright notice, this list 
+* Redistributions of works must retain the original copyright notice, this list
   of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice, 
-  this list of conditions and the following disclaimer in the documentation 
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors 
-  may be used to endorse or promote products derived from this work without 
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
   specific prior written permission.
 
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
-        Liu, Jinfeng <jinfengx.liu@intel.com> 
+        Liu, Jinfeng <jinfengx.liu@intel.com>
+        Xu,Yuhan <yuhanx.xu@intel.com>
 
 -->
 
@@ -37,9 +38,9 @@ Authors:
     <link rel="help" href="http://www.w3.org/TR/2012/CR-css3-background-20120724/#border-image" />
     <meta name="flags" content="" />
     <meta name="assert" content="Check if 'border-image:url(support/swatch-orange.png) 50% 50% / auto' on test div" />
-    <script type="text/javascript" src="../resources/testharness.js"></script>
-    <script type="text/javascript" src="../resources/testharnessreport.js"></script>
-    <script type="text/javascript" src="support/cssstyle.js"></script>
+    <script src="support/cssstyle.js"></script>
+    <script src="../resources/testharness.js"></script>
+    <script src="../resources/testharnessreport.js"></script>
     <style>
         #test{
             height: 200px;
@@ -54,20 +55,20 @@ Authors:
   <body>
     <div id="log"></div>
     <div id="test"></div>
-    <script type="text/javascript">
+    <script>
         var div = document.querySelector("#test");
-        var t = async_test(document.title, {timeout: 500});
-        t.step(function () {
+        test(function() {
             div.style[headProp("border-image")] = "url(support/swatch-orange.png) 50% 50% / auto";
             var borderImageSlice = GetCurrentStyle("border-image-slice");
-            assert_equals(borderImageSlice, "50%", "The element border-image-slice should ");
+            var prop = borderImageSlice.indexOf("50%") != -1;
+            assert_true(prop, "The element border-image-slice should be 50%");
             var borderImageWidth = GetCurrentStyle("border-image-width");
-            assert_equals(borderImageWidth, "auto", "The element border-image-width should ");
+            prop = borderImageWidth.indexOf("auto") != -1;
+            assert_true(prop, "The element border-image-width should be auto");
             var borderImageSource = GetCurrentStyle("border-image-source");
             prop = borderImageSource.indexOf("support/swatch-orange.png") != -1;
             assert_true(prop, "The element border-image-source should be url(support/swatch-orange.png)");
-        });
-        t.done();
+        }, document.title);
     </script>
   </body>
 </html>
index 066bb22c990ee71d4b15584b8302ab9f436097d4..9d7c6a6e9b04eeae629f3bfa729fb14dc17a1bde 100644 (file)
@@ -1,32 +1,33 @@
 <!DOCTYPE html>
 <!--
-Copyright (c) 2012 Intel Corporation.
+Copyright (c) 2013 Intel Corporation.
 
-Redistribution and use in source and binary forms, with or without modification, 
+Redistribution and use in source and binary forms, with or without modification,
 are permitted provided that the following conditions are met:
 
-* Redistributions of works must retain the original copyright notice, this list 
+* Redistributions of works must retain the original copyright notice, this list
   of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice, 
-  this list of conditions and the following disclaimer in the documentation 
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors 
-  may be used to endorse or promote products derived from this work without 
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
   specific prior written permission.
 
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
-        Liu, Jinfeng <jinfengx.liu@intel.com> 
+        Liu, Jinfeng <jinfengx.liu@intel.com>
+        Xu,Yuhan <yuhanx.xu@intel.com>
 
 -->
 
@@ -37,9 +38,9 @@ Authors:
     <link rel="help" href="http://www.w3.org/TR/2012/CR-css3-background-20120724/#border-image" />
     <meta name="flags" content="" />
     <meta name="assert" content="Check if 'border-image:none 50 40 / 20%' on test div" />
-    <script type="text/javascript" src="../resources/testharness.js"></script>
-    <script type="text/javascript" src="../resources/testharnessreport.js"></script>
-    <script type="text/javascript" src="support/cssstyle.js"></script>
+    <script src="support/cssstyle.js"></script>
+    <script src="../resources/testharness.js"></script>
+    <script src="../resources/testharnessreport.js"></script>
     <style>
         #test{
             height: 200px;
@@ -54,20 +55,20 @@ Authors:
   <body>
     <div id="log"></div>
     <div id="test"></div>
-    <script type="text/javascript">
+    <script>
         var div = document.querySelector("#test");
-        var t = async_test(document.title, {timeout: 500});
-        t.step(function () {
+        test(function() {
             div.style[headProp("border-image")] = "none 50 40 / 20%";
             var borderImageSlice = GetCurrentStyle("border-image-slice");
-            assert_equals(borderImageSlice, "50 40", "The element border-image-slice should ");
+            var prop = borderImageSlice.indexOf("50 40") != -1;
+            assert_true(prop, "The element border-image-slice should be 50 40");
             var borderImageWidth = GetCurrentStyle("border-image-width");
-            assert_equals(borderImageWidth, "20%", "The element border-image-width should ");
+            prop = borderImageWidth.indexOf("20%") != -1;
+            assert_true(prop, "The element border-image-width should be 20%");
             var borderImageSource = GetCurrentStyle("border-image-source");
             prop = borderImageSource.indexOf("none") != -1;
             assert_true(prop, "The element border-image-source should be none");
-        });
-        t.done();
+        }, document.title);
     </script>
   </body>
 </html>
index 124475412d9828d5697438a1a3686cd27473c55f..57bb23bd6fc4d59a8366f2b9842ac27f9d0727fd 100644 (file)
@@ -1,32 +1,33 @@
 <!DOCTYPE html>
 <!--
-Copyright (c) 2012 Intel Corporation.
+Copyright (c) 2013 Intel Corporation.
 
-Redistribution and use in source and binary forms, with or without modification, 
+Redistribution and use in source and binary forms, with or without modification,
 are permitted provided that the following conditions are met:
 
-* Redistributions of works must retain the original copyright notice, this list 
+* Redistributions of works must retain the original copyright notice, this list
   of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice, 
-  this list of conditions and the following disclaimer in the documentation 
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors 
-  may be used to endorse or promote products derived from this work without 
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
   specific prior written permission.
 
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
-        Liu, Jinfeng <jinfengx.liu@intel.com> 
+        Liu, Jinfeng <jinfengx.liu@intel.com>
+        Xu,Yuhan <yuhanx.xu@intel.com>
 
 -->
 
@@ -37,9 +38,9 @@ Authors:
     <link rel="help" href="http://www.w3.org/TR/2012/CR-css3-background-20120724/#border-image" />
     <meta name="flags" content="" />
     <meta name="assert" content="Check if 'border-image:none 50 40 / 50px' on test div" />
-    <script type="text/javascript" src="../resources/testharness.js"></script>
-    <script type="text/javascript" src="../resources/testharnessreport.js"></script>
-    <script type="text/javascript" src="support/cssstyle.js"></script>
+    <script src="support/cssstyle.js"></script>
+    <script src="../resources/testharness.js"></script>
+    <script src="../resources/testharnessreport.js"></script>
     <style>
         #test{
             height: 200px;
@@ -54,20 +55,20 @@ Authors:
   <body>
     <div id="log"></div>
     <div id="test"></div>
-    <script type="text/javascript">
+    <script>
         var div = document.querySelector("#test");
-        var t = async_test(document.title, {timeout: 500});
-        t.step(function () {
+        test(function() {
             div.style[headProp("border-image")] = "none 50 40 / 50px";
             var borderImageSlice = GetCurrentStyle("border-image-slice");
-            assert_equals(borderImageSlice, "50 40", "The element border-image-slice should ");
+            var prop = borderImageSlice.indexOf("50 40") != -1;
+            assert_true(prop, "The element border-image-slice should be 50 40");
             var borderImageWidth = GetCurrentStyle("border-image-width");
-            assert_equals(borderImageWidth, "50px", "The element border-image-width should ");
+            prop = borderImageWidth.indexOf("50px") != -1;
+            assert_true(prop, "The element border-image-width should be 50px");
             var borderImageSource = GetCurrentStyle("border-image-source");
             prop = borderImageSource.indexOf("none") != -1;
             assert_true(prop, "The element border-image-source should be none");
-        });
-        t.done();
+        }, document.title);
     </script>
   </body>
 </html>
index dbd7abe4db7e962cb956f45c6355b155e7e29f45..201cd6f32def8b17fbbd34bba35715e146504453 100644 (file)
@@ -1,32 +1,33 @@
 <!DOCTYPE html>
 <!--
-Copyright (c) 2012 Intel Corporation.
+Copyright (c) 2013 Intel Corporation.
 
-Redistribution and use in source and binary forms, with or without modification, 
+Redistribution and use in source and binary forms, with or without modification,
 are permitted provided that the following conditions are met:
 
-* Redistributions of works must retain the original copyright notice, this list 
+* Redistributions of works must retain the original copyright notice, this list
   of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice, 
-  this list of conditions and the following disclaimer in the documentation 
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors 
-  may be used to endorse or promote products derived from this work without 
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
   specific prior written permission.
 
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
-        Liu, Jinfeng <jinfengx.liu@intel.com> 
+        Liu, Jinfeng <jinfengx.liu@intel.com>
+        Xu,Yuhan <yuhanx.xu@intel.com>
 
 -->
 
@@ -37,9 +38,9 @@ Authors:
     <link rel="help" href="http://www.w3.org/TR/2012/CR-css3-background-20120724/#border-image" />
     <meta name="flags" content="" />
     <meta name="assert" content="Check if 'border-image:none 50 40 / auto' on test div" />
-    <script type="text/javascript" src="../resources/testharness.js"></script>
-    <script type="text/javascript" src="../resources/testharnessreport.js"></script>
-    <script type="text/javascript" src="support/cssstyle.js"></script>
+    <script src="support/cssstyle.js"></script>
+    <script src="../resources/testharness.js"></script>
+    <script src="../resources/testharnessreport.js"></script>
     <style>
         #test{
             height: 200px;
@@ -54,20 +55,20 @@ Authors:
   <body>
     <div id="log"></div>
     <div id="test"></div>
-    <script type="text/javascript">
+    <script>
         var div = document.querySelector("#test");
-        var t = async_test(document.title, {timeout: 500});
-        t.step(function () {
+        test(function() {
             div.style[headProp("border-image")] = "none 50 40 / auto";
             var borderImageSlice = GetCurrentStyle("border-image-slice");
-            assert_equals(borderImageSlice, "50 40", "The element border-image-slice should ");
+            var prop = borderImageSlice.indexOf("50 40") != -1;
+            assert_true(prop, "The element border-image-slice should be 50 40");
             var borderImageWidth = GetCurrentStyle("border-image-width");
-            assert_equals(borderImageWidth, "auto", "The element border-image-width should ");
+            prop = borderImageWidth.indexOf("auto") != -1;
+            assert_true(prop, "The element border-image-width should be auto");
             var borderImageSource = GetCurrentStyle("border-image-source");
             prop = borderImageSource.indexOf("none") != -1;
             assert_true(prop, "The element border-image-source should be none");
-        });
-        t.done();
+        }, document.title);
     </script>
   </body>
 </html>
index 8ee9f831970a29c6dbad9bb2c13ec5a4e9c0ec4f..4feaf30e922dad41358b893410f13164c5dc8308 100644 (file)
@@ -1,32 +1,33 @@
 <!DOCTYPE html>
 <!--
-Copyright (c) 2012 Intel Corporation.
+Copyright (c) 2013 Intel Corporation.
 
-Redistribution and use in source and binary forms, with or without modification, 
+Redistribution and use in source and binary forms, with or without modification,
 are permitted provided that the following conditions are met:
 
-* Redistributions of works must retain the original copyright notice, this list 
+* Redistributions of works must retain the original copyright notice, this list
   of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice, 
-  this list of conditions and the following disclaimer in the documentation 
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors 
-  may be used to endorse or promote products derived from this work without 
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
   specific prior written permission.
 
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
-        Liu, Jinfeng <jinfengx.liu@intel.com> 
+        Liu, Jinfeng <jinfengx.liu@intel.com>
+        Xu,Yuhan <yuhanx.xu@intel.com>
 
 -->
 
@@ -37,9 +38,9 @@ Authors:
     <link rel="help" href="http://www.w3.org/TR/2012/CR-css3-background-20120724/#border-image" />
     <meta name="flags" content="" />
     <meta name="assert" content="Check if 'border-image:url(support/swatch-orange.png) 50 40 / 20%' on test div" />
-    <script type="text/javascript" src="../resources/testharness.js"></script>
-    <script type="text/javascript" src="../resources/testharnessreport.js"></script>
-    <script type="text/javascript" src="support/cssstyle.js"></script>
+    <script src="support/cssstyle.js"></script>
+    <script src="../resources/testharness.js"></script>
+    <script src="../resources/testharnessreport.js"></script>
     <style>
         #test{
             height: 200px;
@@ -54,20 +55,20 @@ Authors:
   <body>
     <div id="log"></div>
     <div id="test"></div>
-    <script type="text/javascript">
+    <script>
         var div = document.querySelector("#test");
-        var t = async_test(document.title, {timeout: 500});
-        t.step(function () {
+        test(function() {
             div.style[headProp("border-image")] = "url(support/swatch-orange.png) 50 40 / 20%";
             var borderImageSlice = GetCurrentStyle("border-image-slice");
-            assert_equals(borderImageSlice, "50 40", "The element border-image-slice should ");
+            var prop = borderImageSlice.indexOf("50 40") != -1;
+            assert_true(prop, "The element border-image-slice should be 50 40");
             var borderImageWidth = GetCurrentStyle("border-image-width");
-            assert_equals(borderImageWidth, "20%", "The element border-image-width should ");
+            prop = borderImageWidth.indexOf("20%") != -1;
+            assert_true(prop, "The element border-image-width should be 20%");
             var borderImageSource = GetCurrentStyle("border-image-source");
             prop = borderImageSource.indexOf("support/swatch-orange.png") != -1;
             assert_true(prop, "The element border-image-source should be url(support/swatch-orange.png)");
-        });
-        t.done();
+        }, document.title);
     </script>
   </body>
 </html>
index 88aef966db70699c542a701a16fb2c464ca8a29a..5b46bd1c1b1da8ffc8202b1c64bbfd8dd1137ee5 100644 (file)
@@ -1,32 +1,33 @@
 <!DOCTYPE html>
 <!--
-Copyright (c) 2012 Intel Corporation.
+Copyright (c) 2013 Intel Corporation.
 
-Redistribution and use in source and binary forms, with or without modification, 
+Redistribution and use in source and binary forms, with or without modification,
 are permitted provided that the following conditions are met:
 
-* Redistributions of works must retain the original copyright notice, this list 
+* Redistributions of works must retain the original copyright notice, this list
   of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice, 
-  this list of conditions and the following disclaimer in the documentation 
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors 
-  may be used to endorse or promote products derived from this work without 
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
   specific prior written permission.
 
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
-        Liu, Jinfeng <jinfengx.liu@intel.com> 
+        Liu, Jinfeng <jinfengx.liu@intel.com>
+        Xu,Yuhan <yuhanx.xu@intel.com>
 
 -->
 
@@ -37,9 +38,9 @@ Authors:
     <link rel="help" href="http://www.w3.org/TR/2012/CR-css3-background-20120724/#border-image" />
     <meta name="flags" content="" />
     <meta name="assert" content="Check if 'border-image:url(support/swatch-orange.png) 50 40 / 50px' on test div" />
-    <script type="text/javascript" src="../resources/testharness.js"></script>
-    <script type="text/javascript" src="../resources/testharnessreport.js"></script>
-    <script type="text/javascript" src="support/cssstyle.js"></script>
+    <script src="support/cssstyle.js"></script>
+    <script src="../resources/testharness.js"></script>
+    <script src="../resources/testharnessreport.js"></script>
     <style>
         #test{
             height: 200px;
@@ -54,20 +55,20 @@ Authors:
   <body>
     <div id="log"></div>
     <div id="test"></div>
-    <script type="text/javascript">
+    <script>
         var div = document.querySelector("#test");
-        var t = async_test(document.title, {timeout: 500});
-        t.step(function () {
+        test(function() {
             div.style[headProp("border-image")] = "url(support/swatch-orange.png) 50 40 / 50px";
             var borderImageSlice = GetCurrentStyle("border-image-slice");
-            assert_equals(borderImageSlice, "50 40", "The element border-image-slice should ");
+            var prop = borderImageSlice.indexOf("50 40") != -1;
+            assert_true(prop, "The element border-image-slice should be 50 40");
             var borderImageWidth = GetCurrentStyle("border-image-width");
-            assert_equals(borderImageWidth, "50px", "The element border-image-width should ");
+            prop = borderImageWidth.indexOf("50px") != -1;
+            assert_true(prop, "The element border-image-width should be 50px");
             var borderImageSource = GetCurrentStyle("border-image-source");
             prop = borderImageSource.indexOf("support/swatch-orange.png") != -1;
             assert_true(prop, "The element border-image-source should be url(support/swatch-orange.png)");
-        });
-        t.done();
+        }, document.title);
     </script>
   </body>
 </html>
index 9779d69ea3b86c68b51eb5ce6e8b8cb05e8e3a1d..723a11c09bf96d998d6df5b8b2abf8909f2d3af4 100644 (file)
@@ -1,32 +1,33 @@
 <!DOCTYPE html>
 <!--
-Copyright (c) 2012 Intel Corporation.
+Copyright (c) 2013 Intel Corporation.
 
-Redistribution and use in source and binary forms, with or without modification, 
+Redistribution and use in source and binary forms, with or without modification,
 are permitted provided that the following conditions are met:
 
-* Redistributions of works must retain the original copyright notice, this list 
+* Redistributions of works must retain the original copyright notice, this list
   of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice, 
-  this list of conditions and the following disclaimer in the documentation 
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors 
-  may be used to endorse or promote products derived from this work without 
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
   specific prior written permission.
 
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
-        Liu, Jinfeng <jinfengx.liu@intel.com> 
+        Liu, Jinfeng <jinfengx.liu@intel.com>
+        Xu,Yuhan <yuhanx.xu@intel.com>
 
 -->
 
@@ -37,9 +38,9 @@ Authors:
     <link rel="help" href="http://www.w3.org/TR/2012/CR-css3-background-20120724/#border-image" />
     <meta name="flags" content="" />
     <meta name="assert" content="Check if 'border-image:url(support/swatch-orange.png) 50 40 / auto' on test div" />
-    <script type="text/javascript" src="../resources/testharness.js"></script>
-    <script type="text/javascript" src="../resources/testharnessreport.js"></script>
-    <script type="text/javascript" src="support/cssstyle.js"></script>
+    <script src="support/cssstyle.js"></script>
+    <script src="../resources/testharness.js"></script>
+    <script src="../resources/testharnessreport.js"></script>
     <style>
         #test{
             height: 200px;
@@ -54,20 +55,20 @@ Authors:
   <body>
     <div id="log"></div>
     <div id="test"></div>
-    <script type="text/javascript">
+    <script>
         var div = document.querySelector("#test");
-        var t = async_test(document.title, {timeout: 500});
-        t.step(function () {
+        test(function() {
             div.style[headProp("border-image")] = "url(support/swatch-orange.png) 50 40 / auto";
             var borderImageSlice = GetCurrentStyle("border-image-slice");
-            assert_equals(borderImageSlice, "50 40", "The element border-image-slice should ");
+            var prop = borderImageSlice.indexOf("50 40") != -1;
+            assert_true(prop, "The element border-image-slice should be 50 40");
             var borderImageWidth = GetCurrentStyle("border-image-width");
-            assert_equals(borderImageWidth, "auto", "The element border-image-width should ");
+            prop = borderImageWidth.indexOf("auto") != -1;
+            assert_true(prop, "The element border-image-width should be auto");
             var borderImageSource = GetCurrentStyle("border-image-source");
             prop = borderImageSource.indexOf("support/swatch-orange.png") != -1;
             assert_true(prop, "The element border-image-source should be url(support/swatch-orange.png)");
-        });
-        t.done();
+        }, document.title);
     </script>
   </body>
 </html>