From 6dabc1c2d16c4bf7a7ac6dd23cd55646ff79ac15 Mon Sep 17 00:00:00 2001 From: "edburns%acm.org" Date: Tue, 12 Jun 2007 14:21:02 +0000 Subject: [PATCH] account for native toolkit inconsistencies git-svn-id: svn://10.0.0.236/trunk@227859 18797224-902f-48f8-a5cc-f745e15eee43 --- .../org/mozilla/webclient/CurrentPageTest.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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 e1288d556b8..d75920d6288 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.17 2007-05-04 17:10:35 edburns%acm.org Exp $ + * $Id: CurrentPageTest.java,v 1.18 2007-06-12 14:21:02 edburns%acm.org Exp $ */ /* @@ -163,8 +163,13 @@ public class CurrentPageTest extends WebclientTestCase implements ClipboardOwner buf.append(contentLine); System.out.println(contentLine); } - assertEquals("HistoryTest0This is page 0 of the history test.next", - buf.toString()); + String bufString = buf.toString(); + int i,j; + assertTrue(-1 != (i = bufString.indexOf("HistoryTest0"))); + assertTrue(-1 != (j = bufString.indexOf("This is page 0 of the history test."))); + assertTrue(i < j); + assertTrue(-1 != (i = bufString.indexOf("next"))); + assertTrue(j < i); // Test HTML copy