fixing tests

git-svn-id: http://google-refine.googlecode.com/svn/trunk@605 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
Stefano Mazzocchi 2010-05-05 02:23:23 +00:00
parent e000f28ed6
commit 7d63fc2f6f
3 changed files with 5 additions and 4 deletions

View File

@ -498,9 +498,9 @@ ui_test() {
sleep 3 sleep 3
echo "" echo ""
echo "Starting Windmill..." echo "Starting Windmill... (press COMMAND-c or CTRL-c to exit)"
if [ -z "$INTERACTIVE" ]; then if [ -z "$INTERACTIVE" ]; then
$WINDMILL firefox http://${GRIDWORKS_HOST}:${GRIDWORKS_PORT}/ jsdir=$GRIDWORKS_TEST_DIR/windmill/js exit > /dev/null $WINDMILL firefox http://${GRIDWORKS_HOST}:${GRIDWORKS_PORT}/ jsdir=$GRIDWORKS_TEST_DIR/windmill/js > /dev/null
else else
$WINDMILL firefox http://${GRIDWORKS_HOST}:${GRIDWORKS_PORT}/ > /dev/null $WINDMILL firefox http://${GRIDWORKS_HOST}:${GRIDWORKS_PORT}/ > /dev/null
fi fi

View File

@ -46,8 +46,9 @@ var test_basic_functions = new function () {
this.test_wait_for_value = {method: "waits.forElement", params: { jquery: '("td:contains(\'value.split\')")[0]'} }; this.test_wait_for_value = {method: "waits.forElement", params: { jquery: '("td:contains(\'value.split\')")[0]'} };
this.test_click_button = function () { wm.actions.click( { jquery: '("button:contains(\'OK\')")[0]'} ); }; this.test_click_button = function () { wm.actions.click( { jquery: '("button:contains(\'OK\')")[0]'} ); };
this.test_wait_for_link = {method: "waits.forElement", params: { jquery: '(".ui-button-text:contains(\'count\')")[0]'} }; this.test_wait_for_link = {method: "waits.forElement", params: { jquery: '(".ui-button-text:contains(\'count\')")[0]'} };
this.test_sort_worked= function () { asserts.gw.expected_top_value("SPAGHETTIOS"); }; this.test_facet_worked= function () { asserts.gw.expected_top_value("ABALONE"); };
this.test_sort_by_count = function () { wm.actions.click( { jquery: '(".ui-button-text:contains(\'count\')")[0]'} ); }; this.test_sort_by_count = function () { wm.actions.click( { jquery: '(".ui-button-text:contains(\'count\')")[0]'} ); };
this.test_wait_for_count = {method: "waits.forElement", params: { jquery: '(".ui-state-active .ui-button-text:contains(\'count\')")[0]'} };
this.test_sort_worked= function () { asserts.gw.expected_top_value("BEEF"); }; this.test_sort_worked= function () { asserts.gw.expected_top_value("BEEF"); };
}(); }();