diff --git a/mozilla/java/webclient/test/automated/src/classes/org/mozilla/webclient/CurrentPageTest.java b/mozilla/java/webclient/test/automated/src/classes/org/mozilla/webclient/CurrentPageTest.java index 215447eba23..4938921548c 100644 --- a/mozilla/java/webclient/test/automated/src/classes/org/mozilla/webclient/CurrentPageTest.java +++ b/mozilla/java/webclient/test/automated/src/classes/org/mozilla/webclient/CurrentPageTest.java @@ -1,5 +1,5 @@ /* - * $Id: CurrentPageTest.java,v 1.6 2005-02-10 04:20:50 edburns%acm.org Exp $ + * $Id: CurrentPageTest.java,v 1.7 2005-02-12 21:29:47 edburns%acm.org Exp $ */ /* @@ -268,16 +268,35 @@ public class CurrentPageTest extends WebclientTestCase implements ClipboardOwner selection = currentPage.getSelection(); assertTrue(-1 != selection.toString().indexOf("one")); - Thread.currentThread().sleep(1000); - assertTrue(currentPage.findNext()); selection = currentPage.getSelection(); assertTrue(-1 != selection.toString().indexOf("one")); + + assertTrue(currentPage.findNext()); + + assertTrue(!currentPage.findNext()); + + assertTrue(currentPage.find("one", false, false)); + assertTrue(currentPage.findNext()); + + assertTrue(currentPage.find("three", true, false)); + selection = currentPage.getSelection(); + assertTrue(-1 != selection.toString().indexOf("Three")); + assertTrue(currentPage.findNext()); + selection = currentPage.getSelection(); + assertTrue(-1 != selection.toString().indexOf("Three")); + assertTrue(currentPage.findNext()); + selection = currentPage.getSelection(); + assertTrue(-1 != selection.toString().indexOf("three")); + + assertTrue(currentPage.find("Three", false, true)); + selection = currentPage.getSelection(); + assertTrue(-1 != selection.toString().indexOf("Three")); + assertTrue(currentPage.findNext()); + selection = currentPage.getSelection(); + assertTrue(-1 != selection.toString().indexOf("Three")); - - Thread.currentThread().sleep(2000); - frame.setVisible(false); BrowserControlFactory.deleteBrowserControl(firstBrowserControl); }