[Httpunit-commit] CVS: httpunit/src/com/meterware/httpunit WebTable.java,1.26,1.27
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2003-02-26 03:02:08
|
Update of /cvsroot/httpunit/httpunit/src/com/meterware/httpunit
In directory sc8-pr-cvs1:/tmp/cvs-serv18549/src/com/meterware/httpunit
Modified Files:
WebTable.java
Log Message:
strip off whitespace when looking up tables
Index: WebTable.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/WebTable.java,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- WebTable.java 14 Feb 2003 19:04:24 -0000 1.26
+++ WebTable.java 26 Feb 2003 03:02:01 -0000 1.27
@@ -351,7 +351,7 @@
WebTable table = ((WebTable) htmlElement);
table.purgeEmptyCells();
return table.getRowCount() > 0 &&
- HttpUnitUtils.matches( table.getCellAsText(0,0), (String) criteria );
+ HttpUnitUtils.matches( table.getCellAsText(0,0).trim(), (String) criteria );
};
};
@@ -361,7 +361,7 @@
WebTable table = ((WebTable) htmlElement);
table.purgeEmptyCells();
return table.getRowCount() > 0 &&
- HttpUnitUtils.hasPrefix( table.getCellAsText(0,0).toUpperCase(), (String) criteria );
+ HttpUnitUtils.hasPrefix( table.getCellAsText(0,0).toUpperCase().trim(), (String) criteria );
};
};
|