Adding csstext test. #76

Merged
merged 1 commit into from Jun 6, 2012
Jump to file or symbol
Failed to load files and symbols.
+28 −0
Split
View
@@ -0,0 +1,4 @@
+---
+ r: 0
+ spec: "http://www.w3.org/TR/css3-text/"
+ title: "CSS3 Text"
View
@@ -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" );
+});