]>
git.proxmox.com Git - extjs.git/blob - extjs/examples/classic/ticket-app/.sencha/test/jasmine-adapter.js
1 SenchaTestRunner
.bindings
= {
3 setCurrentScript : function(script
) {
4 jasmine
.setCurrentScript(script
);
7 waitUntilPageIsReady : function(callbackFunction
) {
9 if (typeof Ext
!== 'undefined') {
11 Ext
.onReady(function() {
12 window
.__pageIsReady
= true;
15 window
.__pageIsReady
= true;
19 startTestRunner : function(jsonOptions
, contextDirectoryMapping
) {
20 // jasmine.contextMapping = JSON.parse(contextDirectoryMapping);
21 jasmine
.setOptions(jsonOptions
);
23 jasmine
.getEnv().addReporter(new SenchaTestRunner
.Reporter());
24 jasmine
.getEnv().execute();
27 testsAreRunning : function() {
28 return SenchaTestRunner
.isRunning();
31 getTestResultsAsJson : function() {
32 return JSON
.stringify(SenchaTestRunner
.results
);
37 addGlobal('__pageIsReady');