Commit 17dfeaa4 authored by Tristan Cavelier's avatar Tristan Cavelier

tests.html added, a test page using requirejs

parent eef176f9
...@@ -2,19 +2,12 @@ ...@@ -2,19 +2,12 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<title>JIO QUnit/Sinon Test</title> <title>JIO, Storages and ComplexQueries QUnit/Sinon Tests</title>
<link rel="stylesheet" href="../lib/qunit/qunit.css" /> <link rel="stylesheet" href="../lib/qunit/qunit.css" />
<script data-main="tests.require.js" src="../lib/require/require.js">
</script>
</head> </head>
<body> <body>
<div id="qunit"></div> <div id="qunit"></div>
<script type="text/javascript" src="../lib/qunit/qunit.js"></script>
<script type="text/javascript" src="../lib/sinon/sinon.js"></script>
<script type="text/javascript" src="../lib/sinon/sinon-qunit.js"></script>
<script type="text/javascript">
<!--
var require = {}; // IE compatibility
//-->
</script>
<script data-main="jiotests" src="../lib/require/require.js"></script>
</body> </body>
</html> </html>
/*jslint indent: 2, maxlen: 80 */
/*global require */
(function () {
"use strict";
require.config({
"paths": {
"md5": "../lib/md5/md5",
"complex_queries": "../complex_queries",
"jio": "../jio",
"jio_tests": "jio/tests",
"localstorage": "../src/jio.storage/localstorage",
"localstorage_tests": "jio.storage/localstorage.tests",
"qunit": "../lib/qunit/qunit",
"sinon": "../lib/sinon/sinon",
"sinon_qunit": "../lib/sinon/sinon-qunit"
},
"shim": {
"md5": {"exports": "hex_md5"},
"localstorage": ["jio", "complex_queries"],
"sinon": ["qunit"],
"sinon_qunit": ["sinon"]
}
});
require([
"sinon_qunit",
"jio_tests",
"localstorage_tests"
]);
}());
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment