UNPKG

siesta-lite

Version:

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

68 lines (53 loc) 2.04 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.QueryFinder.Identifier&#39;, { does : Siesta.Util.Role.CanMergeArrayAttributeFromClassHierarchy, has : { finder : { required : true }, priority : 100 }, methods : { <span id='global-method-identify'> /** </span> Should returns a single &quot;segment&quot; or an array of segments, or null A segment: - a string with query - will be assigned default weight of 1000 - an object: { query : String, weight : Number, // optional, default is 1000 // indicates that segment should be the 1st one in the query component leading : Boolean, // optional // indicates that query component with this segment should be combined // with previous one using &#39;&gt;&#39; child : Boolean } */ identify : function (target, root, maze) { return [] } } }); </pre> </body> </html>