#54 Support indirect invocation of JavaScript events on elements

closed
None
7
2008-04-01
2003-08-28
No

It would be nice if httpunit supported indirect
invocation of JavaScript event on form elements.

The JavaScript looks something like this:

<script language="javascript" type="text/javascript">
<!--
document.forms["testForm"].elements["one"].onchange();
// -->
</script>

Not sure whether this is a browser extension or not,
but both Mozilla 1.4 and MSIE 6.0 support this.

Please see attached HTML file for an example, as well
as the attached Java source file for a new test that
may be dropped into FormScriptingTest.java.

Discussion

  • David D. Kilzer

    David D. Kilzer - 2003-08-28

    Example HTML file demostrating the JavaScript

     
  • David D. Kilzer

    David D. Kilzer - 2003-08-28
    • priority: 5 --> 7
     
  • Wolfgang Fahl

    Wolfgang Fahl - 2008-03-31

    Logged In: YES
    user_id=1220573
    Originator: NO

    Dear httpunit user!

    Thank you for your feature request. We appreciate the time and effort you are putting into this.

    Please supply a testcase with the expected result for the feature you are asking for and we'll look into implementing it. For a start you might want to get the trunk version from the
    subversion repository (see https://sourceforge.net/svn/?group_id=6550\)
    and have a look at the source code of some of the more than 700 JUnit based testcase in there.

    When you are ready you might want to attach the testcase (and if you already have started implementing it also the actual code) to your feature request.

    This should give you a clue on what a proper testcase for httpunit looks like. The main communication about further details of the development is via the httpunit developer mailinglist. You are most welcome to sign up via
    https://lists.sourceforge.net/lists/listinfo/httpunit-develop

    Yours
    The httpunit developer team

    (Russell and Wolfgang as of 2008-03)

     
  • Wolfgang Fahl

    Wolfgang Fahl - 2008-03-31
    • assigned_to: nobody --> wolfgang_fahl
    • status: open --> pending
     
  • David D. Kilzer

    David D. Kilzer - 2008-03-31

    Logged In: YES
    user_id=84089
    Originator: YES

    Dear Russell and Wolfgang,

    There is already a unit test attached to this bug.

    Please see attachment named "testIndirectEventInvocation.java" attached on August 28, 2003. Thanks!

    Dave

     
  • David D. Kilzer

    David D. Kilzer - 2008-03-31
    • status: pending --> open
     
  • Wolfgang Fahl

    Wolfgang Fahl - 2008-04-01

    Logged In: YES
    user_id=1220573
    Originator: NO

    This feature is now in the subversion repository and will be included in the next release.

     
  • Wolfgang Fahl

    Wolfgang Fahl - 2008-04-01

    Logged In: YES
    user_id=1220573
    Originator: NO

    Dear David,

    when I did the mass-change of the request for feature backlog yesterday I was afraid that in some cases I would
    send out a request for test cases where test cases are already available. This is due to the fact that I didn't know how to filter these out.
    Thank you for getting back to me - I'll now happily work on this.

    Hand here comes the good new:
    I've added the test and it works!
    Hope this is some kind of "better late than never ..." story.

    Yours
    Wolfgang

     
  • Wolfgang Fahl

    Wolfgang Fahl - 2008-04-01
    • status: open --> closed
     
  • David D. Kilzer

    David D. Kilzer - 2008-04-01

    Logged In: YES
    user_id=84089
    Originator: YES

    Wolfgang,

    Thanks for checking the test and adding it to the suite! I've since moved on from the project that used httpunit, but I'm glad to know this bug is now fixed.

    Dave

     
  • Nobody/Anonymous

    YlEdag hmL40Mdg41UrgAs6a

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks