Permalink
Browse files

stub out unit test framework

  • Loading branch information...
1 parent f214330 commit cb14da368c3f95857fbe2d903c821c278e98e65f @lloyd lloyd committed Dec 22, 2011
View
@@ -1,2 +1,5 @@
/node_modules
*~
+\#*#
+.#*
+npm-debug.log
@@ -0,0 +1,26 @@
+$(document).ready(function(){
+
+ test("a basic test example", function() {
+ ok( true, "this test is fine" );
+ var value = "hello";
+ equal( value, "hello", "We expect value to be hello" );
+ });
+
+ module("Module A");
+
+ test("first test within module", function() {
+ ok( true, "all pass" );
+ });
+
+ test("second test within module", function() {
+ ok( true, "all pass" );
+ });
+
+ module("Module B");
+
+ test("some other test", function() {
+ expect(2);
+ equal( true, false, "failing test" );
+ equal( true, true, "passing test" );
+ });
+});
View
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <script src="qunit/jquery.js"></script>
+ <link rel="stylesheet" href="qunit/qunit.css" type="text/css" media="screen" />
+ <script type="text/javascript" src="qunit/qunit.js"></script>
+
+ <!-- tests -->
+ <script type="text/javascript" src="cases/basic/run.js"></script>
+
+</head>
+<body>
+<h1 id="qunit-header">WinChan Unit Tests</h1>
+<h2 id="qunit-banner"></h2>
+<div id="qunit-testrunner-toolbar"></div>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests"></ol>
+<div id="qunit-fixture">test markup, will be hidden</div>
+</body>
+</html>
Oops, something went wrong.

0 comments on commit cb14da3

Please sign in to comment.