MVC Unit Testing Guide no longer works with Ext 4.2.0
After upgrading to Ext 4.2.0, I find the MVC Unit Testing Guide to no longer work. Specifically I get the following error in Chrome:
Uncaught Ext.app.Application.constructor(): [Ext.app.Application] Name property is required
In the guide, app-test.js creates an Ext.app.Application object with a config object, and the name property is set. However looking at the Ext 4.2.0 source for app.Application, the constructor now tests for the name property to be set without calling Ext.apply() on the config object first.
I see that the Ext 4.1.1a version (which worked fine for me) of this constructor used Ext.apply() to apply the config object and then tests that the name property was set.
Please update Unit Testing Guide
It is very frustrating to spend some time trying to follow the guide only to discover that it no longer works. Either put a warning that it doesn't work with 4.2+, or preferably update it.Thank you
Working Demos for Unit Testing ExtJS using Karma, Jasmine 1.0/2.0 and ExtJS 4.x
I've written a few demos on unit testing ExtJs using Jasmine and Karma.. Mostly dealing with the asynchronous issues of either Stores and pure Ajax calls. You can check it out on GitHub at: https://github.com/cgauthier/karma_jasmine_2_extjs4 for Jasmine 2.0 and https://github.com/cgauthier/karma_jasmine_1_extjs4 for Jasmine 1.0.