diff --git a/tests/cssbackground-standard/config.yml b/tests/cssbackground-standard/config.yml new file mode 100644 index 0000000..408a017 --- /dev/null +++ b/tests/cssbackground-standard/config.yml @@ -0,0 +1,5 @@ +--- + r: 1 + spec: "http://www.w3.org/TR/css3-background/" + sources: ["https://github.com/Modernizr/Modernizr"] + title: "CSS3 Background, Standard" diff --git a/tests/cssbackground-standard/test.js b/tests/cssbackground-standard/test.js new file mode 100644 index 0000000..58c30d0 --- /dev/null +++ b/tests/cssbackground-standard/test.js @@ -0,0 +1,23 @@ +test("CSS border-image, standard", function() { + var elem = document.createElement("div"); + + assert( H.test.cssProp( elem, "borderImageSource" ), "border-image-source standard, supported" ); + assert( H.test.cssProp( elem, "borderImageSlice" ), "border-image-slice standard, supported" ); + assert( H.test.cssProp( elem, "borderImageWidth" ), "border-image-width standard, supported" ); + assert( H.test.cssProp( elem, "borderImageOutset" ), "border-image-outset standard, supported" ); + assert( H.test.cssProp( elem, "borderImageRepeat" ), "border-image-repeat standard, supported" ); + assert( H.test.cssProp( elem, "borderImage" ), "Shorthand border-image standard, supported" ); +}); + +test("CSS box-shadow, standard", function() { + var elem = document.createElement("div"); + + assert( H.test.cssProp( elem, "boxShadow" ), "CSS box-shadow standard, supported" ); +}); + + +test("CSS border-radius, standard", function() { + var elem = document.createElement("div"); + + assert( H.test.cssProp( elem, "borderRadius" ), "CSS border-radius standard, supported" ); +});