/[drupal]/contributions/modules/simpletest_automator/simpletest_automator.module
ViewVC logotype

Diff of /contributions/modules/simpletest_automator/simpletest_automator.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.39, Tue Aug 19 20:10:45 2008 UTC revision 1.40, Thu Aug 21 02:47:57 2008 UTC
# Line 393  function _simpletest_automator_export_ac Line 393  function _simpletest_automator_export_ac
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          );          );

Legend:
Removed from v.1.39  
changed lines
  Added in v.1.40

  ViewVC Help
Powered by ViewVC 1.1.2