Merge pull request #6082 from felixonmars/staging

Use "Submit" in test prompt for "Add a Submit Button to a Form"
This commit is contained in:
Arsen Melikyan
2016-01-12 18:17:12 +04:00

View File

@ -1820,7 +1820,7 @@
"tests": [ "tests": [
"assert($(\"form\").children(\"button\").length > 0, 'message: Your form should have a button inside it.');", "assert($(\"form\").children(\"button\").length > 0, 'message: Your form should have a button inside it.');",
"assert($(\"button\").attr(\"type\") === \"submit\", 'message: Your submit button should have the attribute <code>type</code> set to <code>submit</code>.');", "assert($(\"button\").attr(\"type\") === \"submit\", 'message: Your submit button should have the attribute <code>type</code> set to <code>submit</code>.');",
"assert($(\"button\").text().match(/submit/gi), 'message: Your submit button should have the text \"submit\".');", "assert($(\"button\").text().match(/submit/gi), 'message: Your submit button should have the text \"Submit\".');",
"assert(code.match(/<\\/button>/g) && code.match(/<button/g) && code.match(/<\\/button>/g).length === code.match(/<button/g).length, 'message: Make sure your <code>button</code> element has a closing tag.');" "assert(code.match(/<\\/button>/g) && code.match(/<button/g) && code.match(/<\\/button>/g).length === code.match(/<button/g).length, 'message: Make sure your <code>button</code> element has a closing tag.');"
], ],
"type": "waypoint", "type": "waypoint",