Hi,
I'm having problem getting the controller and view to communicate within the test suite.
Let's say I have a buttonClick() function in my controller:
buttonClick: function() {
//change the panel color to red
}
how do I "spy on" or test the event handler to see if the button is loaded, or when the button is clicked, the panel color defined in the view is changed to red???
I've tried:
var mController = Ext.create('AM.controller.myController');
but it would throw a script error.
Thank you!
Support Forum
Hello,
Try to debug the error you have - ie, check the source of exception, put the breakpoints and examine the state of the application. Also see /examples/025-extjs-mvc for a sample setup for testing MVC application.
Try to debug the error you have - ie, check the source of exception, put the breakpoints and examine the state of the application. Also see /examples/025-extjs-mvc for a sample setup for testing MVC application.
Read the API documentation