From 0f51125644c2f5e6f4221faf506fbc8e65898289 Mon Sep 17 00:00:00 2001 From: Matt Kelly Date: Mon, 9 Apr 2012 17:06:07 -0700 Subject: [PATCH] Adding css-unspecified test. --- tests/css-unspecified/config.yml | 3 +++ tests/css-unspecified/test.js | 25 +++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 tests/css-unspecified/config.yml create mode 100644 tests/css-unspecified/test.js diff --git a/tests/css-unspecified/config.yml b/tests/css-unspecified/config.yml new file mode 100644 index 0000000..da47b6d --- /dev/null +++ b/tests/css-unspecified/config.yml @@ -0,0 +1,3 @@ +--- + r: 2 + title: "CSS Unspecified" diff --git a/tests/css-unspecified/test.js b/tests/css-unspecified/test.js new file mode 100644 index 0000000..a4ca12d --- /dev/null +++ b/tests/css-unspecified/test.js @@ -0,0 +1,25 @@ +/* +* text-stroke, text-stroke-width, and text-stroke-color +* are only supported in Webkit browsers with -webkit prefix +* The property has not even been specced by W3C +*/ + +test("CSS Text Stroke", function() { + + var elem = document.createElement("div"); + + assert( H.test.cssProp( elem, "textStroke", true ), "textStroke supported" ); + assert( H.test.cssProp( elem, "textStrokeColor", true ), "textStrokeColor supported" ); + assert( H.test.cssProp( elem, "textStrokeWidth", true ), "textStrokeWidth supported" ); + +}); + +// test("Standard-compliant CSS Text Stroke properties", function() { +// +// var elem = document.createElement("div"); +// +// assert( H.test.cssProp( elem, "textStroke" ), "Shorthand textStroke supported" ); +// assert( H.test.cssProp( elem, "textStrokeColor" ), "textStrokeColor supported" ); +// assert( H.test.cssProp( elem, "textStrokeWidth" ), "textStrokeWidth supported" ); +// +// });