ApplicationInsights-JS/extensions/applicationinsights-osplugi.../Tests/UnitTests.html

45 строки
1.5 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Cache-control" content="no-Cache" />
<title>Tests for Application Insights JavaScript API</title>
<link rel="stylesheet" href="../../../common/Tests/External/qunit-2.9.3.css">
<script src="../../../common/Tests/External/sinon-2.3.8.js"></script>
<script src="../../../common/Tests/External/require-2.3.6.js"></script>
<script src="../../../common/Tests/Selenium/ModuleLoader.js"></script>
<script>
var modules = new ModuleLoader({
baseUrl: '../',
paths: {
qunit: "../../common/Tests/External/qunit-2.9.3",
"whatwg-fetch": "../../common/Tests/External/whatwg-fetch.3.6.2"
}
});
// Load qunit here instead of with tests, otherwise will not work
modules.add("qunit");
loadFetchModule(modules, "whatwg-fetch");
loadCommonModules(modules, function() {
var testModule = modules.add("Tests/Unit/src/applicationinsights-osplugin.tests", "./Unit/dist/applicationinsights-osplugin.tests.js")
testModule.run = function (tests) {
console && console.log("Starting tests");
QUnit.start();
tests.runTests();
};
modules.run();
});
</script>
</head>
<body>
<div id="qunit"></div>
<div id="qunit-fixture"></div>
<div id="error-message"></div>
</body>
</html>