siesta-lite
Version:
Stress-free JavaScript unit testing and functional testing tool, works in NodeJS and browsers
76 lines (63 loc) • 2.3 kB
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('Siesta.Recorder.ExtJS', {
isa : Siesta.Recorder.Recorder,
has : {
extractorClass : Siesta.Recorder.TargetExtractor.ExtJS,
moveCursorToSelectors : function () {
return [
// Can't access child menu items without first visiting each menu item hovered
'.x-menu-item:not(.x-menu-item-separator)',
// Column menu / resizing access
'.x-column-header'
];
}
},
methods : {
addMoveCursorAction : function (event) {
// If something is being dragged and we're hovering over the drag target, choose moveCursorTo with coordinate
if (event.target && this.closest(event.target, '[class*=-dd-drag-proxy]', 10)) {
this.addAction({
action : 'moveCursorTo',
target : [{
type : 'xy',
target : [ event.x, event.y ]
}],
sourceEvent : event,
options : event.options
})
} else {
this.SUPERARG(arguments)
}
}
}
// eof methods
});
</pre>
</body>
</html>