Created
May 11, 2011 19:13
-
-
Save emjayess/967096 to your computer and use it in GitHub Desktop.
QUnit boilerplate markup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>javascript unit tests...</title> | |
<link rel="stylesheet" href="http://code.jquery.com/qunit/git/qunit.css"/> | |
</head> | |
<body> | |
<h1 id="qunit-header">QUnit Sample</h1> | |
<h2 id="qunit-banner"></h2> | |
<h2 id="qunit-userAgent"></h2> | |
<ol id="qunit-tests"> | |
</ol> | |
<script src="http://code.jquery.com/jquery-latest.js"></script> | |
<script src="http://code.jquery.com/qunit/git/qunit.js"></script> | |
<script> | |
$(function(){ | |
module( 'My Module' ); | |
test('my test', function() { | |
expect( 2 ); | |
equals( true, false, 'failing equality test' ); | |
equals( true, true, 'passing equality test' ); | |
}); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment