From 456d35b88f8c644efd9d3e2350aad0c410b9fe7d Mon Sep 17 00:00:00 2001 From: LumenTeun Date: Sun, 31 May 2015 03:15:44 +0200 Subject: [PATCH 1/2] Improves checks in 'Create a Set of Checkboxes' --- seed_data/challenges/basic-html5-and-css.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seed_data/challenges/basic-html5-and-css.json b/seed_data/challenges/basic-html5-and-css.json index 7a3a07c47a..f04a320b07 100644 --- a/seed_data/challenges/basic-html5-and-css.json +++ b/seed_data/challenges/basic-html5-and-css.json @@ -1807,7 +1807,7 @@ ], "tests": [ "assert($('input[type=\"checkbox\"]').length > 2, 'Your webpage should have three checkbox elements.')", - "assert($('label').length > 4, 'Each of your three checkbox elements should be wrapped in a label element.')" + "assert($('label:has(input[type=\"checkbox\"])').length > 2, 'Each of your three checkbox elements should be wrapped in a label element.')" ], "challengeSeed": [ "", From 340644f706f163651b06d2d15aa31bda94d93421 Mon Sep 17 00:00:00 2001 From: LumenTeun Date: Sun, 31 May 2015 02:53:48 +0200 Subject: [PATCH 2/2] Checks all margins in 'Add Different a Margin to Each Side of an Element' #753 --- seed_data/challenges/basic-html5-and-css.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/seed_data/challenges/basic-html5-and-css.json b/seed_data/challenges/basic-html5-and-css.json index 7a3a07c47a..8c1537d4e0 100644 --- a/seed_data/challenges/basic-html5-and-css.json +++ b/seed_data/challenges/basic-html5-and-css.json @@ -2297,7 +2297,9 @@ "CSS allows you to control the margin of an element on all four sides with margin-top, margin-right, margin-bottom, and margin-left attributes." ], "tests": [ + "assert($('.green-box').css('margin-top') === '40px', 'Your green-box class should give the top of elements 40px of margin.')", "assert($('.green-box').css('margin-left') === '40px', 'Your green-box class should give the left of elements 40px of margin.')", + "assert($('.green-box').css('margin-right') === '20px', 'Your green-box class should give the right of elements 20px of margin.')", "assert($('.green-box').css('margin-bottom') === '20px', 'Your green-box class should give the bottom of elements 20px of margin.')" ], "challengeSeed": [