This repository has been archived by the owner on Oct 13, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
app-test.js
52 lines (43 loc) · 1.58 KB
/
app-test.js
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
/*global Ext, log4javascript, window, com, jasmine*/
//exclude these from jslint globals checker
Ext.require('Ext.app.Application');
var Application = null,
user = 'jenkinsatouchuigpl',
password = 'Jenkins1';
Ext.onReady(function () {
//Ext.Loader.setConfig({disableCaching: false});
Application = Ext.create('Ext.app.Application', {
name: 'ACMobileClient',
requires: [
'com.graudata.Logging',
'ACMobileClient.utils.ACUtils'
],
launch: function () {
var l = log4javascript.getLogger(),
a = new log4javascript.BrowserConsoleAppender();
a.setLayout(new log4javascript.PatternLayout('%d{HH:mm:ss,SSS} %-5p - %m{2}%n'));
l.addAppender(a);
l.setLevel(log4javascript.Level.TRACE);
window.log = l;
this.logAppender = a;
//include the tests in the test.html head
jasmine.getEnv().addReporter(new jasmine.HtmlReporter());
jasmine.getEnv().addReporter(new jasmine.JUnitXmlReporter('app-test/results/'));
jasmine.getEnv().execute();
Ext.define('MyGlobals', {
'singleton': true,
'app': this
});
Ext.define('ACUtils', {
requires: [
'ACMobileClient.utils.ACUtils'
],
singleton: true,
utils: null
});
utils = Ext.create('ACMobileClient.utils.ACUtils', {});
utils.init();
ACUtils.utils = utils;
}
});
});