Merge pull request #2579 from ahstro/ahstro-2573

Check all children instead of just one in 'Target Children with jQuery'
This commit is contained in:
Arsen Melikyan
2015-09-06 13:18:23 +04:00

View File

@ -682,7 +682,7 @@
"Give all the children of your <code>#right-well</code> element a color of green."
],
"tests": [
"assert($(\"#target6\").css(\"color\") === 'rgb(0, 128, 0)', 'Your <code>target6</code> element should have green text.')",
"assert($(\"#right-well\").children().css(\"color\") === 'rgb(0, 128, 0)', 'All children of <code>#right-well</code> should have green text.')",
"assert(editor.match(/\\.children\\(\\)\\.css/g), 'You should use the <code>children&#40&#41</code> function to modify these elements.')",
"assert(editor.match(/<div class=\"well\" id=\"right-well\">/g), 'Only use jQuery to add these classes to the element.')"
],