tao-test/app/taoClientDiagnostic/views/js/test/tools/getPlatformInfo/test.html

44 lines
1.4 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Test - Get Platform Info</title>
<base href="../../../../../../tao/views/" />
<link rel="stylesheet" type="text/css" href="js/lib/qunit/qunit.css">
<script type="text/javascript" src="js/lib/qunit/qunit.js"></script>
<script type="text/javascript" src="js/lib/require.js"></script>
<script type="text/javascript" src="js/lib/qunit/qunit-parameterize.js"></script>
<script type="text/javascript">
//don't start the test now
QUnit.config.autostart = false;
//load the config
require(['/tao/ClientConfig/config'], function () {
define('core/request', () => {
let mock = () => response;
function request(options) {
return mock(options)
}
request.mock = fn => mock = fn;
return request;
});
//load the test
require(['taoClientDiagnostic/test/tools/getPlatformInfo/test'], function () {
//Tests loaded, run tests
QUnit.start();
});
});
</script>
</head>
<body>
<div id="qunit"></div>
<div id="qunit-fixture"></div>
</body>
</html>