UNPKG

siesta-lite

Version:

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

195 lines (176 loc) 9.6 kB
<!DOCTYPE html> <html> <head> <title>Siesta API documentation</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="X-UA-Compatible" content="chrome=1"> <link rel="shortcut icon" type="image/ico" href="favicon.ico" /> <link rel="stylesheet" href="resources/css/app-4689d2a5522dcd3c9e9923ca59c33f27.css" type="text/css" /> <link rel="stylesheet" href="styles-3eba09980fa05ead185cb17d9c0deb0f.css" type="text/css" /> <script type="text/javascript" src="extjs/ext-all.js"></script> <script type="text/javascript" src="data-81503138c6ae4b9444afd57e08e757e8.js"></script> <script type="text/javascript" src="app-0c945a27f43452df695771ddb60b3d14.js"></script> <link rel='stylesheet' href='doc-resources/css/bryntum.css' type='text/css' /> <script type="text/javascript"> var replacer = function (div) { var baseURL = 'http://docs.sencha.com/extjs/6.0.1-classic/'; div.innerHTML = div.innerHTML.replace(/(Ext\.\w+(?:\.\w+)*(?:#[\w-]+)?)/g, '<a href="' + baseURL + '$1.html" target="extdocs">$1</a>'); // jsduck adds "eOpts" param to all documented events with link to Ext.util.Observable.addListener // this regexp replaces such links to correct ones div.innerHTML = div.innerHTML.replace(/href="[^"]*Ext\.util\.Observable\.addListener.html"/g, 'href="' + baseURL + 'Ext.util.Observable.html#method-addListener"'); div.innerHTML = div.innerHTML.replace(/href="[^"]*Ext\.Ajax\.request.html"/g, 'href="' + baseURL + 'Ext.Ajax.html#method-request"'); div.innerHTML = div.innerHTML.replace(/href="[^"]*Ext\.data\.field\.Field\.persist.html"/g, 'href="' + baseURL + 'Ext.data.field.Field.html#cfg-persist"'); div.innerHTML = div.innerHTML.replace(/href="[^"]*Ext\.data\.field\.Field\.critical.html"/g, 'href="' + baseURL + 'Ext.data.field.Field.html#cfg-critical"'); }; Ext.override(Docs.view.cls.Overview, { listeners : { 'afterload' : function () { Ext.each(this.el.query('div.title'), replacer); Ext.each(this.el.query('div.subclass'), replacer); Ext.each(this.el.query('div.dependency'), replacer); Ext.each(this.el.query('div.doc-contents'), replacer); Ext.each(this.el.query('div.long'), replacer); // cleanup useless source code links if (location.href.match(/^http(?:s)?:\/\/(?:www\.)?bryntum\.com/)) { Ext.each(this.el.query('a[href^=source/]'), function (a) { a.removeAttribute('href'); }); Ext.each(this.el.query('a.view-source'), function (a) { a.parentNode.removeChild(a); }); } } } }); // Override base tree class to provide better template for node Ext.override(Docs.view.DocTree, { initNodeLinks : function () { this.nodeTpl = new Ext.XTemplate('<a href="{url}" rel="{url}" class="{iconCls}">{text}</a>'); // In siesta doc parent nodes may also have separate doc, need to apply style accordingly this.parentNodeTpl = new Ext.XTemplate('<span class="{iconCls}">{text}</span>'); this.callParent(arguments); }, applyNodeTpl : function (record) { if (record.get('leaf')) { record.set('text', this.nodeTpl.apply({ text: record.get('text'), iconCls: record.get('iconCls'), url: record.raw.url })); } else { record.set('text', this.parentNodeTpl.apply({ text: record.get('text'), iconCls: record.get('iconCls') })); } record.commit(); } }); </script><link rel='stylesheet' href='doc-resources/css/siesta.css' type='text/css' /><link rel='stylesheet' href='doc-resources/css/welcome.css' type='text/css' /> </head> <body id="ext-body"> <div id="loading"><span class="title">Siesta API documentation</span><span class="logo"></span></div> <div id="header-content">Siesta API documentation</div> <div id='welcome-content' style='display:none'><div id="extjs-welcome"> <div class="content"> <header> <h5 class="logo"><a href="https://www.bryntum.com/products/siesta">Sencha</a></h5> </header> <section> <div class="auto_columns two"> <div class="column"> <h2>Welcome to <strong>Siesta</strong>!</h2> <p class="intro">Siesta is a stress-free JavaScript unit and UI testing tool.</p> <p class="intro">It is very easy to learn and as your test suite grows and your requirements becomes more complex Siesta still scales very well.</p> <p class="intro">It will dramatically increase your confidence in your codebase and improve your quality of sleep, we promise.</p> <p class="button-group"> <a href="#!/guide/getting_started_browser" class="button-link">Read the Getting Started Guide</a><br> <a href="https://www.bryntum.com/forum/viewforum.php?f=20" class="more-icon">Discuss on the forum</a> </p> </div> <div id="features" class="column"> <img src="doc-resources/images/welcome.png" class="pngfix" /> <p class="link"><a href="https://bryntum.com/products/siesta/" class="more-icon">Learn more on bryntum.com</a></p> <p class="link"><a href="#!/api" class="more-icon">API Docs</a></p> <p class="link"><a href="https://bryntum.com/products/siesta/changelog" class="more-icon">Release Notes</a></p> </div> </div> </section> </div> </div> </div> <div id='categories-content' style='display:none'> <div class='section'> <h1>Siesta</h1> <div class='left-column'> <h3>Test</h3> <ul class='links'> <li><a href="#!/api/Siesta.Test.ExtJS" rel="Siesta.Test.ExtJS" class="docClass">Siesta.Test.ExtJS</a></li> <li><a href="#!/api/Siesta.Test.jQuery" rel="Siesta.Test.jQuery" class="docClass">Siesta.Test.jQuery</a></li> <li><a href="#!/api/Siesta.Test.Browser" rel="Siesta.Test.Browser" class="docClass">Siesta.Test.Browser</a></li> <li><a href="#!/api/Siesta.Test" rel="Siesta.Test" class="docClass">Siesta.Test</a></li> </ul> </div> <div class='middle-column'> <h3>Harness</h3> <ul class='links'> <li><a href="#!/api/Siesta.Project.Browser.ExtJS" rel="Siesta.Project.Browser.ExtJS" class="docClass">Siesta.Project.Browser.ExtJS</a></li> <li><a href="#!/api/Siesta.Project.Browser" rel="Siesta.Project.Browser" class="docClass">Siesta.Project.Browser</a></li> <li><a href="#!/api/Siesta.Project.NodeJS" rel="Siesta.Project.NodeJS" class="docClass">Siesta.Project.NodeJS</a></li> <li><a href="#!/api/Siesta.Project" rel="Siesta.Project" class="docClass">Siesta.Project</a></li> </ul> </div> <div class='right-column'> </div> <div style='clear:both'></div> </div> </div> <div id='guides-content' style='display:none'> <h3>Siesta getting started</h3> <ul> <li><a href='#!/guide/getting_started_browser'>Browser environment</a></li> <li><a href='#!/guide/getting_started_nodejs'>Node environment</a></li> <li><a href='#!/guide/getting_started_sencha'>Sencha environment</a></li> </ul> <h3>Siesta with React</h3> <ul> <li><a href='#!/guide/react_testing_sample_application'>Testing a sample React application with Siesta</a></li> </ul> <h3>Siesta with Vue</h3> <ul> <li><a href='#!/guide/vue_testing_sample_application'>Testing a sample Vue application with Siesta</a></li> </ul> <h3>Siesta features</h3> <ul> <li><a href='#!/guide/event_recorder'>The event recorder</a></li> <li><a href='#!/guide/siesta_launchers'>Siesta launchers & reports</a></li> <li><a href='#!/guide/code_coverage'>Code coverage with Siesta</a></li> <li><a href='#!/guide/cross_page_testing'>Cross page testing</a></li> </ul> <h3>Cloud testing support</h3> <ul> <li><a href='#!/guide/browserstack_integration'>BrowserStack integration</a></li> <li><a href='#!/guide/saucelabs_integration'>Sauce Labs integration</a></li> <li><a href='#!/guide/lambdatest_integration'>LambdaTest integration</a></li> </ul> <h3>Siesta best practices</h3> <ul> <li><a href='#!/guide/testing_strategy'>General strategy for testing your application</a></li> <li><a href='#!/guide/extending_test_class'>Extending a test class with your own assertions and utility methods</a></li> <li><a href='#!/guide/structuring_test_suite'>Structuring the test suite</a></li> </ul> <h3>Siesta integration with Sencha frameworks</h3> <ul> <li><a href='#!/guide/sencha_testing_cmd_application'>Testing applications generated by Sencha Cmd</a></li> <li><a href='#!/guide/sencha_testing_sencha_touch_app'>Testing a Sencha Touch application. Implementing automatic login before every test</a></li> </ul> </div> <div id='footer-content' style='display: none'>Generated on Mon 04 Jul 2022 14:24:35 by <a href='https://github.com/senchalabs/jsduck'>JSDuck</a> 5.3.4.</div> <script type="text/javascript"> (function(){ var protocol = (document.location.protocol === "https:") ? "https:" : "http:"; document.write("<link href='"+protocol+"//fonts.googleapis.com/css?family=Exo' rel='stylesheet' type='text/css' />"); })(); </script> </body> </html>