Search found 9 matches

You were right. I can test if the globalEvent has been set. Instead of : // I know that this is the only listener on barcodescanned let l0 = Ext.globalEvents.events['barcodescanned'].listeners[0]; t.isCalled("fireFn", l0, "Checking if method 'onBarcodeScanned' has been called"); ...
I found the problem: class onBarcodeScanned => gets created by isCalled prototype onBarcodeScanned => original Function, which was set to Ext.on('barcodeScanned', ...) Looks like the Ext.on saves the original method and isCalled uses the newly created one. Any ideas, what I can do to figure out if t...

I believe it is not about my app.

Running Ext.fireEvent('barcodeScanned') works fine.
I am getting a console.log from the onBarcodeScanned, but it is not captured by isCalled.

Any other ideas?

I am trying to figure out if an event has been received. I know that the event is catched and runs MyApp.util.Barcode.onBarcodeScanned . Here is my code: t.isCalled( "onBarcodeScanned", MyApp.util.Barcode, "Checking if method 'onBarcodeScanned' has been called" ); // this works M...
Because the setup in this tutorial did not work right away for us and we spent tons of time to get this working with Jenkins, I would like to share our setup. We were confronted with two problems in our task: 1. We had to use a shell script 2. In our case the PhantomJS command had some issues when w...
Hi there, I am using phantomjs (browserless) for my tests and I am trying to tap/click a button: { tap: '>> #btnLogin' }, { waitFor: 'CQ', args: 'nextView' }, After that I wait for the next view to show , but nothing happends. If I run the same test in the browser all shows fine. What I found is: [D...
I know, that's what i am doing at the moment. But after loading the new page i need to do all calls with window at the beginning. E.g. StartTest(function (t) { localStorage.clear(); t.is(localStorage.length, 0, 'LocalStorage is cleared'); t.diag("Load App"); window.location.href = "in...
Hi there, I am writing a new test for localStorage testing. To do so, I need to swipe the localstorage set it via Siesta and afterwards run the app. I did not find another way than to use window.location.href and waitForPageLoad. But after loading the page I need to reference everything via window (...
I tested Sencha Touch and Siesta without building one large myApp.js All works fine. Now I build the /testing/myApp.js and /production/myApp.js and I can't even get the 010_sanity.t.js File to run correct. this is my preload: preload : [ isProd ? '../production/resources/css/phone.css' : '../testing...