Merge pull request #8160 from ryanjohnston/fix/comment-out-html-new-test
Adds a new test to Comment out HTML to ensure c…
This commit is contained in:
@ -274,7 +274,8 @@
|
||||
"assert(($(\"h1\").length === 0), 'message: Comment out your <code>h1</code> element so that it is not visible on your page.');",
|
||||
"assert(($(\"h2\").length > 0), 'message: Leave your <code>h2</code> element uncommented so that it is visible on your page.');",
|
||||
"assert(($(\"p\").length === 0), 'message: Comment out your <code>p</code> element so that it is not visible on your page.');",
|
||||
"assert(code.match(/-->/g).length > 1, 'message: Be sure to close each of your comments with <code>--></code>.');"
|
||||
"assert(code.match(/-->/g).length > 1, 'message: Be sure to close each of your comments with <code>--></code>.');",
|
||||
"assert((code.match(/<([a-z0-9]){1,2}>/g)[0]===\"<h1>\" && code.match(/<([a-z0-9]){1,2}>/g)[1]===\"<h2>\" && code.match(/<([a-z0-9]){1,2}>/g)[2]===\"<p>\") , 'message: Do not change the order of the <code>h1</code> <code>h2</code> or <code>p</code> in the code.');"
|
||||
],
|
||||
"type": "waypoint",
|
||||
"titleEs": "Comenta en HTML",
|
||||
|
Reference in New Issue
Block a user