Drupal 7 does not support HTML5 fields, and thus simpletest for D7 doesn't either. However, you can still use HTML5 with the help of contrib modules. We've discovered that if you do use contrib to use HTML5 fields, our tests fail due to the DrupalTestCase class not supporting HTML5 field types.

Here's a patch that's really more of a backport as this support is already present in D8. Apologies if this is a duplicate, I couldn't find an appropriate issue.

Files: 
CommentFileSizeAuthor
#4 1828876_simpletest_html5_field_support.patch740 bytesgeekyMoa
PASSED: [[SimpleTest]]: [MySQL] 39,573 pass(es).
[ View ]
simpletest_html5_field_support.patch763 bytesgeekyMoa
FAILED: [[SimpleTest]]: [MySQL] 27,103 pass(es), 13,171 fail(s), and 1,987 exception(s).
[ View ]

Comments

Status:Needs review» Needs work

The last submitted patch, simpletest_html5_field_support.patch, failed testing.

Letharion’s picture

Status:Needs work» Needs review

Why would this cause failures all over the place like that?

Lets try again.

Letharion’s picture

simpletest_html5_field_support.patch queued for re-testing.

geekyMoa’s picture

StatusFileSize
new740 bytes
PASSED: [[SimpleTest]]: [MySQL] 39,573 pass(es).
[ View ]

Noticed that we accidentally removed support for text fields. Ooops! Resubmitting.

earnie’s picture

Version:7.x-dev» 8.x-dev
Issue tags:+needs backport to D7

Feature requests need to go to the developing version.

geekyMoa’s picture

Category:feature» bug

Okay, then I think this isn't a feature request but more of a... what, a bug report, I guess? There's no option for "backport". This is already in the 8.x-dev branch.

I'd like this in D7 too, if at all possible. :)

geekyMoa’s picture

Version:8.x-dev» 7.x-dev
earnie’s picture

What issue added it for D8?

Letharion’s picture

There's no particular issue that made all the changes. The WebTestBase class contains support for all the HTML5 field types, and a git blame will show that it was added over a number of different commits and over an extended time period.

This is effectively a backport, but not of a particular patch.

earnie’s picture

Status:Needs review» Reviewed & tested by the community

Great.

David_Rothstein’s picture

Status:Reviewed & tested by the community» Fixed

Automatically closed -- issue fixed for 2 weeks with no activity.