Merge pull request #1219 from benmcmahon100/patch-10

Fix for a grammar issue in add a submit button to a form ( #1218 )
This commit is contained in:
Berkeley Martinez
2015-07-08 12:00:33 -07:00

View File

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