summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Treat2010-11-27 02:21:52 +0000
committerRobert Treat2010-11-27 02:21:52 +0000
commit943531194410352da0847d2e766067d08f53ae8d (patch)
tree2a9f83d457d4ed76da2dd90a0556912fa4871344
parentd35cef4e233f759bcc79ae5191005c2c565b670a (diff)
add test for clustering on index, and fix missing var I found during testing
-rw-r--r--lang/english.php1
-rw-r--r--lang/recoded/english.php1
-rw-r--r--tests/selenium/src/35-index.php11
3 files changed, 11 insertions, 2 deletions
diff --git a/lang/english.php b/lang/english.php
index a843ad49..a6aee5ee 100644
--- a/lang/english.php
+++ b/lang/english.php
@@ -486,6 +486,7 @@
$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';
diff --git a/lang/recoded/english.php b/lang/recoded/english.php
index ad60bdb9..b4f74775 100644
--- a/lang/recoded/english.php
+++ b/lang/recoded/english.php
@@ -486,6 +486,7 @@
$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';
diff --git a/tests/selenium/src/35-index.php b/tests/selenium/src/35-index.php
index 5b9c19bf..d17568ca 100644
--- a/tests/selenium/src/35-index.php
+++ b/tests/selenium/src/35-index.php
@@ -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
+?>