Skip to content

Commit

Permalink
added bare test scripts;
Browse files Browse the repository at this point in the history
  • Loading branch information
christophercliff committed Apr 1, 2011
1 parent 0eaa2d1 commit fba137c
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 51 deletions.
73 changes: 22 additions & 51 deletions tests/index.html
@@ -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>
17 changes: 17 additions & 0 deletions tests/speed.js
@@ -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.