Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #76 from facebook/csstext

Adding csstext test.
NOTE: much more is needed, candidate for QoI test
  • Loading branch information...
commit 6fa719505332d5190ec739520af547ad102305ac 2 parents 30e4d64 + 4dfce56
@darobin darobin authored
Showing with 28 additions and 0 deletions.
  1. +4 −0 tests/csstext/config.yml
  2. +24 −0 tests/csstext/test.js
View
4 tests/csstext/config.yml
@@ -0,0 +1,4 @@
+---
+ r: 0
+ spec: "http://www.w3.org/TR/css3-text/"
+ title: "CSS3 Text"
View
24 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" );
+});
Please sign in to comment.
Something went wrong with that request. Please try again.