Merge pull request #13389 from cdrainxv/fix/modify-test

modified the test case to include color keyword value
This commit is contained in:
Dylan
2017-02-21 07:48:26 -06:00
committed by GitHub

View File

@ -49,7 +49,7 @@
"We can do this by changing the <code>style</code> of your <code>h2</code> element.", "We can do this by changing the <code>style</code> of your <code>h2</code> element.",
"The style that is responsible for the color of an element's text is the \"color\" style.", "The style that is responsible for the color of an element's text is the \"color\" style.",
"Here's how you would set your <code>h2</code> element's text color to blue:", "Here's how you would set your <code>h2</code> element's text color to blue:",
"<code>&#60;h2 style=\"color: blue\"&#62;CatPhotoApp&#60;/h2&#62;</code>", "<code>&#60;h2 style=\"color: blue;\"&#62;CatPhotoApp&#60;/h2&#62;</code>",
"<hr>", "<hr>",
"Change your <code>h2</code> element's style so that its text color is red." "Change your <code>h2</code> element's style so that its text color is red."
], ],
@ -87,7 +87,7 @@
"</main>" "</main>"
], ],
"tests": [ "tests": [
"assert($(\"h2\").css(\"color\") === \"rgb(255, 0, 0)\", 'message: Your <code>h2</code> element should be red.');" "assert(code.match(/<h2\\s+style=\"color:\\s*rgb\\(255,\\s*0,\\s*0\\)\\;?\">\\s*CatPhotoApp\\s*<\\/h2>/) || code.match(/<h2\\s+style=\"color:\\s*red\\;?\">\\s*CatPhotoApp\\s*<\\/h2>/), 'message: Your <code>h2</code> element should be red.');"
], ],
"type": "waypoint", "type": "waypoint",
"challengeType": 0, "challengeType": 0,