[Httpunit-commit] CVS: httpunit/test/com/meterware/httpunit/javascript DocumentScriptingTest.java,1.
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2004-10-13 15:13:51
|
Update of /cvsroot/httpunit/httpunit/test/com/meterware/httpunit/javascript In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv789/test/com/meterware/httpunit/javascript Modified Files: DocumentScriptingTest.java Log Message: bug 1040770 (fixed by Satish Kolli): Image.name property now readable Index: DocumentScriptingTest.java =================================================================== RCS file: /cvsroot/httpunit/httpunit/test/com/meterware/httpunit/javascript/DocumentScriptingTest.java,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- DocumentScriptingTest.java 5 Dec 2003 04:06:53 -0000 1.11 +++ DocumentScriptingTest.java 13 Oct 2004 15:11:51 -0000 1.12 @@ -239,7 +239,7 @@ " alert( getFound( document.realimage ) + \"image 'realimage'\" )\n;" + " alert( getFound( document.images['realimage'] ) + \"image 'images[realimage]'\" )\n;" + " alert( getFound( document.noimage ) + \"image 'noimage'\" );\n" + - " alert( '2nd image is ' + document.images[1].src ); }\n" + + " alert( document.images[1].name ); }\n" + "</script></head>\n" + "<body onLoad='viewImages()'>\n" + "<img name='realimage' src='pict1.gif'>\n" + @@ -251,7 +251,7 @@ assertEquals( "Alert message", "found image 'realimage'", wc.popNextAlert() ); assertEquals( "Alert message", "found image 'images[realimage]'", wc.popNextAlert() ); assertEquals( "Alert message", "did not find image 'noimage'", wc.popNextAlert() ); - assertEquals( "Alert message", "2nd image is pict2.gif", wc.popNextAlert() ); + assertEquals( "Alert message", "2ndimage", wc.popNextAlert() ); assertNull( "Alert should have been removed", wc.getNextAlert() ); } |