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");
<!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>
-->
<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;
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>
<!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>
-->
<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;
<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>
<!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>
-->
<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;
<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>
<!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>
-->
<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;
<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>
<!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>
-->
<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;
<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>
<!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>
-->
<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;
<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>
<!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>
-->
<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;
<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>
<!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>
-->
<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;
<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>
<!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>
-->
<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;
<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>
<!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>
-->
<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;
<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>
<!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>
-->
<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;
<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>
<!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>
-->
<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;
<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>
<!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>
-->
<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;
<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>
<!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>
-->
<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;
<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>
<!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>
-->
<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;
<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>
<!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>
-->
<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;
<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>
<!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>
-->
<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;
<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>
<!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>
-->
<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;
<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>
<!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>
-->
<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;
<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>
<!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>
-->
<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;
<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>
<!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>
-->
<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;
<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>
<!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>
-->
<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;
<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>