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 @@
<html>
<head>
<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 type="text/javascript" src="../renderjs.js"></script>
<script type="text/javascript" src="renderjs_test.js"></script>
<script data-main="require-renderjs_test.js"
type="text/javascript"
src="../lib/require/require.js"></script>
</head>
<body>
<h1 id="qunit-header">QUnit RenderJS test suite</h1>
......@@ -15,13 +14,5 @@
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture"> </div>
<script type="text/javascript">
//<![CDATA[
$(document).ready(setupRenderJSTest());
//]]>
</script>
</body>
</html>
\ No newline at end of file
</html>
// 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