/ Published in: HTML
Expand |
Embed | Plain Text
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <link rel="stylesheet" href="core/qunit.css" type="text/css"/> <script src="http://code.jquery.com/jquery-latest.js"> </script> <script type="text/javascript" src="core/qunit.js"> </script> <script type="text/javascript"> // --- Unittest Code goes here --- </script> <script> $(document).ready(function(){ module("Basic Unit Test"); test("Sample test", function(){ expect(1); equals(divide(4, 2), 2, 'Expected 2 as the result, result was: ' + divide(4, 2)); }); }); </script> </head> <body> <ol id="qunit-tests"> </ol> </body> </html>
You need to login to post a comment.
