-
Notifications
You must be signed in to change notification settings - Fork 158
/
Copy pathtest-main.js
141 lines (135 loc) · 4.24 KB
/
test-main.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
var allTestFiles = [];
var TEST_REGEXP = /(spec|test)\.js$/i;
// Get a list of all the test files to include
Object.keys(window.__karma__.files).forEach(function (file) {
if (TEST_REGEXP.test(file)) {
// Normalize paths to RequireJS module names.
// If you require sub-dependencies of test files to be loaded as-is (requiring file extension)
// then do not normalize the paths
var normalizedTestModule = file.replace(/^\/base\/|\.js$/g, '');
allTestFiles.push(normalizedTestModule);
}
});
require.config({
// Karma serves files under /base, which is the basePath from your config file
baseUrl: '/base',
packages: [
{
name: '@syncfusion/ej2-base',
location: 'node_modules/@syncfusion/ej2-base/dist',
main: 'ej2-base.umd.min.js'
},
{
name: '@syncfusion/ej2-navigations',
location: 'node_modules/@syncfusion/ej2-navigations/dist',
main: 'ej2-navigations.umd.min.js'
},
{
name: '@syncfusion/ej2-pdf',
location: 'node_modules/@syncfusion/ej2-pdf/dist',
main: 'ej2-pdf.umd.min.js'
},
{
name: '@syncfusion/ej2-data',
location: 'node_modules/@syncfusion/ej2-data/dist',
main: 'ej2-data.umd.min.js'
},
{
name: '@syncfusion/ej2-inputs',
location: 'node_modules/@syncfusion/ej2-inputs/dist',
main: 'ej2-inputs.umd.min.js'
},
{
name: '@syncfusion/ej2-popups',
location: 'node_modules/@syncfusion/ej2-popups/dist',
main: 'ej2-popups.umd.min.js'
},
{
name: '@syncfusion/ej2-buttons',
location: 'node_modules/@syncfusion/ej2-buttons/dist',
main: 'ej2-buttons.umd.min.js'
},
{
name: '@syncfusion/ej2-lists',
location: 'node_modules/@syncfusion/ej2-lists/dist',
main: 'ej2-lists.umd.min.js'
},
{
name: '@syncfusion/ej2-dropdowns',
location: 'node_modules/@syncfusion/ej2-dropdowns/dist',
main: 'ej2-dropdowns.umd.min.js'
},
{
name: '@syncfusion/ej2-splitbuttons',
location: 'node_modules/@syncfusion/ej2-splitbuttons/dist',
main: 'ej2-splitbuttons.umd.min.js'
},
{
name: '@syncfusion/ej2-notifications',
location: 'node_modules/@syncfusion/ej2-notifications/dist',
main: 'ej2-notifications.umd.min.js'
},
{
name: '@syncfusion/ej2-drawings',
location: 'node_modules/@syncfusion/ej2-drawings/dist',
main: 'ej2-drawings.umd.min.js'
},
{
name: '@syncfusion/ej2-inplace-editor',
location: 'node_modules/@syncfusion/ej2-inplace-editor/dist',
main: 'ej2-inplace-editor.umd.min.js'
},
{
name: '@syncfusion/ej2-calendars',
location: 'node_modules/@syncfusion/ej2-calendars/dist',
main: 'ej2-calendars.umd.min.js'
},
{
name: '@syncfusion/ej2-richtexteditor',
location: 'node_modules/@syncfusion/ej2-richtexteditor/dist',
main: 'ej2-richtexteditor.umd.min.js'
},
{
name: '@syncfusion/ej2-filemanager',
location: 'node_modules/@syncfusion/ej2-filemanager/dist',
main: 'ej2-filemanager.umd.min.js'
},
{
name: '@syncfusion/ej2-layouts',
location: 'node_modules/@syncfusion/ej2-layouts/dist',
main: 'ej2-layouts.umd.min.js'
},
{
name: '@syncfusion/ej2-grids',
location: 'node_modules/@syncfusion/ej2-grids/dist',
main: 'ej2-grids.umd.min.js'
},
{
name: '@syncfusion/ej2-pdf-export',
location: 'node_modules/@syncfusion/ej2-pdf-export/dist',
main: 'ej2-pdf-export.umd.min.js'
},
{
name: '@syncfusion/ej2-excel-export',
location: 'node_modules/@syncfusion/ej2-excel-export/dist',
main: 'ej2-excel-export.umd.min.js'
},
{
name: '@syncfusion/ej2-compression',
location: 'node_modules/@syncfusion/ej2-compression/dist',
main: 'ej2-compression.umd.min.js'
},
{
name: '@syncfusion/ej2-file-utils',
location: 'node_modules/@syncfusion/ej2-file-utils/dist',
main: 'ej2-file-utils.umd.min.js'
}
// Include dependent packages
],
// dynamically load all test files
deps: allTestFiles,
// we have to kickoff jasmine, as it is asynchronous
callback: window.__karma__.start,
// number of seconds to wait before giving up on loading a script
waitSeconds: 30,
});