Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
ea26475d
Commit
ea26475d
authored
Apr 09, 2012
by
Nathaniel Catchpole
Browse files
Issue
#1174640
by Niklas Fiekas: test coverage follow-up for new HTML5 FAPI element: number.
parent
7388171b
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/simpletest/tests/form.test
View file @
ea26475d
...
...
@@ -562,7 +562,7 @@ class FormElementTestCase extends DrupalWebTestCase {
$this
->
drupalGet
(
'form-test/placeholder-text'
);
$expected
=
'placeholder-text'
;
// Test to make sure non-textarea elements have the proper placeholder text.
foreach
(
array
(
'textfield'
,
'tel'
,
'url'
,
'password'
,
'email'
)
as
$type
)
{
foreach
(
array
(
'textfield'
,
'tel'
,
'url'
,
'password'
,
'email'
,
'number'
)
as
$type
)
{
$element
=
$this
->
xpath
(
'//input[@id=:id and @placeholder=:expected]'
,
array
(
':id'
=>
'edit-'
.
$type
,
':expected'
=>
$expected
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment