Commit d6d834b8 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

rewrite test/index.html to load renderjs using requirejs, still loading qunit directly on purpose.

parent 68198036
...@@ -3,11 +3,10 @@ ...@@ -3,11 +3,10 @@
<html> <html>
<head> <head>
<link rel="stylesheet" href="../lib/qunit/qunit.css" type="text/css"/> <link rel="stylesheet" href="../lib/qunit/qunit.css" type="text/css"/>
<script src="../lib/jquery/jquery.js"> </script>
<script src="../lib/qunit/qunit.js" type="text/javascript"></script> <script src="../lib/qunit/qunit.js" type="text/javascript"></script>
<script type="text/javascript" src="../renderjs.js"></script> <script data-main="require-renderjs_test.js"
<script type="text/javascript" src="renderjs_test.js"></script> type="text/javascript"
src="../lib/require/require.js"></script>
</head> </head>
<body> <body>
<h1 id="qunit-header">QUnit RenderJS test suite</h1> <h1 id="qunit-header">QUnit RenderJS test suite</h1>
...@@ -15,13 +14,5 @@ ...@@ -15,13 +14,5 @@
<h2 id="qunit-userAgent"></h2> <h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol> <ol id="qunit-tests"></ol>
<div id="qunit-fixture"> </div> <div id="qunit-fixture"> </div>
<script type="text/javascript">
//<![CDATA[
$(document).ready(setupRenderJSTest());
//]]>
</script>
</body> </body>
</html> </html>
\ No newline at end of file
// JavaScript file that is used to load RenderJs depenencies
require.config({
baseUrl: "..",
shim: {
"test/renderjs_test": [ "renderjs" ]
}
});
require([ "require-renderjs", "test/renderjs_test" ], function(domReady) {
setupRenderJSTest();
});
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