add test for clustering on index, and fix missing var I found during testing
authorRobert Treat <robert@robert-treats-macbook.local>
Sat, 27 Nov 2010 02:21:52 +0000 (21:21 -0500)
committerRobert Treat <robert@robert-treats-macbook.local>
Sat, 27 Nov 2010 02:21:52 +0000 (21:21 -0500)
lang/english.php
lang/recoded/english.php
tests/selenium/src/35-index.php

index a843ad493314c356d6c50ad7503ea0b37e4dab1d..a6aee5eef85fab45850831f9afcb73c699256eb0 100644 (file)
        $lang['strindextype'] = 'Type of index';
        $lang['strtablecolumnlist'] = 'Columns in table';
        $lang['strindexcolumnlist'] = 'Columns in index';
+       $lang['strconfcluster'] = 'Are you sure you want to cluster on "%s"?';
        $lang['strclusteredgood'] = 'Cluster complete.';
        $lang['strclusteredbad'] = 'Cluster failed.';
        $lang['strconcurrently'] = 'Concurrently';
index ad60bdb96cce1c12bdd75d3feb8aa1cd2c6dc928..b4f74775482d79b56cf62cc0f62fc6846724785f 100644 (file)
        $lang['strindextype'] = 'Type of index';
        $lang['strtablecolumnlist'] = 'Columns in table';
        $lang['strindexcolumnlist'] = 'Columns in index';
+       $lang['strconfcluster'] = 'Are you sure you want to cluster on &quot;%s&quot;?';
        $lang['strclusteredgood'] = 'Cluster complete.';
        $lang['strclusteredbad'] = 'Cluster failed.';
        $lang['strconcurrently'] = 'Concurrently';
index 5b9c19bf927d8f8ab70d7867e8fd0415e50258ec..d17568cae90f9d18eefc7fb76a0a1e23511d0bb0 100644 (file)
@@ -29,7 +29,14 @@ $t->clickAndWait("//input[@value='{$lang['strcreate']}']");
 $t->assertText("//p[@class='message']", $lang['strindexcreated']);
 
 /** 2 **/
-$t->addComment('2. Drop the index');
+$t->addComment('2. Cluster on the index');
+$t->clickAndWait("link={$lang['strindexes']}");
+$t->clickAndWait("//tr/td[text()='name_unique']/../td/a[text()='Cluster']");
+$t->clickAndWait('cluster');
+$t->assertText("//p[@class='message']", $lang['strclusteredgood'] . ' ' . $lang['stranalyzegood']);
+
+/** 3 **/
+$t->addComment('3. Drop the index');
 $t->clickAndWait("link={$lang['strindexes']}");
 $t->clickAndWait("//tr/td[text()='name_unique']/../td/a[text()='Drop']");
 $t->click('cascade');
@@ -39,4 +46,4 @@ $t->assertText("//p[@class='message']", $lang['strindexdropped']);
 $t->logout();
 $t->writeTests("{$test_static_dir}/{$server['desc']}/index.html", $testsuite_file);
 unset($t);
-?>
\ No newline at end of file
+?>