UNPKG

siesta-lite

Version:

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

63 lines (54 loc) 2.05 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 */ Ext.define(&#39;Siesta.Recorder.UI.ActionIconColumn&#39;, { extend : &#39;Ext.grid.Column&#39;, alias : &#39;widget.recorderactioniconcolumn&#39;, dataIndex : &#39;action&#39;, width : 28, sortable : false, menuDisabled : true, align : &#39;center&#39;, tdCls : &#39;siesta-recorderpanel-action-icon-column&#39;, constructor : function () { this.scope = this; this.callParent(arguments); }, renderer : function (value, meta, record) { if (value &amp;&amp; record.get(&#39;leaf&#39;)) { var cls = this.getCssByActionType(value); return &#39;&lt;span class=&quot;action-icon fa &#39; + cls + &#39;&quot;&gt;&lt;/span&gt;&#39;; } }, getCssByActionType : function (type) { if (type.match(&#39;^wait&#39;)) return &#39;fa-clock-o&#39;; if (type.match(&#39;^move&#39;)) return &#39;fa-arrows&#39;; if (type === &#39;type&#39; || type === &#39;setValue&#39;) return &#39;fa-keyboard-o&#39;; if (type === &#39;screenshot&#39;) return &#39;fa-camera&#39;; if (type === &#39;fn&#39;) return &#39;fa-code&#39;; return &#39;fa-mouse-pointer&#39;; } }); </pre> </body> </html>