]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | Ext.Loader.setConfig({enabled: true});\r |
2 | Ext.require([\r | |
3 | '*',\r | |
4 | 'Ext.ux.ajax.JsonSimlet',\r | |
5 | 'Ext.ux.ajax.XmlSimlet',\r | |
6 | 'Ext.ux.ajax.SimManager'\r | |
7 | ]);\r | |
8 | Ext.onReady(function () {\r | |
9 | // Errors thrown by XTemplate-generated code should not be caught; they should cause test failures\r | |
10 | Ext.XTemplate.prototype.strict = true;\r | |
11 | \r | |
12 | // In case some tests which access the Ext.EventObject are invoked before the first DOM event.\r | |
13 | Ext.EventObject = new Ext.event.Event({});\r | |
14 | \r | |
15 | // ensures the body begins absolutely empty (some browsers have a default text node)\r | |
16 | document.body.innerHTML = '';\r | |
17 | \r | |
18 | // The deferCallback method defers execution of a function until the next animation frame.\r | |
19 | // In unit tests, we do not want this, we need everything to execute synchronously.\r | |
20 | Ext.deferCallback = Ext.callback;\r | |
21 | \r | |
22 | // The gesture publisher uses requestAnimationFrame for all its handlers by default.\r | |
23 | // This can cause the timing of when gestures are fired to be different from that of\r | |
24 | // normal dom events (e.g. tap vs click). For consistency we turn off animationFrame\r | |
25 | // timing for all gestures during the test run.\r | |
26 | Ext.event.publisher.Gesture.instance.setAsync(false);\r | |
27 | \r | |
28 | // calling setCapture() can cause problem with emulated mouse events\r | |
29 | Ext.Element.prototype.setCapture = Ext.emptyFn;\r | |
30 | \r | |
31 | Ext.Loader.loadScripts({\r | |
32 | url: [\r | |
33 | "../../../../build/modern/theme-neptune/theme-neptune-debug.js",\r | |
34 | "cmd.js",\r | |
35 | "../../.sencha/test/json2.js",\r | |
36 | "../../.sencha/test/jasmine.js",\r | |
37 | "cmd-jasmine.js",\r | |
38 | "../resources/init.js",\r | |
39 | "../../../../packages/core/test/resources/helpers.js",\r | |
40 | "../bootstrap-specs.js"\r | |
41 | ]\r | |
42 | });\r | |
43 | }); |