From 43ded763e5a8fe6c1cd906eb3d7f31c01b5de889 Mon Sep 17 00:00:00 2001 From: Matt Kelly Date: Mon, 9 Apr 2012 17:05:28 -0700 Subject: [PATCH] Adding csscolor-standard test. --- tests/csscolor-standard/config.yml | 5 +++++ tests/csscolor-standard/test.js | 9 +++++++++ 2 files changed, 14 insertions(+) create mode 100644 tests/csscolor-standard/config.yml create mode 100644 tests/csscolor-standard/test.js diff --git a/tests/csscolor-standard/config.yml b/tests/csscolor-standard/config.yml new file mode 100644 index 0000000..b4ee95e --- /dev/null +++ b/tests/csscolor-standard/config.yml @@ -0,0 +1,5 @@ +--- + r: 0 + spec: "http://www.w3.org/TR/css3-color/" + sources: ["https://github.com/Modernizr/Modernizr"] + title: "CSS3 Color, Standard" diff --git a/tests/csscolor-standard/test.js b/tests/csscolor-standard/test.js new file mode 100644 index 0000000..735206d --- /dev/null +++ b/tests/csscolor-standard/test.js @@ -0,0 +1,9 @@ +test("CSS opacity, standard", function() { + + var elem = document.createElement("div"); + + elem.style.cssText = "opacity:.55"; + + assert( /^0.55$/.test( elem.style.opacity ), "elem.style.opacity standard, supported" ); + +});