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.

Support from Acquia helps fund testing for Drupal Acquia logo

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

geekyMoa’s picture

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

Anonymous’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
Anonymous’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.

Anonymous’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.