forked from forcedotcom/mobile-ui-elements
-
Notifications
You must be signed in to change notification settings - Fork 0
/
testsuite.html
36 lines (33 loc) · 1.19 KB
/
testsuite.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
<html>
<head>
<meta charset="utf-8">
<title>Mocha Tests</title>
<link rel="stylesheet" href="dependencies/mocha/mocha.css" />
<!-- Importing Google Polymer framework -->
<script src="dependencies/webcomponentsjs/webcomponents.min.js"></script>
<script src="dependencies/mobilesdk-shared/test/MockCordova.js"></script>
<script src="dependencies/mobilesdk-shared/test/MockSmartStore.js"></script>
<script src="dependencies/mobilesdk-shared/libs/cordova.force.js"></script>
<link rel="import" href="elements/mobile-ui-elements.html">
</head>
<body>
<div id="mocha"></div>
<script src="dependencies/should/should.js"></script>
<script src="dependencies/mocha/mocha.js"></script>
<script>mocha.setup('bdd')</script>
<script src="tests/force-sobject.test.js"></script>
<script src="tests/force-sobject-collection.test.js"></script>
<script src="tests/force-sobject-store.test.js"></script>
<script>
mocha.checkLeaks();
mocha.globals(['*']);
document.addEventListener('polymer-ready', function() {
SFDC.launch({
accessToken: 'mock_token',
instanceUrl: 'https://mock.salesforce.com'
});
mocha.run();
});
</script>
</body>
</html>