UNPKG

siesta-lite

Version:

Stress-free JavaScript unit testing and functional testing tool, works in NodeJS and browsers

1 lines 8.64 kB
Ext.data.JsonP.Siesta_Project_Browser_ExtJSCore({"tagname":"class","name":"Siesta.Project.Browser.ExtJSCore","autodetected":{},"files":[{"filename":"ExtJSCore.js","href":"ExtJSCore3.html#Siesta-Project-Browser-ExtJSCore"}],"members":[{"name":"loaderPath","tagname":"cfg","owner":"Siesta.Project.Browser.ExtJSCore","id":"cfg-loaderPath","meta":{}},{"name":"requires","tagname":"cfg","owner":"Siesta.Project.Browser.ExtJSCore","id":"cfg-requires","meta":{}},{"name":"waitForExtComponentQueryReady","tagname":"cfg","owner":"Siesta.Project.Browser.ExtJSCore","id":"cfg-waitForExtComponentQueryReady","meta":{}},{"name":"getLoaderPathHook","tagname":"method","owner":"Siesta.Project.Browser.ExtJSCore","id":"method-getLoaderPathHook","meta":{}}],"alternateClassNames":[],"aliases":{},"id":"class-Siesta.Project.Browser.ExtJSCore","component":false,"superclasses":[],"subclasses":[],"mixedInto":["Siesta.Project.Browser.ExtJS","Siesta.Project.Browser.SenchaTouch"],"mixins":[],"parentMixins":[],"requires":[],"uses":[],"html":"<div><pre class=\"hierarchy\"><h4>Mixed into</h4><div class='dependency'><a href='#!/api/Siesta.Project.Browser.ExtJS' rel='Siesta.Project.Browser.ExtJS' class='docClass'>Siesta.Project.Browser.ExtJS</a></div><div class='dependency'><a href='#!/api/Siesta.Project.Browser.SenchaTouch' rel='Siesta.Project.Browser.SenchaTouch' class='docClass'>Siesta.Project.Browser.SenchaTouch</a></div><h4>Files</h4><div class='dependency'><a href='source/ExtJSCore3.html#Siesta-Project-Browser-ExtJSCore' target='_blank'>ExtJSCore.js</a></div></pre><div class='doc-contents'><p>This is a role (mixin), representing the shared functionality between Ext JS and SenchaTouch projects.</p>\n</div><div class='members'><div class='members-section'><div class='definedBy'>Defined By</div><h3 class='members-title icon-cfg'>Config options</h3><div class='subsection'><div id='cfg-loaderPath' class='member first-child not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Siesta.Project.Browser.ExtJSCore'>Siesta.Project.Browser.ExtJSCore</span><br/><a href='source/ExtJSCore3.html#Siesta-Project-Browser-ExtJSCore-cfg-loaderPath' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Siesta.Project.Browser.ExtJSCore-cfg-loaderPath' class='name expandable'>loaderPath</a> : Object<span class=\"signature\"></span></div><div class='description'><div class='short'>The path used to configure the Ext.Loader 'paths' config to resolve JS namespaces to file paths, for dynamic loading ...</div><div class='long'><p>The path used to configure the Ext.Loader 'paths' config to resolve JS namespaces to file paths, for dynamic loading of Ext JS classes.\nFor more information, please see the Ext docs: http://docs.sencha.com/extjs/apidocs/#!/api/Ext.Loader-cfg-paths</p>\n\n<p>See also <a href=\"#!/api/Siesta.Project.Browser.ExtJSCore-cfg-requires\" rel=\"Siesta.Project.Browser.ExtJSCore-cfg-requires\" class=\"docClass\">requires</a>.</p>\n\n<p>By default the value will be set right before the test starts. If you need to set it earlier (during preloading phase),\nuse <a href=\"#!/api/Siesta.Project.Browser.ExtJSCore-method-getLoaderPathHook\" rel=\"Siesta.Project.Browser.ExtJSCore-method-getLoaderPathHook\" class=\"docClass\">getLoaderPathHook</a> method.</p>\n\n<p>This option can be also specified in the test file descriptor.</p>\n\n<p><strong>Note</strong>, that the value of this config will not be inherited from the parent tests group, if test has <a href=\"#!/api/Siesta.Project.Browser-cfg-pageUrl\" rel=\"Siesta.Project.Browser-cfg-pageUrl\" class=\"docClass\">Siesta.Project.Browser.pageUrl</a> option set.</p>\n</div></div></div><div id='cfg-requires' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Siesta.Project.Browser.ExtJSCore'>Siesta.Project.Browser.ExtJSCore</span><br/><a href='source/ExtJSCore3.html#Siesta-Project-Browser-ExtJSCore-cfg-requires' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Siesta.Project.Browser.ExtJSCore-cfg-requires' class='name expandable'>requires</a> : Array[String]<span class=\"signature\"></span></div><div class='description'><div class='short'>The array of class names, to be dynamically loaded with Ext.require call, before the test starts. ...</div><div class='long'><p>The array of class names, to be dynamically loaded with <code>Ext.require</code> call, before the test starts. Naturally, requires\nthe correct value for the <a href=\"#!/api/Siesta.Project.Browser.ExtJSCore-cfg-loaderPath\" rel=\"Siesta.Project.Browser.ExtJSCore-cfg-loaderPath\" class=\"docClass\">loaderPath</a> to be set.</p>\n\n<p>This option can be also specified in the test file descriptor.</p>\n</div></div></div><div id='cfg-waitForExtComponentQueryReady' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Siesta.Project.Browser.ExtJSCore'>Siesta.Project.Browser.ExtJSCore</span><br/><a href='source/ExtJSCore3.html#Siesta-Project-Browser-ExtJSCore-cfg-waitForExtComponentQueryReady' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Siesta.Project.Browser.ExtJSCore-cfg-waitForExtComponentQueryReady' class='name expandable'>waitForExtComponentQueryReady</a> : Boolean<span class=\"signature\"></span></div><div class='description'><div class='short'>Setting this configuration option to \"true\" will cause Siesta to wait until the Ext.ComponentQuery class is loaded on...</div><div class='long'><p>Setting this configuration option to \"true\" will cause Siesta to wait until the <code>Ext.ComponentQuery</code> class is loaded on the page,\nbefore starting the test.</p>\n\n<p>This option can (and probably should) be also specified in the test file descriptor.</p>\n<p>Defaults to: <code>true</code></p></div></div></div></div></div><div class='members-section'><div class='definedBy'>Defined By</div><h3 class='members-title icon-method'>Methods</h3><div class='subsection'><div id='method-getLoaderPathHook' class='member first-child not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Siesta.Project.Browser.ExtJSCore'>Siesta.Project.Browser.ExtJSCore</span><br/><a href='source/ExtJSCore3.html#Siesta-Project-Browser-ExtJSCore-method-getLoaderPathHook' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Siesta.Project.Browser.ExtJSCore-method-getLoaderPathHook' class='name expandable'>getLoaderPathHook</a>( <span class='pre'></span> ) : String<span class=\"signature\"></span></div><div class='description'><div class='short'>Returns a string presentation of the ExtJS/SenchaTouch hook for setting \"Ext.Loader\" paths,\nsuitable to be used in th...</div><div class='long'><p>Returns a string presentation of the ExtJS/SenchaTouch hook for setting \"Ext.Loader\" paths,\nsuitable to be used in the test's <a href=\"#!/api/Siesta.Project-cfg-preload\" rel=\"Siesta.Project-cfg-preload\" class=\"docClass\">preloads</a>.\nThis will allow you to install the hook at the earliest possible point,\nright after preloading Ext and before \"requiring\" any classes.</p>\n\n<p>The value for the paths should be provided in the <a href=\"#!/api/Siesta.Project.Browser.ExtJSCore-cfg-loaderPath\" rel=\"Siesta.Project.Browser.ExtJSCore-cfg-loaderPath\" class=\"docClass\">loaderPath</a> config.\nThe inheritance of the value from groups is supported as usually, except the tests with\n<a href=\"#!/api/Siesta.Project.Browser-cfg-pageUrl\" rel=\"Siesta.Project.Browser-cfg-pageUrl\" class=\"docClass\">Siesta.Project.Browser.pageUrl</a> option set.</p>\n\n<p>Typical usage will be:</p>\n\n<pre><code>var project = new <a href=\"#!/api/Siesta.Project.Browser.ExtJS\" rel=\"Siesta.Project.Browser.ExtJS\" class=\"docClass\">Siesta.Project.Browser.ExtJS</a>();\n\nproject.configure({\n loaderPath : { 'My' : 'js', 'My.Namespace' : 'js/somepath' },\n\n preload : [\n 'http://cdn.sencha.io/ext-4.2.0-gpl/ext-all.js',\n {\n // inject the loader paths right after ExtJS and before the application file\n text : project.getLoaderPathHook()\n },\n 'app.js'\n ]\n});\n</code></pre>\n<h3 class='pa'>Returns</h3><ul><li><span class='pre'>String</span><div class='sub-desc'>\n</div></li></ul></div></div></div></div></div></div></div>","meta":{}});