| 393 |
$lines = array(); |
$lines = array(); |
| 394 |
switch ($action->type) { |
switch ($action->type) { |
| 395 |
case 'click_link': |
case 'click_link': |
| 396 |
$lines[] = array( |
// All code comments should be in English, so don't use t(). |
| 397 |
'type' => 'comment', |
$lines[] = '// Click the link on the page in order to simulate browsing the site.'; |
|
'value' => t('Click the link on the page in order to simulate browsing the site.'), |
|
|
); |
|
| 398 |
if ($action->parameters['index']) { |
if ($action->parameters['index']) { |
| 399 |
$lines[] = array( |
$lines[] = array( |
|
'type' => 'code', |
|
| 400 |
'value' => '$this->clickLink(t(%s), %d)', |
'value' => '$this->clickLink(t(%s), %d)', |
| 401 |
'arguments' => array($action->parameters['label'], $action->parameters['index']), |
'arguments' => array($action->parameters['label'], $action->parameters['index']), |
| 402 |
); |
); |
| 403 |
} |
} |
| 404 |
else { |
else { |
| 405 |
$lines[] = array( |
$lines[] = array( |
|
'type' => 'code', |
|
| 406 |
'value' => '$this->clickLink(t(%s));', |
'value' => '$this->clickLink(t(%s));', |
| 407 |
'arguments' => array($action->parameters['label']), |
'arguments' => array($action->parameters['label']), |
| 408 |
); |
); |