From 3d924e526d1acf334c6d9e064c40032d6b4d04ab Mon Sep 17 00:00:00 2001 From: junhaoyap Date: Sun, 18 Oct 2015 21:13:05 -0700 Subject: [PATCH] Add regex test for waypoint use CSS to be more strict --- challenges/html5-and-css.json | 1 + 1 file changed, 1 insertion(+) diff --git a/challenges/html5-and-css.json b/challenges/html5-and-css.json index c54d12541a..6b9436ea4d 100644 --- a/challenges/html5-and-css.json +++ b/challenges/html5-and-css.json @@ -435,6 +435,7 @@ "tests": [ "assert($(\"h2\").css(\"color\") === \"rgb(255, 0, 0)\", 'Your h2 element should be red.')", "assert($(\"h2\").hasClass(\"red-text\"), 'Your h2 element should have the class red-text.')", + "assert(editor.match(/\\.red-text\\s*\\{\\s*color:\\s*red;\\s*\\}/g), 'Your stylesheet should declare a red-text class and have its color set to red.')", "assert($(\"h2\").attr(\"style\") === undefined, 'Do not use inline style declarations like style=\"color: red\" in your h2 element.')" ], "challengeSeed": [