UNPKG

siesta-lite

Version:

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

87 lines (72 loc) 3.28 kB
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>The source code</title> <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" /> <script type="text/javascript" src="../resources/prettify/prettify.js"></script> <style type="text/css"> .highlight { display: block; background-color: #ddd; } </style> <script type="text/javascript"> function highlight() { document.getElementById(location.hash.replace(/#/, "")).className = "highlight"; } </script> </head> <body onload="prettyPrint(); highlight();"> <pre class="prettyprint lang-js">/* Siesta 5.6.1 Copyright(c) 2009-2022 Bryntum AB https://bryntum.com/contact https://bryntum.com/products/siesta/license */ Class(&#39;Ariadne.ExtJSComponentQueryFinder.Identifier.Id&#39;, { isa : Ariadne.QueryFinder.Identifier, does : [ Ariadne.ExtJSComponentQueryFinder.Role.ExtJSComponentHelper, Ariadne.ExtJSDomQueryFinder.Role.ExtJSHelper ], methods : { identify : function (target, root, maze) { var id = target.id if (id &amp;&amp; !this.ignoreComponentId(id, target, maze.finder.Ext)) { // the 1st encountered id will be assigned with weight -100000 in case of `enableMandatoryId` // it should be guaranteed that this id will belong to lowest parent with id (currently this holds) var weight = maze.encounteredMandatoryId || !this.finder.enableMandatoryId ? 1000 : -100000 maze.encounteredMandatoryId = true return { query : &#39;#&#39; + this.escapeCQSelector(id), weight : weight, isId : true } } else return null }, ignoreComponentId : function (id, comp, Ext) { return this.componentHasAutoGeneratedId(comp, Ext) } } }); // old ignore xtypes and classnames // // Table view is always in panel which seems more &#39;relevant&#39; // // headerContainer is rarely useful (remember though, a grid column is also a headercontainer) // ignoreCQSelectors : function () { // return [ // &#39;viewport&#39;, // Adds no relevance, like matching BODY in a dom query // &#39;tableview&#39;, // Always sits in a grid panel // &#39;treeview&#39;, // Always sits in a tree panel // &#39;gridview&#39;, // Always sits in a grid panel // &#39;surface&#39;, // &quot;belongs&quot; to a chart but does not respond to CQ: https://www.sencha.com/forum/showthread.php?308911-Querying-chart-gt-surface-doesn-t-work&amp;p=1128263#post1128263 // &#39;&gt;&gt;headercontainer[isColumn=undefined]&#39; // ]; // }, // // ignoreExtClassNamesRe : function () { // return [ // &#39;Ext\\.dd\\.StatusProxy&#39; // ].join(&#39;|&#39;); // } </pre> </body> </html>