outlookemailmicrosoft-teamsdiscordmessengercustom-servicesmacoslinuxwindowsinboxwhatsappicloudtweetdeckhipchattelegramhangoutsslackgmailskypefacebook-workplace
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1007 B
37 lines
1007 B
SenchaTestRunner.bindings = { |
|
|
|
setCurrentScript : function(script) { |
|
jasmine.setCurrentScript(script); |
|
}, |
|
|
|
waitUntilPageIsReady : function(callbackFunction) { |
|
var args = arguments; |
|
if (typeof Ext !== 'undefined') { |
|
Ext.require('*'); |
|
Ext.onReady(function() { |
|
window.__pageIsReady = true; |
|
}); |
|
} else { |
|
window.__pageIsReady = true; |
|
} |
|
}, |
|
|
|
startTestRunner : function(jsonOptions, contextDirectoryMapping) { |
|
// jasmine.contextMapping = JSON.parse(contextDirectoryMapping); |
|
jasmine.setOptions(jsonOptions); |
|
jasmine.initDebug(); |
|
jasmine.getEnv().addReporter(new SenchaTestRunner.Reporter()); |
|
jasmine.getEnv().execute(); |
|
}, |
|
|
|
testsAreRunning : function() { |
|
return SenchaTestRunner.isRunning(); |
|
}, |
|
|
|
getTestResultsAsJson : function() { |
|
return JSON.stringify(SenchaTestRunner.results); |
|
} |
|
|
|
}; |
|
|
|
addGlobal('__pageIsReady');
|
|
|