From 943531194410352da0847d2e766067d08f53ae8d Mon Sep 17 00:00:00 2001 From: Robert Treat Date: Fri, 26 Nov 2010 21:21:52 -0500 Subject: [PATCH] add test for clustering on index, and fix missing var I found during testing --- lang/english.php | 1 + lang/recoded/english.php | 1 + tests/selenium/src/35-index.php | 11 +++++++++-- 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 +?> -- 2.39.5