Commit af9bcf72 by Adrian Phinney

Add unit test suite structure.

parent ea133a03
......@@ -16,6 +16,7 @@
"gitHead": "52bff469f60988f1391e8b3d7cb5349163df8ba1",
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-uglify": "~0.2.0"
"grunt-contrib-uglify": "~0.2.0",
"qunitjs": "~1.12.0"
}
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Raphael Test Suite</title>
<link rel="stylesheet" href="../node_modules/qunitjs/qunit/qunit.css" />
</head>
<body>
<div id="qunit"></div>
<div id="qunit-fixture"></div>
<script type="text/javascript" src="../node_modules/qunitjs/qunit/qunit.js"></script>
<script type="text/javascript" src="../../eve/eve.js"></script>
<script type="text/javascript" src="../raphael.core.js"></script>
<script type="text/javascript" src="../raphael.svg.js"></script>
<script type="text/javascript" src="../raphael.vml.js"></script>
<script type="text/javascript">
(function() {
var tests = [
"dom"
];
var typeFolder = Raphael.type.toLowerCase();
for (var i = 0; i < tests.length; i++) {
var s = document.createElement('script');
s.type = "text/javascript";
s.src = typeFolder + "/" + tests[i] + ".js";
document.body.appendChild(s);
}
})();
</script>
</body>
</html>
\ No newline at end of file
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 sign in to comment