Skip to content

Instantly share code, notes, and snippets.

@alex-seville
Last active December 10, 2015 12:08
Show Gist options
  • Save alex-seville/4432084 to your computer and use it in GitHub Desktop.
Save alex-seville/4432084 to your computer and use it in GitHub Desktop.
issue 156 change require syntax changed syntax of all.tests.qunit
/// <reference path="require.js" />
/// <reference path="qunit.js" />
define(['../tests/base/base.qunit.test',
'../tests/ui/ui.qunit.test'],
function (){}
);
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="QUnit/qunit.css"/>
<script type="text/javascript" src="QUnit/qunit.js"></script>
<script type="text/javascript" src="require.js"></script>
<script type="text/javascript" src="Coverage/blanket_qunit.js" data-cover-flags="ignoreError autoStart" data-cover-only="foo/"></script>
<script type="text/javascript">
QUnit.config.autostart = false;
if (window.require && typeof (window.require.config) === 'function') {
require({
baseUrl: './code/'
},[
"code/all.tests.qunit.js"
],function(){
QUnit.start();
});
}
</script>
</head>
<body>
<h1 id="qunit-header">Unit Tests</h1>
<h2 id="qunit-banner"></h2>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture"></div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="QUnit/qunit.css"/>
<script type="text/javascript" src="QUnit/qunit.js"></script>
<script type="text/javascript" src="require.js"></script>
<script type="text/javascript" src="Coverage/blanket_qunit.js" data-cover-flags="ignoreError autoStart" data-cover-only="//.*/"></script>
<script type="text/javascript">
QUnit.config.autostart = false;
if (window.require && typeof (window.require.config) === 'function') {
require({
baseUrl: './code/'
},[
"code/all.tests.qunit.js"
],function(){
QUnit.start();
});
}
</script>
</head>
<body>
<h1 id="qunit-header">Unit Tests</h1>
<h2 id="qunit-banner"></h2>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment