Merge pull request #13389 from cdrainxv/fix/modify-test
modified the test case to include color keyword valuepull/12142/merge
commit
640f2597ab
|
@ -49,7 +49,7 @@
|
|||
"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.",
|
||||
"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>",
|
||||
"Change your <code>h2</code> element's style so that its text color is red."
|
||||
],
|
||||
|
@ -87,7 +87,7 @@
|
|||
"</main>"
|
||||
],
|
||||
"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",
|
||||
"challengeType": 0,
|
||||
|
|
Loading…
Reference in New Issue