Update of /cvsroot/jwebunit/jWebUnit/testcases/JavaScriptEventsTest
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11168/testcases/JavaScriptEventsTest

Added Files:
        next.html nav.js FormOnSubmit.html index.html onchange.html 
Log Message:
Converted javascript test to use jetty. Still has test failures.

--- NEW FILE: FormOnSubmit.html ---
<html>
<body>
<form method="GET" action="#" 
        onSubmit="javascript:window.open('../params.jsp', 'child');"
        onReset="javascript:window.open('../params.jsp', 'child');">
<input id="b1" type="button" value="click me" 
        onClick="javascript:window.open('TargetPage.html', 'child');" />
<input type="reset" />
<input type="submit" />
</form>
</body>
</html>
--- NEW FILE: next.html ---
<html>
<head>
<title>Next page</title>
<script src="nav.js" type="text/javascript" language="javascript">
</script>
</head>
<body>
<h1>Next</h1>
<p>Here is the text we expect</p>
</body>
</html>
--- NEW FILE: index.html ---
<html>
<head>
<title>Startpage</title>
<script src="nav.js" type="text/javascript" language="javascript"></script>
</head>
<body>
<h1>Javascript Test</h1>
<form>
<input type="button" onclick="gotoNext()" value="Next" id="next">
</form>
<a id="linkNext" href="javascript:void(0)" onclick="javascript:gotoNext()">Next 
using link</a>
</body>
</html>
--- NEW FILE: nav.js ---
function gotoNext() {
        window.location='next.html';
        return true; 
}
--- NEW FILE: onchange.html ---
<html>
<script>
function changeSelect() {
document.forms[0].submit();
}
</script>
<title>The Title</title>
<body>
<form name="testForm" action="../params.jsp" method="get">
<select type="select" name="testSelect" onchange="changeSelect();">
<option value="V1" selected="true">Value1</option>
<option value="V2">Value2</option>
</select>
</form>
</body>
</html>


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Jwebunit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to