Sample Extjs5 App for Unit testing with Jasmine and Karma-runner -


I am new to excarges 5 and am trying to run jasmine unit test cases with a karma-runner. Although I am fully able to apply Ext4.2 but this process is not working for Extras 5.

I've goggle it but no useful link was found

if someone is already code executed for the ex 5 app please share.

Any help is highly appreciated.

Thanksgiving

This is the trick that requires the necessary exogues classes before to properly load. Make sure that you include the following in your karma.conf.js

  // We need to add an element with the 'App loading indicator' because [app.js] .launch ( ) Is expecting it and tries to remove it / Karma normally starts testing after all the files specified in 'Karma' normally. loaded up. // We only want to start after the application of Bootstrap of Sna Touch / EXJSE // 1. We override the temporary '__carm __loaded' function / 2. When the extension is created we can load the '__carm __loaded' function manually in kernel loaded function = window .__ karma __; Window .__ karma __. Loaded = function () {}; BootstrapExtJS (); // is not included in your version definition that is necessary to create this function to add anything and you need explicitly Ext.onReady (function () {window .__ karma __. Loaded = karmaLoadedFunction; window .__ karma __.loaded ();});  

Let me know that this works for you.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -