Skip to content

Loading…

Adding cssborderimage test. #62

Open
wants to merge 1 commit into from

1 participant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 10, 2012
  1. @mattwkelly

    Adding cssborderimage test.

    mattwkelly committed
Showing with 25 additions and 0 deletions.
  1. +5 −0 tests/cssborderimage/config.yml
  2. +20 −0 tests/cssborderimage/test.js
View
5 tests/cssborderimage/config.yml
@@ -0,0 +1,5 @@
+---
+ r: 2
+ spec: "http://www.w3.org/TR/css3-background/"
+ sources: ["https://github.com/Modernizr/Modernizr"]
+ title: "CSS3 BorderImage"
View
20 tests/cssborderimage/test.js
@@ -0,0 +1,20 @@
+test("CSS border-image", function() {
+
+ var elem = document.createElement("div");
+
+ assert( H.test.cssProp( elem, "borderImageSource", true ), "border-image-source supported" );
+ assert( H.test.cssProp( elem, "borderImageSlice", true ), "border-image-slice supported" );
+ assert( H.test.cssProp( elem, "borderImageWidth", true ), "border-image-width supported" );
+ assert( H.test.cssProp( elem, "borderImageOutset", true ), "border-image-outset supported" );
+ assert( H.test.cssProp( elem, "borderImageRepeat", true ), "border-image-repeat supported" );
+ assert( H.test.cssProp( elem, "borderImage", true ), "Shorthand border-image supported" );
+
+});
+
+test("CSS border-image shorthand property", function() {
+
+ var elem = document.createElement("div");
+
+ assert( H.test.cssProp( elem, "borderImage", true ), "CSS border-image shorthand property supported" );
+
+});
Something went wrong with that request. Please try again.