Merge pull request #13389 from cdrainxv/fix/modify-test
modified the test case to include color keyword value
This commit is contained in:
@ -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><h2 style=\"color: blue\">CatPhotoApp</h2></code>",
|
"<code><h2 style=\"color: blue;\">CatPhotoApp</h2></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,
|
||||||
|
Reference in New Issue
Block a user