Skip to content

Commit

Permalink
Adding csstext test.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwkelly committed Apr 10, 2012
1 parent f906014 commit 4dfce56
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/csstext/config.yml
@@ -0,0 +1,4 @@
---
r: 0
spec: "http://www.w3.org/TR/css3-text/"
title: "CSS3 Text"
24 changes: 24 additions & 0 deletions tests/csstext/test.js
@@ -0,0 +1,24 @@
// FF3.0 will false positive on this test. Source: Modernizr
test("CSS text-shadow", function() {
var elem = document.createElement("div");

assert( H.test.cssProp( elem, "textShadow" ), "textShadow supported" );
});

test("CSS word-wrap", function() {
var elem = document.createElement("div");

assert( H.test.cssProp( elem, "wordWrap" ), "wordWrap supported" );
});

test("CSS word-break", function() {
var elem = document.createElement("div");

assert( H.test.cssProp( elem, "wordBreak" ), "wordBreak supported" );
});

test("CSS word-spacing", function() {
var elem = document.createElement("div");

assert( H.test.cssProp( elem, "wordSpacing" ), "wordSpacing supported" );
});

0 comments on commit 4dfce56

Please sign in to comment.