fixed client tests

git-svn-id: http://google-refine.googlecode.com/svn/trunk@926 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
Stefano Mazzocchi 2010-05-31 17:56:07 +00:00
parent 13399a48ee
commit fe004d5fa6
3 changed files with 8 additions and 114 deletions

View File

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

View File

@ -14,6 +14,7 @@ var test_facets = new function() {
test = newTest();
action (test, "click", { link: "Food" });
wait (test, "forPageLoad", { timeout: "20000" });
wait (test, "forElement", { jquery: '(".viewPanel-summary-row-count")[0]' });
assert (test, "rowCount", "7413" );
this.test_open_project = test;
@ -40,7 +41,6 @@ var test_facets = new function() {
// filter down to BEEF
test = newTest();
action (test, "click", { jquery: '("a.facet-choice-label")[0]' });
wait (test, "forElement", { jquery: '(".viewPanel-summary-row-count")[0]' });
assert (test, "rowCount", "457");
this.test_fitler_text_facet = test;
@ -50,10 +50,10 @@ var test_facets = new function() {
action (test, "mouseOver", { jquery: '("td:contains(\'Facet\')")[0]' });
wait (test, "forMenuItem", { name: 'Numeric Facet' });
action (test, "click", { jquery: '(".menu-item:contains(\'Numeric Facet\')")[0]' });
// TODO: What to wait on, to know we're ready to do the following assert? Talk to dfhuynh.
//assert (test, function() {
// jum.assertTrue($(".facet-panel span:contains(\'Water\')").length > 0);
//});
wait (test, "forAjaxEnd");
assert (test, function() {
jum.assertTrue($(".facet-panel span:contains('Water')").length > 0);
});
this.test_create_numeric_facet = test;
// filter out BEEF with lower water content
@ -61,7 +61,7 @@ var test_facets = new function() {
wait (test, "forAjaxEnd");
wait (test, "forElement", { jquery: '((".slider-widget-draggable.left"))[0]' }),
action (test, "dragDropElem", { jquery: '((".slider-widget-draggable.left"))[0]', pixels: '150, 0' });
// TODO: What to wait on, to know we're ready to do the following assert? Talk to dfhuynh.
wait (test, "forAjaxEnd"); // <--- FIXME for some reason the range faceting doesn't seem to be triggering that
//assert (test, "rowCount", "153");
this.test_filter_numeric_facet = test;

View File

@ -7412,109 +7412,3 @@ NDB_No,Shrt_Desc,Water,Energ_Kcal,Protein,Lipid_Tot,Ash,Carbohydrt,Fiber_TD,Suga
90240,"SCALLOP,(BAY&SEA),CKD,STMD",73.1,112,23.2,1.4,3.06,0,0,0,115,3,55,338,476,265,3,0.3,,27.9,0,0.1,0.06,1.3,,0.1,12,0,12,12,81,1.3,100,30,30,0,0,0,0,0,1.5,0.2,0.146,0.068,0.481,53,,,,,0
90560,"SNAIL,RAW",79.2,90,16.1,1.4,1.3,2,0,0,10,3.5,250,272,382,70,1,0.4,,27.4,0,0.01,0.12,1.4,,0.13,6,0,6,6,65,0.5,100,30,30,0,0,0,0,0,5,0.1,0.361,0.259,0.252,50,,,,,0
93600,"TURTLE,GREEN,RAW",78.5,89,19.8,0.5,1.2,0,0,0,118,1.4,20,180,230,68,1,0.25,,16.8,0,0.12,0.15,1.1,,0.12,15,0,15,15,65,1,100,30,30,0,0,0,0,0,0.5,0.1,0.127,0.088,0.17,50,,,,,0
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,,,,,,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