Permalink
Browse files

Merge pull request #77 from facebook/csstransforms

Adding csstransforms test.
NOTE: much more is needed, candidate for QoI test
  • Loading branch information...
2 parents 6fa7195 + 7946026 commit cd9f49b2ca32dc27464b86359ea41fd480830fa2 @darobin darobin committed Jun 6, 2012
Showing with 23 additions and 0 deletions.
  1. +5 −0 tests/csstransforms/config.yml
  2. +18 −0 tests/csstransforms/test.js
@@ -0,0 +1,5 @@
+---
+ r: 0
+ spec: "http://www.w3.org/TR/css3-2d-transforms/"
+ sources: ["http://javascript.nwbox.com/CSSSupport/"]
+ title: "CSS3 2D Transforms"
@@ -0,0 +1,18 @@
+test("CSS Transforms (2d)", function() {
+ var elem = document.createElement("div");
+
+ assert( H.test.cssProp( elem, "transform", true ), "Transforms supported" );
+});
+
+// test("CSS Transforms (3d)", function() {
+// var elem = document.createElement("div");
+//
+// assert( H.test.cssProp( elem, "transform-3d", true ) );
+// });
+//
+
+test("CSS Transforms Perspective (3d)", function() {
+ var elem = document.createElement("div");
+
+ assert( H.test.cssProp( elem, "perspective", true ), "Perspective supported" );
+});

0 comments on commit cd9f49b

Please sign in to comment.