Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1.2
    • Component/s: None
    • Labels:
      None

      Description

      Attached is a proposed unit test case for the AddResource class. The unit tests cover only a small percentage of the functionality of the AddResource class but it's a start.

      This test also demonstrates an existing bug in the AddResource class; the unit test fails (correctly!) because of this code:
      if(bodyInsertPosition>0)

      { ..... buf.append("\""); originalResponse.insert( bodyInsertPosition-1, " "+ buf.toString()); }

      which is causing <body> to always be transformed into <body "> regardless of whether there is any stuff to insert into the body's onload method or not.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              skitching Simon Kitching
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: