Skip to content

Commit

Permalink
Adding cssborderimage test.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwkelly committed Apr 10, 2012
1 parent f906014 commit a5bcf77
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
5 changes: 5 additions & 0 deletions 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"
20 changes: 20 additions & 0 deletions 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" );

});

0 comments on commit a5bcf77

Please sign in to comment.