From 4f0236ec9973952f08447322a817aac3c00af667 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Mart=C3=ADnez?= Date: Mon, 24 Aug 2015 03:03:02 +0000 Subject: [PATCH] Added tests for enforcing ID styling. Closes #2610 --- challenges/html5-and-css.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/challenges/html5-and-css.json b/challenges/html5-and-css.json index b93a1de494..4116da5f20 100644 --- a/challenges/html5-and-css.json +++ b/challenges/html5-and-css.json @@ -3287,6 +3287,8 @@ "assert($(\"h1\").hasClass(\"pink-text\"), 'Your h1 element should have the class pink-text.')", "assert($(\"h1\").hasClass(\"blue-text\"), 'Your h1 element should have the class blue-text.')", "assert($(\"h1\").attr(\"id\") === \"orange-text\", 'Give your h1 element the id of orange-text.')", + "assert(editor.match(/#orange-text\\s*{/gi), 'Create a CSS declaration for your orange-text id')", + "assert(!editor.match(//gi), 'Do not give your h1 any style attributes.')", "assert($(\"h1\").css(\"color\") === \"rgb(255, 165, 0)\", 'Your h1 element should be orange.')" ], "challengeSeed": [