- Patch #266178 by boombatower: SimpleTest internal browser no longer handles element ids.
parent
201e1dd356
commit
3020deb421
|
@ -622,12 +622,13 @@ class DrupalWebTestCase extends UnitTestCase {
|
|||
foreach ($elements as $element) {
|
||||
// SimpleXML objects need string casting all the time.
|
||||
$name = (string) $element['name'];
|
||||
$id = (string) $element['id'];
|
||||
// This can either be the type of <input> or the name of the tag itself
|
||||
// for <select> or <textarea>.
|
||||
$type = isset($element['type']) ? (string)$element['type'] : $element->getName();
|
||||
$value = isset($element['value']) ? (string)$element['value'] : '';
|
||||
$done = FALSE;
|
||||
if (isset($edit[$name])) {
|
||||
if (isset($edit[$name]) || isset($edit[$id])) {
|
||||
switch ($type) {
|
||||
case 'text':
|
||||
case 'textarea':
|
||||
|
|
Loading…
Reference in New Issue