Updated tests to verify placeholder text in use html 5 to require waypoint and closes #643

This commit is contained in:
terakilobyte
2015-05-27 12:32:31 -04:00
parent b76cc9ea22
commit 33308e0571

View File

@ -1325,8 +1325,8 @@
"For example, if you wanted to make a text input field required, you can just add the word \"required\" within your <code>input</code> element use: <code>&#60;input type='text' required&#62;</code>"
],
"tests": [
"assert($('input').prop('required'), 'Your text field have the property of being required.')",
"assert($('[placeholder]').length > 0, 'Your text field should have the placeholder text of \"cat photo URL\".')"
"assert($('input').prop('required'), 'Your text field should have the property of being required.')",
"assert(new RegExp('cat photo URL').test($('input').prop('placeholder')), 'Your text field should have the placeholder text of \"cat photo URL\".')"
],
"challengeSeed": [
"<link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>",