[Httpunit-commit] CVS: httpunit/test/com/meterware/httpunit/javascript ScriptingTest.java,1.28,1.29
Brought to you by:
russgold
From: Russell G. <rus...@us...> - 2002-10-08 14:01:14
|
Update of /cvsroot/httpunit/httpunit/test/com/meterware/httpunit/javascript In directory usw-pr-cvs1:/tmp/cvs-serv27586/test/com/meterware/httpunit/javascript Modified Files: ScriptingTest.java Log Message: from Richard Harris: title attribute and navigator.platform property Index: ScriptingTest.java =================================================================== RCS file: /cvsroot/httpunit/httpunit/test/com/meterware/httpunit/javascript/ScriptingTest.java,v retrieving revision 1.28 retrieving revision 1.29 diff -u -r1.28 -r1.29 --- ScriptingTest.java 8 Oct 2002 13:14:31 -0000 1.28 +++ ScriptingTest.java 8 Oct 2002 14:01:11 -0000 1.29 @@ -476,6 +476,7 @@ " alert( 'appCodeName=' + navigator.appCodeName )\n;" + " alert( 'appVersion=' + navigator.appVersion )\n;" + " alert( 'userAgent=' + navigator.userAgent )\n;" + + " alert( 'platform=' + navigator.platform )\n;" + " alert( 'javaEnabled=' + navigator.javaEnabled() )\n;" + " alert( '# plugins=' + navigator.plugins.length )\n;" + "}" + @@ -485,13 +486,15 @@ HttpUnitOptions.setExceptionsThrownOnScriptError( true ); WebConversation wc = new WebConversation(); wc.getClientProperties().setApplicationID( "Internet Explorer", "Mozilla", "4.0" ); + wc.getClientProperties().setPlatform( "JVM" ); WebResponse response = wc.getResponse( getHostPath() + "/OnCommand.html" ); assertEquals( "Alert message 1", "appName=Internet Explorer", wc.popNextAlert() ); assertEquals( "Alert message 2", "appCodeName=Mozilla", wc.popNextAlert() ); assertEquals( "Alert message 3", "appVersion=4.0", wc.popNextAlert() ); assertEquals( "Alert message 4", "userAgent=Mozilla/4.0", wc.popNextAlert() ); - assertEquals( "Alert message 5", "javaEnabled=false", wc.popNextAlert() ); - assertEquals( "Alert message 6", "# plugins=0", wc.popNextAlert() ); + assertEquals( "Alert message 5", "platform=JVM", wc.popNextAlert() ); + assertEquals( "Alert message 6", "javaEnabled=false", wc.popNextAlert() ); + assertEquals( "Alert message 7", "# plugins=0", wc.popNextAlert() ); assertNull( "Alert should have been removed", wc.getNextAlert() ); } |