Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
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)
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.