Permalink
Browse files

added bare test scripts;

  • Loading branch information...
1 parent 0eaa2d1 commit fba137c5455c7435fbef1aadb4df92a4045a0d4a @christophercliff committed Apr 1, 2011
Showing with 39 additions and 51 deletions.
  1. +22 −51 tests/index.html
  2. +17 −0 tests/speed.js
  3. 0 tests/{jquery.sausage.test.js → test.js}
View
@@ -1,53 +1,24 @@
-<!doctype html>
-<html>
-
- <head>
-
- <title>sausage.js</title>
-
- <!-- apply CSS reset because we are not savages -->
- <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/combo?2.8.1/build/reset/reset-min.css">
- <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/combo?2.8.1/build/reset-fonts/reset-fonts.css">
- <link rel="stylesheet" type="text/css" href="../sausage.css">
-
- <style type="text/css">
-
- body {
- overflow-y: scroll;
- }
- #site {
- width: 500px;
- padding: 40px; margin: 0 auto;
- }
- h1 {
- margin-bottom: 40px;
- font-size: 24px;
- }
- .page-set {
-
- }
- .page {
- padding: 20px; margin-bottom: 40px;
- background-color: #eee;
- -moz-border-radius: 20px;
- -webkit-border-bottom-left-radius: 20px;
- -webkit-border-top-left-radius: 20px;
- -webkit-border-bottom-right-radius: 20px;
- -webkit-border-top-right-radius: 20px;
- }
-
- </style>
-
- </head>
-
- <body>
-
- <script type="text/javascript" src="../lib/jquery-1.5.1.js"></script>
- <script type="text/javascript" src="../lib/jquery.ui.widget.js"></script>
- <script type="text/javascript" src="../jquery.sausage.js"></script>
- <script type="text/javascript" src="../jquery.sausage.test.js"></script>
-
- </body>
-
+<!DOCTYPE HTML>
+<html>
+<head>
+ <title>sausage.js - Tests</title>
+ <link rel="stylesheet" type="text/css" href="../lib/qunit.css" />
+ <script type="text/javascript" src="../lib/jquery-1.5.1.js"></script>
+ <script type="text/javascript" src="../lib/jquery.ui.widget.js"></script>
+ <script type="text/javascript" src="../lib/qunit.js"></script>
+ <script type="text/javascript" src="../lib/jslitmus.js"></script>
+ <script type="text/javascript" src="../jquery.sausage.js"></script>
+ <script type="text/javascript" src="test.js"></script>
+ <script type="text/javascript" src="speed.js"></script>
+</head>
+<body>
+ <h1 id="qunit-header">Sausage Test Suite</h1>
+ <h2 id="qunit-banner"></h2>
+ <h2 id="qunit-userAgent"></h2>
+ <ol id="qunit-tests"></ol>
+ <br />
+ <h1 class="qunit-header">Sausage Speed Suite</h1>
+ <p></p>
+</body>
</html>
View
@@ -0,0 +1,17 @@
+$(function(){
+
+ var numbers = [],
+ $el = $('<div>').appendTo('body');
+
+ $el
+ .sausage()
+ ;
+
+ JSLitmus.test('draw', function(count){
+ while (count--)
+ {
+ $el.sausage("draw");
+ }
+ });
+
+});
File renamed without changes.

0 comments on commit fba137c

Please sign in to comment.