Thank you for the response Ruchira. On Tue, Jan 27, 2015 at 6:08 PM, Ruchira Wageesha <ruch...@wso2.com> wrote:
> Hi Himasha, > > Even though Jaggery test framework uses Jasmine internally, it is only for > testing backend Jaggery/JavaScript codes and not clientside codes. i.e. > jquery is used at clientside stuff and for that you should be able to > directly use Jasmine[1]. > > /Ruchira > > [1] https://github.com/jasmine/jasmine/wiki/A-simple-project > > On Wed, Jan 14, 2015 at 12:25 PM, Himasha Guruge <himas...@wso2.com> > wrote: > >> Hi All, >> >> I'm in the stage of testing an ES asset extension (chevron diagram >> editor) , under both publisher and store. In .specs files initially I need >> to use jquery related functions( create DOM elements) but then I'm given an >> error of $ undefined . >> >> With the help of Ayesha I downloaded the plugin jasmine-jquery and tried >> adding references of jquery and jasmine-jqeury in ES/modules/jaggery-test/ >> module.xml. It is still providing undefined error.I tried changing the >> order of references but still the same result.What is the jasmine version >> used in ES? According to [1] , it requires at least jasmine 2.0. >> >> Is there any other way of testing an ES extension that has jquery related >> methods? Any insight/sample for this would be helpful. >> >> >> [1] >> http://www.htmlgoodies.com/beyond/javascript/js-ref/testing-dom-events-using-jquery-and-jasmine-2.0.html >> <http://www.htmlgoodies.com/beyond/javascript/js-ref/testing-dom-events-using-jquery-and-jasmine-2.0.html> >> >> Thanks & Regards, >> >> Himasha Guruge >> *Software Engineer* >> WS*O2* *Inc.* >> Mobile: +94 777459299 >> himas...@wso2.com >> > > > > -- > > *Ruchira Wageesha**Associate Technical Lead* > *WSO2 Inc. - lean . enterprise . middleware | wso2.com <http://wso2.com>* > > *email: ruch...@wso2.com <ruch...@wso2.com>, blog: > ruchirawageesha.blogspot.com <http://ruchirawageesha.blogspot.com>, > mobile: +94 77 5493444 <%2B94%2077%205493444>* > -- Himasha Guruge *Software Engineer* WS*O2* *Inc.* Mobile: +94 777459299 himas...@wso2.com
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev