[MOBY-guts] biomoby commit

Paul Gordon gordonp at dev.open-bio.org
Wed Aug 1 18:18:27 UTC 2007


gordonp
Wed Aug  1 14:18:27 EDT 2007
Update of /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/test
In directory dev.open-bio.org:/tmp/cvs-serv13096/src/main/ca/ucalgary/seahawk/gui/test

Modified Files:
	SeahawkTestCase.java 
Log Message:
Changed tab checks in text case, one less tab than before because clipboard is visible right from the start, not only after the first service is called
moby-live/Java/src/main/ca/ucalgary/seahawk/gui/test SeahawkTestCase.java,1.8,1.9
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/test/SeahawkTestCase.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/test/SeahawkTestCase.java	2007/06/16 00:30:34	1.8
+++ /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/test/SeahawkTestCase.java	2007/08/01 18:18:27	1.9
@@ -468,13 +468,13 @@
 	finder.setName(MobyContentGUI.FILE_CHOOSER_OPEN_TITLE);
 	assertNull("File chooser for open operation did not disappear after cancellation", finder.find());
 
-	assertTrue("New tab was not opened for loaded URL", tabbedPane.getTabCount() == startingTabCount+2); // new tab + clipboard (first display)
+	assertTrue("New tab was not opened for loaded URL", tabbedPane.getTabCount() == startingTabCount+1); // new tab
 
 	contentGUI.loadPaneFromURL(new URL("file:///nonsense-should-fail-dont-worry"), false); 
-	assertTrue("New tab was not opened for loaded URL", tabbedPane.getTabCount() == startingTabCount+2);
+	assertTrue("New tab was not opened for loaded URL", tabbedPane.getTabCount() == startingTabCount+1);
 
 	contentGUI.loadPaneFromURL(testMobyURL, true); //true == open in new tab
-	assertTrue("New tab was not opened for loaded URL", tabbedPane.getTabCount() == startingTabCount+3);
+	assertTrue("New tab was not opened for loaded URL", tabbedPane.getTabCount() == startingTabCount+2);
 
 	// Check that opening a Web page works too 
 	finder.setName(MobyContentGUI.WEB_OPEN_OPTION_NAME);
@@ -778,6 +778,7 @@
 	// now highlight (drag across) the text right-to-left to generate a reverse
 	// complemented dna sequence to submit to services
 	// left-click the link
+	sleep(1000);
 	JEditorPane pane = contentGUI.getCurrentPane().getDisplay();
 	Point screenStartPos = pane.getLocationOnScreen();
 	Point screenEndPos = pane.getLocationOnScreen();




More information about the MOBY-guts mailing list