Improves checks in 'Create a Set of Checkboxes'

This commit is contained in:
LumenTeun
2015-05-31 03:15:44 +02:00
parent dbf265bd22
commit 456d35b88f

View File

@ -1807,7 +1807,7 @@
], ],
"tests": [ "tests": [
"assert($('input[type=\"checkbox\"]').length > 2, 'Your webpage should have three checkbox elements.')", "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": [ "challengeSeed": [
"<link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>", "<link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>",