[Httpunit-commit] CVS: httpunit/test/com/meterware/httpunit/javascript HTMLElementTest.java,1.1,1.2
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2003-01-09 18:02:27
|
Update of /cvsroot/httpunit/httpunit/test/com/meterware/httpunit/javascript
In directory sc8-pr-cvs1:/tmp/cvs-serv6038/test/com/meterware/httpunit/javascript
Modified Files:
HTMLElementTest.java
Log Message:
fixed spelling of getElementById
Index: HTMLElementTest.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/test/com/meterware/httpunit/javascript/HTMLElementTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- HTMLElementTest.java 30 Dec 2002 21:46:57 -0000 1.1
+++ HTMLElementTest.java 9 Jan 2003 18:02:24 -0000 1.2
@@ -48,7 +48,7 @@
defineResource( "start.html",
"<html><head><script language='JavaScript'>" +
"function showTitle( id ) {" +
- " alert( 'element with id ' + id + ' has title ' + document.getElementWithID( id ).title );" +
+ " alert( 'element with id ' + id + ' has title ' + document.getElementById( id ).title );" +
"}" +
"function showAll() {" +
" showTitle( 'there' ); showTitle( 'perform' ); showTitle( 'doIt' );" +
@@ -60,7 +60,7 @@
"<form id='perform' title=fifth><input type='submit' id='doIt' title=sixth></form>" +
"</td></tr></table></div>" );
WebConversation wc = new WebConversation();
- WebResponse wr = wc.getResponse( getHostPath() + "/start.html" );
+ wc.getResponse( getHostPath() + "/start.html" );
assertElementTitle( wc, "there", "second" );
assertElementTitle( wc, "perform", "fifth" );
|