forked from TobiasOetzel/mdSkeleton
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtest.html
54 lines (45 loc) · 1.45 KB
/
test.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta charset="UTF-8">
<title>MD Template</title>
<script src="node_modules/babel-core/external-helpers.js"></script>
<script id="sap-ui-bootstrap"
src="/resources/sap-ui-core.js"
data-sap-ui-libs="sap.m"
data-sap-ui-theme="sap_bluecrystal"
data-sap-ui-preload="async"
data-sap-ui-compatVersion="edge"
data-sap-ui-bindingSyntax="complex"
data-sap-ui-resourceroots='{"sap.ui.demo.mdtemplate": "./dist", "sap.ui.demo.mdtemplate.service": "./test/service/"}'
data-sap-ui-frameOptions='allow'> // NON-SECURE setting for testing environment
</script>
<script>
// Phantom js does not have a function.bind implementation so we are using a polyfill
if (!Function.prototype.bind) {
Function.prototype.bind = function(oThis) {
return jQuery.proxy(this, oThis);
};
}
sap.ui.getCore().attachInit(function () {
sap.ui.require([
"sap/ui/demo/mdtemplate/service/server",
"sap/m/Shell",
"sap/ui/core/ComponentContainer"
], function (server, Shell, ComponentContainer) {
// set up test service for local testing
server.init();
// initialize the UI component
new Shell({
app: new ComponentContainer({
height : "100%",
name : "sap.ui.demo.mdtemplate"
})
}).placeAt("content");
});
});
</script>
</head>
<body class="sapUiBody" id="content"></body>
</html>