SoftwareTesting:Tools:jsUnit: Difference between revisions

Jump to navigation Jump to search
no edit summary
(checkpoint)
No edit summary
Line 15: Line 15:
# run the test
# run the test
==Example==
==Example==
dom_3348.html: tagName of HTML element should give tag in upper case (bug 3348)
<pre>
<HTML>
<HEAD>
<script language="javascript" src="app/jsUnitCore.js"></script>
<script>
function test3348()
{
        var oForm = document.getElementById("form1");
        assertEquals("FORM", oForm.tagName);
}
</script>
</HEAD>
<BODY>
<form id="form1">
<input type="button" value="click here" onclick="buttonClick();">
</form>
</BODY>
</HTML>
</pre>
===Output===
===Output===
the test passes
=Comments=
=Comments=
* jsUnit also supports test suites.
* jsUnit also supports test suites.
** paths for files in addTestPage() are evaluated relative to the testRunner page, not the test suite page
** paths for files in addTestPage() are evaluated relative to the testRunner page, not the test suite page
=To do list=
=To do list=
201

edits

Navigation menu