Hi,
I'm new in QUnit and testing JS.
I am reading a lot of tutorials but i have a question.
How to test DOM ?
Tutorial said that i have to create new file
(test_qunit.html)
<pre>
<title>QUnit Example</title>
<link rel="stylesheet" href="/resources/qunit.css">
<div id="qunit-fixture"></div>
<script src="/resources/qunit.js"></script>
<script src="/resources/tests.js"></script>
</pre>
OK
In my application in second html file i have some
<a href="#" id="showDiv">show my div</a>
<div id="myDiv" class="hidden">
and in js file preety jquery code
$('#showDiv').click(function() { $('#myDiv').show(); }
I want to test is this div is visible after click <a>.
I have to put the same html code to my text_qunit.html ?