UNPKG

siesta-lite

Version:

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

76 lines (63 loc) 2.3 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 */ <span id='Siesta-Recorder-ExtJS'>/** </span>@class Siesta.Recorder.ExtJS Ext JS specific recorder implementation */ Class(&#39;Siesta.Recorder.ExtJS&#39;, { isa : Siesta.Recorder.Recorder, has : { extractorClass : Siesta.Recorder.TargetExtractor.ExtJS, moveCursorToSelectors : function () { return [ // Can&#39;t access child menu items without first visiting each menu item hovered &#39;.x-menu-item:not(.x-menu-item-separator)&#39;, // Column menu / resizing access &#39;.x-column-header&#39; ]; } }, methods : { addMoveCursorAction : function (event) { // If something is being dragged and we&#39;re hovering over the drag target, choose moveCursorTo with coordinate if (event.target &amp;&amp; this.closest(event.target, &#39;[class*=-dd-drag-proxy]&#39;, 10)) { this.addAction({ action : &#39;moveCursorTo&#39;, target : [{ type : &#39;xy&#39;, target : [ event.x, event.y ] }], sourceEvent : event, options : event.options }) } else { this.SUPERARG(arguments) } } } // eof methods }); </pre> </body> </html>