fixed selector and length properties of div.row test
This commit is contained in:
@ -863,7 +863,7 @@
|
||||
"</div>"
|
||||
],
|
||||
"tests": [
|
||||
"assert($(\"div.row:has(button)\").length > 0, 'message: Your buttons should all be nested within the same <code>div</code> element with the class <code>row</code>.');",
|
||||
"assert($(\"div.row button\").length === 3, 'message: Your buttons should all be nested within the same <code>div</code> element with the class <code>row</code>.');",
|
||||
"assert($(\"div.col-xs-4:has(button)\").length > 2, 'message: Each of your Bootstrap buttons should be nested within its own <code>div</code> element with the class <code>col-xs-4</code>.');",
|
||||
"assert(code.match(/<\\/button>/g) && code.match(/<button/g) && code.match(/<\\/button>/g).length === code.match(/<button/g).length, 'message: Make sure each of your <code>button</code> elements has a closing tag.');",
|
||||
"assert(code.match(/<\\/div>/g) && code.match(/<div/g) && code.match(/<\\/div>/g).length === code.match(/<div/g).length, 'message: Make sure each of your <code>div</code> elements has a closing tag.');"
|
||||
@ -1606,7 +1606,7 @@
|
||||
"</div>"
|
||||
],
|
||||
"tests": [
|
||||
"assert($(\"div.row:has(input[type=\\\"checkbox\\\"])\").length > 0, 'message: Nest all of your checkboxes inside one <code>div</code> with the class <code>row</code>.');",
|
||||
"assert($(\"div.row input[type=\\\"checkbox\\\"]\").length === 3, 'message: Nest all of your checkboxes inside one <code>div</code> with the class <code>row</code>.');",
|
||||
"assert($(\"div.col-xs-4:has(input[type=\\\"checkbox\\\"])\").length > 2, 'message: Nest each of your checkboxes inside its own <code>div</code> with the class <code>col-xs-4</code>.');",
|
||||
"assert(code.match(/<\\/div>/g) && code.match(/<div/g) && code.match(/<\\/div>/g).length === code.match(/<div/g).length, 'message: Make sure each of your <code>div</code> elements has a closing tag.');"
|
||||
],
|
||||
|
Reference in New Issue
Block a user