Skip to content

Instantly share code, notes, and snippets.

@pawelpabich
Created October 30, 2012 08:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pawelpabich/3979097 to your computer and use it in GitHub Desktop.
Save pawelpabich/3979097 to your computer and use it in GitHub Desktop.
Java Script unit testing with YUI Test and Jack mocking framework
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>Untitled Page</title>
<link rel="stylesheet" type="text/css" href="http://developer.yahoo.com/yui/3/assets/yui.css" />
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/3.1.1/build/cssfonts/fonts-min.css" />
<script src="http://yui.yahooapis.com/3.1.1/build/yui/yui-min.js" type="text/javascript"></script>
<script src="Scripts/jack.js" type="text/javascript"></script>
<script src="Scripts/Form.js" type="text/javascript"></script>
<script src="Scripts/UnitTests.js" type="text/javascript"></script>
</head>
<body class="yui3-skin-sam yui-skin-sam">
<div id="testLogger"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment