rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
endeffect: function(element) { new Effect.Opacity(element, {duration:0.2, from:0.7, to:1.0}); | endeffect: function(element) { var toOpacity = typeof element._opacity == 'number' ? element._opacity : 1.0 new Effect.Opacity(element, {duration:0.2, from:0.7, to:toOpacity}); | endeffect: function(element) { new Effect.Opacity(element, {duration:0.2, from:0.7, to:1.0}); }, |
new Effect.Opacity(element, {duration:0.2, from:0.7, to:toOpacity}); | new Effect.Opacity(element, {duration:0.2, from:0.7, to:toOpacity, queue: {scope:'_draggable', position:'end'}, afterFinish: function(){ Draggable._dragging[element] = false } }); | endeffect: function(element) { var toOpacity = typeof element._opacity == 'number' ? element._opacity : 1.0; new Effect.Opacity(element, {duration:0.2, from:0.7, to:toOpacity}); }, |
var toOpacity = typeof element._opacity == 'number' ? element._opacity : 1.0 | var toOpacity = typeof element._opacity == 'number' ? element._opacity : 1.0; | endeffect: function(element) { var toOpacity = typeof element._opacity == 'number' ? element._opacity : 1.0 new Effect.Opacity(element, {duration:0.2, from:0.7, to:toOpacity}); }, |
var nodes = document.getElementsByClassName(accentClass); for (var i = 0; i < nodes.length; i++) { debug.print(label + " node for accent-color = " + nodes[i].nodeName); nodes[i].style.backgroundColor = this.accentColor; | var frames = new Array(document, parent.frames[1].document ); var nodes; debug.print(label + "frames " + frames.length); for (var i = 0; i < frames.length; i++) { debug.print(label + "frame " + i + " = " + frames[i]); nodes = frames[i].getElementsByClassName(accentClass); for (var j = 0; j < nodes.length; j++) { debug.... | this.enforce = function() { var label = "PolicyClass.enforce: "; debug.print(label + "titleNode = " + this.titleNode) debug.print(label + "title = " + this.title) if (null != this.titleNode && null != this.title && "" != this.title) { // enforce ti... |
alert(data_str+", "+data_str.length); | function enforceLength(data_str, max_len){ alert(data_str+", "+data_str.length); if(data_str.length>max_len) { data_str = data_str.substring(0, max_len); } return data_str;} | |
!new GM_PrefManager().getValue("warnedWindowsEditor")) | !prefMan.getValue("warnedWindowsEditor")) | function ensureWindowsAssoc() { if (navigator.userAgent.match(/\bwindows\b/i) && !new GM_PrefManager().getValue("warnedWindowsEditor")) { alert("Hello! Looks like you're on Windows and that this is the your " + "first time editing a user script.\n\nTake this opportunity " + "to verify that... |
this.form = this.getForm(); | this.createForm(); | enterEditMode: function() { if (this.saving) return; if (this.editing) return; this.editing = true; this.onEnterEditMode(); if (this.options.externalControl) { Element.hide(this.options.externalControl); } Element.hide(this.element); this.form = this.getForm(); this.element.parentNode.... |
if (arguments.length > 1) { Event.stop(arguments[0]); } | enterEditMode: function() { if (this.saving) return; if (this.editing) return; this.editing = true; this.onEnterEditMode(); if (this.options.externalControl) { Element.hide(this.options.externalControl); } Element.hide(this.element); this.form = this.getForm(); this.element.parentNode.... | |
Field.scrollFreeActivate(this.editField); | if (!this.options.loadTextURL) Field.scrollFreeActivate(this.editField); | enterEditMode: function(evt) { if (this.saving) return; if (this.editing) return; this.editing = true; this.onEnterEditMode(); if (this.options.externalControl) { Element.hide(this.options.externalControl); } Element.hide(this.element); this.createForm(); this.element.parentNode.insert... |
enterEditMode: function() { | enterEditMode: function(evt) { | enterEditMode: function() { if (this.saving) return; if (this.editing) return; this.editing = true; this.onEnterEditMode(); if (this.options.externalControl) { Element.hide(this.options.externalControl); } Element.hide(this.element); this.createForm(); this.element.parentNode.insertBef... |
Field.focus(this.editField); | Field.scrollFreeActivate(this.editField); | enterEditMode: function() { if (this.saving) return; if (this.editing) return; this.editing = true; this.onEnterEditMode(); if (this.options.externalControl) { Element.hide(this.options.externalControl); } Element.hide(this.element); this.createForm(); this.element.parentNode.insertBef... |
if (arguments.length > 1) { Event.stop(arguments[0]); | if (evt) { Event.stop(evt); | enterEditMode: function() { if (this.saving) return; if (this.editing) return; this.editing = true; this.onEnterEditMode(); if (this.options.externalControl) { Element.hide(this.options.externalControl); } Element.hide(this.element); this.createForm(); this.element.parentNode.insertBef... |
return false; | enterEditMode: function() { if (this.saving) return; if (this.editing) return; this.editing = true; this.onEnterEditMode(); if (this.options.externalControl) { Element.hide(this.options.externalControl); } Element.hide(this.element); this.createForm(); this.element.parentNode.insertBef... | |
return e.innerHTML; | return e.firstChild.nodeValue; | entityDecode : function(s) { var e = document.createElement("div"); e.innerHTML = s; return e.innerHTML; }, |
var errors = this['errors']; var extra1 = this['extra']; | var errors = this.errors; var extra1 = this.extra; | function eob_as_array (extra2) { var errors = this['errors']; var extra1 = this['extra']; if (! extra2) extra2 = new Array(); var title = eob_get_val('as_array_title', extra2, extra1, 'Please correct the following items:'); /// if there are heading items then we may end up needing a prefix var has_headings; if (... |
for (var key in ret) ret[key] = header + ret[key].join(joiner) + footer; | for (var key in ret) { if (key == 'extend') continue; ret[key] = header + ret[key].join(joiner) + footer; } | function eob_as_hash (extra2) { var errors = this.errors; var extra1 = this.extra; if (! extra2) extra2 = new Array(); var suffix = eob_get_val('as_hash_suffix', extra2, extra1, '_error'); var joiner = eob_get_val('as_hash_join', extra2, extra1, '<br />'); /// now add to the hash var found = new Array(); var ret = ... |
function eob_as_hash () { var errors = this['errors']; var extra1 = this['extra']; | function eob_as_hash (extra2) { var errors = this.errors; var extra1 = this.extra; if (! extra2) extra2 = new Array(); | function eob_as_hash () { var errors = this['errors']; var extra1 = this['extra']; var suffix = eob_get_val('as_hash_suffix', extra2, extra1, '_error'); var joiner = eob_get_val('as_hash_join', extra2, extra1, '<br />'); /// now add to the hash var found = new A... |
if (ret[field]) ret[field] = new Array(); | if (! ret[field]) ret[field] = new Array(); | function eob_as_hash () { var errors = this['errors']; var extra1 = this['extra']; var suffix = eob_get_val('as_hash_suffix', extra2, extra1, '_error'); var joiner = eob_get_val('as_hash_join', extra2, extra1, '<br />'); /// now add to the hash var found = new A... |
field = field.replace(new RegExp('\\$(\\d+)','g'), function (N) { | field = field.replace(new RegExp('\\$(\\d+)','g'), function (all, N) { | function eob_as_hash (extra2) { var errors = this.errors; var extra1 = this.extra; if (! extra2) extra2 = new Array(); var suffix = eob_get_val('as_hash_suffix', extra2, extra1, '_error'); var joiner = eob_get_val('as_hash_join', extra2, extra1, '<br />'); /// n... |
var extra1 = this['extra']; | var extra1 = this.extra; | function eob_as_string (extra2) { var extra1 = this['extra']; if (! extra2) extra2 = new Array(); var joiner = eob_get_val('as_string_join', extra2, extra1, '\n'); var header = eob_get_val('as_string_header', extra2, extra1, ''); var footer = eob_get_val('as_string_footer', extra2, extra1, ''); return header + ... |
var extra = this['extra']; | var extra = this.extra; | function eob_get_error_text (err) { var extra = this['extra']; var field = err[0]; var type = err[1]; var field_val = err[2]; var ifs_match = err[3]; var m; var dig = (m = type.match('(_?\\d+)$')) ? m[1] : ''; var type_lc = type.toLowerCase(); /// allow for delegated field names - only used for de... |
field = field.replace(new RegExp('\\$(\\d+)','g'), function (N) { | field = field.replace(new RegExp('\\$(\\d+)','g'), function (all, N) { | function eob_get_error_text (err) { var extra = this.extra; var field = err[0]; var type = err[1]; var field_val = err[2]; var ifs_match = err[3]; var m; var dig = (m = type.match('(_?\\d+)$')) ? m[1] : ''; var type_lc = type.toLowerCase(); /// allow for delegated field names - only used for defau... |
name = name.replace(new RegExp('\\$(\\d+)','g'), function (N) { | name = name.replace(new RegExp('\\$(\\d+)','g'), function (all, N) { | function eob_get_error_text (err) { var extra = this.extra; var field = err[0]; var type = err[1]; var field_val = err[2]; var ifs_match = err[3]; var m; var dig = (m = type.match('(_?\\d+)$')) ? m[1] : ''; var type_lc = type.toLowerCase(); /// allow for delegated field names - only used for defau... |
ret = ret.replace(new RegExp('\\$(\\d+)','g'), function (N) { | ret = ret.replace(new RegExp('\\$(\\d+)','g'), function (all, N) { | function eob_get_error_text (err) { var extra = this.extra; var field = err[0]; var type = err[1]; var field_val = err[2]; var ifs_match = err[3]; var m; var dig = (m = type.match('(_?\\d+)$')) ? m[1] : ''; var type_lc = type.toLowerCase(); /// allow for delegated field names - only used for defau... |
name2 = name2.replace(new RegExp('\\$(\\d+)','g'), function (N) { | name2 = name2.replace(new RegExp('\\$(\\d+)','g'), function (all, N) { | function eob_get_error_text (err) { var extra = this.extra; var field = err[0]; var type = err[1]; var field_val = err[2]; var ifs_match = err[3]; var m; var dig = (m = type.match('(_?\\d+)$')) ? m[1] : ''; var type_lc = type.toLowerCase(); /// allow for delegated field names - only used for defau... |
graphics_box_displayed=0; | function erase_graphic_box(){ draw_line(topline+graphics_box_displayed-edit_top);} | |
this.log(message, "error"); | this.log("error", message); | error: function(message) { this.log(message, "error"); }, |
errorCallback = function (pb) { window.location = window.location.href.split('op=')[0] +'op=error'; | var errorCallback = function (pb) { var div = document.createElement('p'); div.className = 'error'; div.innerHTML = 'An unrecoverable error has occured. You can find the error message below. It is advised to copy it to the clipboard for reference. Please continue to the <a href="update.php?op=error">update summary</a>'... | errorCallback = function (pb) { window.location = window.location.href.split('op=')[0] +'op=error'; } |
function escapebackslashes( str ){ return str.replace(/\\/g, '\\\\'); } | function escapebackslashes( str ){ return str.replace(/\\[^']/g, '\\\\'); } | function escapebackslashes( str ){ return str.replace(/\\/g, '\\\\'); } |
function escapebackslashes( str ){ return str.replace(/\\[^']/g, '\\\\'); } | function escapebackslashes( str ){ return str.replace(/\\/g, '\\\\'); } | function escapebackslashes( str ){ return str.replace(/\\[^']/g, '\\\\'); } |
tmp = tmp.replace("&", "&"); tmp = tmp.replace("<", "<"); tmp = tmp.replace(">", ">"); tmp = tmp.replace(" ", " "); tmp = tmp.replace("\n", "<br />"); tmp = tmp.replace("\t", "  "); | tmp = tmp.replace(/&/g, "&"); tmp = tmp.replace(/</g, "<"); tmp = tmp.replace(/>/g, ">"); tmp = tmp.replace(/ /g, " "); tmp = tmp.replace(/\n/g, "<br />"); tmp = tmp.replace(/\t/g, "  "); | function escapeHTML(s) { var tmp = s; tmp = tmp.replace("&", "&"); tmp = tmp.replace("<", "<"); tmp = tmp.replace(">", ">"); tmp = tmp.replace(" ", " "); tmp = tmp.replace("\n", "<br />"); tmp = tmp.replace("\t", "  "); return tmp; } |
evalFunc : function(f, idx, a) { | evalFunc : function(f, idx, a, o) { | evalFunc : function(f, idx, a) { var s = '(', i; for (i=idx; i<a.length; i++) { s += 'a[' + i + ']'; if (i < a.length-1) s += ','; } s += ');'; return eval("f" + s); }, |
return eval("f" + s); | return o ? eval("o." + f + s) : eval("f" + s); | evalFunc : function(f, idx, a) { var s = '(', i; for (i=idx; i<a.length; i++) { s += 'a[' + i + ']'; if (i < a.length-1) s += ','; } s += ');'; return eval("f" + s); }, |
return eval(this.header('X-JSON')); | return eval('(' + this.header('X-JSON') + ')'); | evalJSON: function() { try { return eval(this.header('X-JSON')); } catch (e) {} }, |
return this.extractScripts().map(eval); | return this.extractScripts().map(function(script) { return eval(script) }); | evalScripts: function() { return this.extractScripts().map(eval); }, |
var scripts = this.transport.responseText.match(/<script[^>]*>([\s\S]*?)<\/script>/gi); | var scripts = this.response.text.match(/<script[^>]*>([\s\S]*?)<\/script>/gi); | evalScripts: function(){ var scripts = this.transport.responseText.match(/<script[^>]*>([\s\S]*?)<\/script>/gi); if (scripts) for (var i = 0; i < scripts.length; i++) eval(scripts[i]); } |
} | }, | event: function(eventName) { if(this.options[eventName + 'Internal']) this.options[eventName + 'Internal'](this); if(this.options[eventName]) this.options[eventName](this); } |
function eventHideMenu() { document.onclick = null; if (activeMenu != null) { obj = document.getElementById(activeMenu) obj.style.visibility = "hidden" } } | function eventHideMenu() { document.onclick = null; if (activeMenu != null) { obj = document.getElementById(activeMenu); obj.style.visibility = "hidden"; } } | function eventHideMenu() //hides nav menus and pop ups { document.onclick = null; if (activeMenu != null) { obj = document.getElementById(activeMenu) obj.style.visibility = "hidden" } } |
this.getHrefXPathLocator, | function EventManager(listener) { this.listener = listener; var log = new Log("EventManager"); var self = this; this.startForAllBrowsers = function() { forEachBrowser(new RegisterHandler()); } this.startForContentWindow = function(contentWindow) { callForWindow(new RegisterHandler(), contentWindow); } this.stopForAll... | |
new RegisterHandler().handleWindow(contentWindow); | callForWindow(new RegisterHandler(), contentWindow); | function EventManager(listener) { this.listener = listener; var log = new Log("EventManager"); var self = this; this.startForAllBrowsers = function() { forEachBrowser(new RegisterHandler()); } this.startForContentWindow = function(contentWindow) { new RegisterHandler().handleWindow(contentWindow); } this.stopForAllBr... |
handler.handleWindow(browsers[i].contentWindow); } } } | callForWindow(handler, browsers[i].contentWindow); } } } function callForWindow(handler, contentWindow) { var documents = getDocuments(contentWindow); for (var i = 0; i < documents.length; i++) { handler.handleDocument(documents[i], contentWindow); } } | function EventManager(listener) { this.listener = listener; var log = new Log("EventManager"); var self = this; this.startForAllBrowsers = function() { forEachBrowser(new RegisterHandler()); } this.startForContentWindow = function(contentWindow) { new RegisterHandler().handleWindow(contentWindow); } this.stopForAllBr... |
RegisterHandler.prototype.handleWindow = function(window) { if (!window._Selenium_IDE_listeners) { log.debug("registering event listeners"); | RegisterHandler.prototype.handleDocument = function(document, window) { if (!document._Selenium_IDE_listeners) { log.debug("registering event listeners for " + document); function findClickableElement(e, window) { var tagName = e.tagName.toLowerCase(); var type = e.type; if (e.hasAttribute("onclick") || e.hasAttribute... | function EventManager(listener) { this.listener = listener; var log = new Log("EventManager"); var self = this; this.startForAllBrowsers = function() { forEachBrowser(new RegisterHandler()); } this.startForContentWindow = function(contentWindow) { new RegisterHandler().handleWindow(contentWindow); } this.stopForAllBr... |
var tagName = event.target.tagName.toLowerCase(); var type = event.target.type; if (event.target.hasAttribute("onclick") || event.target.hasAttribute("href") || (tagName == "input" && (type == "submit" || type == "button" || type == "image" || type == "radio" || type == "checkbox"))) { self.listener.addCommand("click",... | var clickable = findClickableElement(event.target); if (clickable) { self.listener.addCommand("click", getLocator(window, clickable), '', window); } }, | function EventManager(listener) { this.listener = listener; var log = new Log("EventManager"); var self = this; this.startForAllBrowsers = function() { forEachBrowser(new RegisterHandler()); } this.startForContentWindow = function(contentWindow) { new RegisterHandler().handleWindow(contentWindow); } this.stopForAllBr... |
window.addEventListener(name, listeners[name], false); | document.addEventListener(name, listeners[name], false); | function EventManager(listener) { this.listener = listener; var log = new Log("EventManager"); var self = this; this.startForAllBrowsers = function() { forEachBrowser(new RegisterHandler()); } this.startForContentWindow = function(contentWindow) { new RegisterHandler().handleWindow(contentWindow); } this.stopForAllBr... |
window._Selenium_IDE_listeners = listeners; | document._Selenium_IDE_listeners = listeners; | function EventManager(listener) { this.listener = listener; var log = new Log("EventManager"); var self = this; this.startForAllBrowsers = function() { forEachBrowser(new RegisterHandler()); } this.startForContentWindow = function(contentWindow) { new RegisterHandler().handleWindow(contentWindow); } this.stopForAllBr... |
DeregisterHandler.prototype.doHandleDocument = function(doc) { if (doc.registeredSeleniumIDE) { doc.registeredSeleniumIDE = false; return true; } else { return false; } }; DeregisterHandler.prototype.handleWindow = function(window) { | DeregisterHandler.prototype.handleDocument = function(document, window) { | function EventManager(listener) { this.listener = listener; var log = new Log("EventManager"); var self = this; this.startForAllBrowsers = function() { forEachBrowser(new RegisterHandler()); } this.startForContentWindow = function(contentWindow) { new RegisterHandler().handleWindow(contentWindow); } this.stopForAllBr... |
if (window._Selenium_IDE_listeners) { | if (document._Selenium_IDE_listeners) { | function EventManager(listener) { this.listener = listener; var log = new Log("EventManager"); var self = this; this.startForAllBrowsers = function() { forEachBrowser(new RegisterHandler()); } this.startForContentWindow = function(contentWindow) { new RegisterHandler().handleWindow(contentWindow); } this.stopForAllBr... |
var listeners = window._Selenium_IDE_listeners; | var listeners = document._Selenium_IDE_listeners; | function EventManager(listener) { this.listener = listener; var log = new Log("EventManager"); var self = this; this.startForAllBrowsers = function() { forEachBrowser(new RegisterHandler()); } this.startForContentWindow = function(contentWindow) { new RegisterHandler().handleWindow(contentWindow); } this.stopForAllBr... |
window.removeEventListener(window, listeners[name], false); } delete window._Selenium_IDE_listeners; | document.removeEventListener(name, listeners[name], false); } delete document._Selenium_IDE_listeners; | function EventManager(listener) { this.listener = listener; var log = new Log("EventManager"); var self = this; this.startForAllBrowsers = function() { forEachBrowser(new RegisterHandler()); } this.startForContentWindow = function(contentWindow) { new RegisterHandler().handleWindow(contentWindow); } this.stopForAllBr... |
} catch (e) { log.warn("findElement error: " + e); | } catch (error) { log.warn("findElement error: " + error + ", node=" + e + ", locator=" + locator); | function EventManager(listener) { this.listener = listener; var log = new Log("EventManager"); var self = this; this.startForAllBrowsers = function() { forEachBrowser(new RegisterHandler()); } this.startForContentWindow = function(contentWindow) { forEachInput(new RegisterHandler(), contentWindow); } this.stopForAllB... |
for (i = 0; i < node.attributes.length; i++) { var att = node.attributes[i]; if (att.name == 'name' || att.name == 'value' || att.name == 'id' || att.name == 'style' || att.name == 'action' || att.name == 'onclick' || att.name == 'href') { conditions['@' + att.name] = att.value; | if (node.attributes) { for (i = 0; i < node.attributes.length; i++) { var att = node.attributes[i]; if (att.name == 'name' || att.name == 'value' || att.name == 'id' || att.name == 'style' || att.name == 'action' || att.name == 'onclick' || att.name == 'href') { conditions['@' + att.name] = att.value; } | function EventManager(listener) { this.listener = listener; var log = new Log("EventManager"); var self = this; this.startForAllBrowsers = function() { forEachBrowser(new RegisterHandler()); } this.startForContentWindow = function(contentWindow) { forEachInput(new RegisterHandler(), contentWindow); } this.stopForAllB... |
function eventShowMenu(e) { if (activeMenu != null) eventHideMenu() activeMenu = "menu"+this.id.substring(3,this.id.length) obj = document.getElementById(activeMenu) if (obj) obj.style.visibility = "visible" if (document.all) document.onclick = eventHideMenu; event.cancelBubble=true } | function eventShowMenu(e) { if (activeMenu != null) eventHideMenu(); activeMenu = "menu"+this.id.substring(3,this.id.length) obj = document.getElementById(activeMenu); if (obj != null) obj.style.visibility = "visible"; if (document.all) document.onclick = eventHideMenu; if (window.event != null) window.event.cancelBubb... | function eventShowMenu(e) //turns on the display for nav menus { if (activeMenu != null) eventHideMenu() activeMenu = "menu"+this.id.substring(3,this.id.length) obj = document.getElementById(activeMenu) if (obj) obj.style.visibility = "visible" if (document.all) document... |
willExecuteStatement(sourceId, line); | updateFunctionStack(); jumpToLine(sourceId, line); | function exceptionWasRaised(sourceId, line){ pause(); willExecuteStatement(sourceId, line);} |
tinyMCE.importPluginLanguagePack('advhr','en,tr,de,sv,zh_cn,cs,fa,fr_ca,fr,pl,pt_br,nl,da,he,nb,hu,ru,ru_KOI8-R,ru_UTF-8,nn,fi,es,cy,is,zh_tw,zh_tw_utf8,sk');var TinyMCE_AdvancedHRPlugin={getInfo:function(){return{longname:'Advanced HR',author:'Moxiecode Systems',authorurl:'http: | tinyMCE.importPluginLanguagePack('advhr');var TinyMCE_AdvancedHRPlugin={getInfo:function(){return{longname:'Advanced HR',author:'Moxiecode Systems AB',authorurl:'http: | tinyMCE.importPluginLanguagePack('advhr','en,tr,de,sv,zh_cn,cs,fa,fr_ca,fr,pl,pt_br,nl,da,he,nb,hu,ru,ru_KOI8-R,ru_UTF-8,nn,fi,es,cy,is,zh_tw,zh_tw_utf8,sk');var TinyMCE_AdvancedHRPlugin={getInfo:function(){return{longname:'Advanced HR',author:'Moxiecode Systems',authorurl:'http://tinymce.moxiecode.com',infourl:'http:/... |
case "mceForeColor": var template = new Array(); var elm = tinyMCE.selectedInstance.getFocusElement(); var inputColor = tinyMCE.getAttrib(elm, "color"); if (inputColor == '') inputColor = elm.style.color; if (!inputColor) inputColor = "#000000"; template['file'] = 'color_picker.htm'; template['width'] = 220; templat... | case "forecolor": var fcp = new TinyMCE_Layer(editor_id + '_fcPreview', false), p, img, elm; TinyMCE_AdvancedTheme._hideMenus(editor_id); if (!fcp.exists()) { fcp.create('div', 'mceColorPreview', document.getElementById(editor_id + '_toolbar')); elm = fcp.getElement(); elm._editor_id = editor_id; elm._command = "fore... | execCommand : function(editor_id, element, command, user_interface, value) { switch (command) { case "mceLink": var inst = tinyMCE.getInstanceById(editor_id); var doc = inst.getDoc(); var selectedText = ""; if (tinyMCE.isMSIE) { var rng = doc.selection.createRange(); selectedText = rng.text; ... |
case "mceBackColor": var template = new Array(); var elm = tinyMCE.selectedInstance.getFocusElement(); var inputColor = elm.style.backgroundColor; if (!inputColor) inputColor = "#000000"; template['file'] = 'color_picker.htm'; template['width'] = 220; template['height'] = 190; template['width'] += tinyMCE.getLang('l... | case "HiliteColor": var bcp = new TinyMCE_Layer(editor_id + '_bcPreview', false), p, img; TinyMCE_AdvancedTheme._hideMenus(editor_id); if (!bcp.exists()) { bcp.create('div', 'mceColorPreview', document.getElementById(editor_id + '_toolbar')); elm = bcp.getElement(); elm._editor_id = editor_id; elm._command = "HiliteC... | execCommand : function(editor_id, element, command, user_interface, value) { switch (command) { case "mceLink": var inst = tinyMCE.getInstanceById(editor_id); var doc = inst.getDoc(); var selectedText = ""; if (tinyMCE.isMSIE) { var rng = doc.selection.createRange(); selectedText = rng.text; ... |
if (tinyMCE.getParam('fullscreen_is_enabled')) { window.opener.tinyMCE.execInstanceCommand(tinyMCE.getParam('fullscreen_editor_id'), 'mceSetContent', false, tinyMCE.getContent(editor_id)); top.close(); } else { tinyMCE.setWindowArg('editor_id', editor_id); var win = window.open(tinyMCE.baseURL + "/plugins/fullscreen/... | this._toggleFullscreen(tinyMCE.getInstanceById(editor_id)); | execCommand : function(editor_id, element, command, user_interface, value) { // Handle commands switch (command) { case "mceFullScreen": if (tinyMCE.getParam('fullscreen_is_enabled')) { // In fullscreen mode window.opener.tinyMCE.execInstanceCommand(tinyMCE.getParam('fullscreen_editor_id'), 'mceSetConte... |
tinyMCE.importPluginLanguagePack('fullscreen','en,tr,sv,cs,fr_ca,zh_cn,da,he,nb,de,hu,ru,ru_KOI8-R,ru_UTF-8,nn,es,cy,is,pl,nl,fr,pt_br');var TinyMCE_FullScreenPlugin={getInfo:function(){return{longname:'Fullscreen',author:'Moxiecode Systems',authorurl:'http: | tinyMCE.importPluginLanguagePack('fullscreen');var TinyMCE_FullScreenPlugin={getInfo:function(){return{longname:'Fullscreen',author:'Moxiecode Systems AB',authorurl:'http: | tinyMCE.importPluginLanguagePack('fullscreen','en,tr,sv,cs,fr_ca,zh_cn,da,he,nb,de,hu,ru,ru_KOI8-R,ru_UTF-8,nn,es,cy,is,pl,nl,fr,pt_br');var TinyMCE_FullScreenPlugin={getInfo:function(){return{longname:'Fullscreen',author:'Moxiecode Systems',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com... |
var TinyMCE_ZoomPlugin={getInfo:function(){return{longname:'Zoom',author:'Moxiecode Systems',authorurl:'http: | var TinyMCE_ZoomPlugin={getInfo:function(){return{longname:'Zoom',author:'Moxiecode Systems AB',authorurl:'http: | var TinyMCE_ZoomPlugin={getInfo:function(){return{longname:'Zoom',author:'Moxiecode Systems',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/tinymce/docs/plugin_zoom.html',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion};},getControlHTML:function(control_name){if(!tinyMCE.isMSIE||ti... |
tinyMCE.importPluginLanguagePack('save','en,tr,sv,zh_cn,cs,fa,fr_ca,fr,de,pl,pt_br,nl,he,nb,hu,ru,ru_KOI8-R,ru_UTF-8,nn,fi,da,es,cy,is,zh_tw,zh_tw_utf8,sk');var TinyMCE_SavePlugin={getInfo:function(){return{longname:'Save',author:'Moxiecode Systems',authorurl:'http: | tinyMCE.importPluginLanguagePack('save');var TinyMCE_SavePlugin={getInfo:function(){return{longname:'Save',author:'Moxiecode Systems AB',authorurl:'http: | tinyMCE.importPluginLanguagePack('save','en,tr,sv,zh_cn,cs,fa,fr_ca,fr,de,pl,pt_br,nl,he,nb,hu,ru,ru_KOI8-R,ru_UTF-8,nn,fi,da,es,cy,is,zh_tw,zh_tw_utf8,sk');var TinyMCE_SavePlugin={getInfo:function(){return{longname:'Save',author:'Moxiecode Systems',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxie... |
tinyMCE.importPluginLanguagePack('advlink','en,tr,de,sv,zh_cn,cs,fa,fr_ca,fr,pl,pt_br,nl,he,nb,ru,ru_KOI8-R,ru_UTF-8,nn,cy,es,is,zh_tw,zh_tw_utf8,sk,da');var TinyMCE_AdvancedLinkPlugin={getInfo:function(){return{longname:'Advanced link',author:'Moxiecode Systems',authorurl:'http: | tinyMCE.importPluginLanguagePack('advlink');var TinyMCE_AdvancedLinkPlugin={getInfo:function(){return{longname:'Advanced link',author:'Moxiecode Systems AB',authorurl:'http: | tinyMCE.importPluginLanguagePack('advlink','en,tr,de,sv,zh_cn,cs,fa,fr_ca,fr,pl,pt_br,nl,he,nb,ru,ru_KOI8-R,ru_UTF-8,nn,cy,es,is,zh_tw,zh_tw_utf8,sk,da');var TinyMCE_AdvancedLinkPlugin={getInfo:function(){return{longname:'Advanced link',author:'Moxiecode Systems',authorurl:'http://tinymce.moxiecode.com',infourl:'http:/... |
var html = TinyMCE_PastePlugin._clipboardHTML(); if (html && html.length > 0) TinyMCE_PastePlugin._insertWordContent(html); | TinyMCE_PastePlugin._insertWordContent(TinyMCE_PastePlugin._clipboardHTML()); | execCommand : function(editor_id, element, command, user_interface, value) { switch (command) { case "mcePasteText": if (user_interface) { if ((tinyMCE.isMSIE && !tinyMCE.isOpera) && !tinyMCE.getParam('paste_use_dialog', false)) TinyMCE_PastePlugin._insertText(clipboardData.getData("Text"), true); ... |
tinyMCE.importPluginLanguagePack('print','en,tr,sv,zh_cn,fa,fr_ca,fr,de,pl,pt_br,cs,nl,da,he,nb,hu,ru,ru_KOI8-R,ru_UTF-8,nn,fi,es,cy,is,zh_tw,zh_tw_utf8,sk');var TinyMCE_PrintPlugin={getInfo:function(){return{longname:'Print',author:'Moxiecode Systems',authorurl:'http: | tinyMCE.importPluginLanguagePack('print');var TinyMCE_PrintPlugin={getInfo:function(){return{longname:'Print',author:'Moxiecode Systems AB',authorurl:'http: | tinyMCE.importPluginLanguagePack('print','en,tr,sv,zh_cn,fa,fr_ca,fr,de,pl,pt_br,cs,nl,da,he,nb,hu,ru,ru_KOI8-R,ru_UTF-8,nn,fi,es,cy,is,zh_tw,zh_tw_utf8,sk');var TinyMCE_PrintPlugin={getInfo:function(){return{longname:'Print',author:'Moxiecode Systems',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.mo... |
var html = ""; | var html = "", i; | execCommand : function(editor_id, element, command, user_interface, value) { // Handle commands switch (command) { case "mcePreview": var previewPage = tinyMCE.getParam("plugin_preview_pageurl", null); var previewWidth = tinyMCE.getParam("plugin_preview_width", "550"); var previewHeight = tinyMCE.getParam... |
var pos = c.indexOf('<body'), pos2; | var pos = c.indexOf('<body'), pos2, css = tinyMCE.getParam("content_css").split(','); | execCommand : function(editor_id, element, command, user_interface, value) { // Handle commands switch (command) { case "mcePreview": var previewPage = tinyMCE.getParam("plugin_preview_pageurl", null); var previewWidth = tinyMCE.getParam("plugin_preview_width", "550"); var previewHeight = tinyMCE.getParam... |
html += '<link href="' + tinyMCE.getParam("content_css") + '" rel="stylesheet" type="text/css" />'; | for (i=0; i<css.length; i++) html += '<link href="' + css[i] + '" rel="stylesheet" type="text/css" />'; html += '<script type="text/javascript">'; html += 'window.opener.TinyMCE_PreviewPlugin._setDoc(document);'; html += 'window.opener.TinyMCE_PreviewPlugin._setWin(window);'; html += 'writeFlash = window.opener.TinyMC... | execCommand : function(editor_id, element, command, user_interface, value) { // Handle commands switch (command) { case "mcePreview": var previewPage = tinyMCE.getParam("plugin_preview_pageurl", null); var previewWidth = tinyMCE.getParam("plugin_preview_width", "550"); var previewHeight = tinyMCE.getParam... |
html += '<body dir="' + tinyMCE.getParam("directionality") + '">'; | html += '<body dir="' + tinyMCE.getParam("directionality") + '" onload="window.opener.TinyMCE_PreviewPlugin._onLoad();">'; | execCommand : function(editor_id, element, command, user_interface, value) { // Handle commands switch (command) { case "mcePreview": var previewPage = tinyMCE.getParam("plugin_preview_pageurl", null); var previewWidth = tinyMCE.getParam("plugin_preview_width", "550"); var previewHeight = tinyMCE.getParam... |
} | }, | execCommand : function(editor_id, element, command, user_interface, value) { // Handle commands switch (command) { case "mcePreview": var previewPage = tinyMCE.getParam("plugin_preview_pageurl", null); var previewWidth = tinyMCE.getParam("plugin_preview_width", "550"); var previewHeight = tinyMCE.getParam... |
tinyMCE.importPluginLanguagePack('preview','en,tr,cs,de,el,fr_ca,it,ko,pt,sv,zh_cn,fa,fr,pl,pt_br,nl,da,he,nb,hu,ru,ru_KOI8-R,ru_UTF-8,nn,es,cy,is,zh_tw,zh_tw_utf8,sk');var TinyMCE_PreviewPlugin={getInfo:function(){return{longname:'Preview',author:'Moxiecode Systems',authorurl:'http: | tinyMCE.importPluginLanguagePack('preview');var TinyMCE_PreviewPlugin={getInfo:function(){return{longname:'Preview',author:'Moxiecode Systems AB',authorurl:'http: | tinyMCE.importPluginLanguagePack('preview','en,tr,cs,de,el,fr_ca,it,ko,pt,sv,zh_cn,fa,fr,pl,pt_br,nl,da,he,nb,hu,ru,ru_KOI8-R,ru_UTF-8,nn,es,cy,is,zh_tw,zh_tw_utf8,sk');var TinyMCE_PreviewPlugin={getInfo:function(){return{longname:'Preview',author:'Moxiecode Systems',authorurl:'http://tinymce.moxiecode.com',infourl:'ht... |
var self = TinyMCE_LayerPlugin; | execCommand : function(editor_id, element, command, user_interface, value) { var self = TinyMCE_LayerPlugin; // Handle commands switch (command) { case "mceInsertLayer": self._insertLayer(); return true; case "mceMoveForward": self._move(1); return true; case "mceMoveBackward": self._move(-1); ... | |
self._insertLayer(); | this._insertLayer(); | execCommand : function(editor_id, element, command, user_interface, value) { var self = TinyMCE_LayerPlugin; // Handle commands switch (command) { case "mceInsertLayer": self._insertLayer(); return true; case "mceMoveForward": self._move(1); return true; case "mceMoveBackward": self._move(-1); ... |
self._move(1); | this._move(1); | execCommand : function(editor_id, element, command, user_interface, value) { var self = TinyMCE_LayerPlugin; // Handle commands switch (command) { case "mceInsertLayer": self._insertLayer(); return true; case "mceMoveForward": self._move(1); return true; case "mceMoveBackward": self._move(-1); ... |
self._move(-1); | this._move(-1); | execCommand : function(editor_id, element, command, user_interface, value) { var self = TinyMCE_LayerPlugin; // Handle commands switch (command) { case "mceInsertLayer": self._insertLayer(); return true; case "mceMoveForward": self._move(1); return true; case "mceMoveBackward": self._move(-1); ... |
self._toggleAbsolute(); | this._toggleAbsolute(); | execCommand : function(editor_id, element, command, user_interface, value) { var self = TinyMCE_LayerPlugin; // Handle commands switch (command) { case "mceInsertLayer": self._insertLayer(); return true; case "mceMoveForward": self._move(1); return true; case "mceMoveBackward": self._move(-1); ... |
case "mceForeColor": var template = new Array(); var elm = tinyMCE.selectedInstance.getFocusElement(); var inputColor = tinyMCE.getAttrib(elm, "color"); if (inputColor == '') inputColor = elm.style.color; if (!inputColor) inputColor = "#000000"; template['file'] = 'color_picker.htm'; template['width'] = 220; templat... | execCommand : function(editor_id, element, command, user_interface, value) { switch (command) { case "mceLink": var inst = tinyMCE.getInstanceById(editor_id); var doc = inst.getDoc(); var selectedText = ""; if (tinyMCE.isMSIE) { var rng = doc.selection.createRange(); ... | |
tinyMCE.importPluginLanguagePack('emotions','en,tr,sv,zh_cn,cs,fa,fr_ca,fr,de,pl,pt_br,nl,da,he,nb,hu,ru,ru_KOI8-R,ru_UTF-8,nn,es,cy,is,zh_tw,zh_tw_utf8,sk');var TinyMCE_EmotionsPlugin={getInfo:function(){return{longname:'Emotions',author:'Moxiecode Systems',authorurl:'http: | tinyMCE.importPluginLanguagePack('emotions');var TinyMCE_EmotionsPlugin={getInfo:function(){return{longname:'Emotions',author:'Moxiecode Systems AB',authorurl:'http: | tinyMCE.importPluginLanguagePack('emotions','en,tr,sv,zh_cn,cs,fa,fr_ca,fr,de,pl,pt_br,nl,da,he,nb,hu,ru,ru_KOI8-R,ru_UTF-8,nn,es,cy,is,zh_tw,zh_tw_utf8,sk');var TinyMCE_EmotionsPlugin={getInfo:function(){return{longname:'Emotions',author:'Moxiecode Systems',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tiny... |
function getDateTime(date, format) { format = tinyMCE.regexpReplace(format, "%D", "%m/%d/%y"); format = tinyMCE.regexpReplace(format, "%r", "%I:%M:%S %p"); format = tinyMCE.regexpReplace(format, "%Y", "" + date.getFullYear()); format = tinyMCE.regexpReplace(format, "%y", "" + date.getYear()); format = tinyMCE.regexpRep... | function getDateTime(d, fmt) { fmt = fmt.replace("%D", "%m/%d/%y"); fmt = fmt.replace("%r", "%I:%M:%S %p"); fmt = fmt.replace("%Y", "" + d.getFullYear()); fmt = fmt.replace("%y", "" + d.getYear()); fmt = fmt.replace("%m", addZeros(d.getMonth()+1, 2)); fmt = fmt.replace("%d", addZeros(d.getDate(), 2)); fmt = fmt.replace... | execCommand : function(editor_id, element, command, user_interface, value) { /* Adds zeros infront of value */ function addZeros(value, len) { value = "" + value; if (value.length < len) { for (var i=0; i<(len-value.length); i++) value = "0" + value; } return value; } /* Returns the date object in t... |
return format; | return fmt; | execCommand : function(editor_id, element, command, user_interface, value) { /* Adds zeros infront of value */ function addZeros(value, len) { value = "" + value; if (value.length < len) { for (var i=0; i<(len-value.length); i++) value = "0" + value; } return value; } /* Returns the date object in t... |
tinyMCE.importPluginLanguagePack('directionality','en,tr,sv,fr_ca,zh_cn,cs,da,he,nb,de,hu,ru,ru_KOI8-R,ru_UTF-8,nn,es,cy,is,pl,nl,fr,pt_br');var TinyMCE_DirectionalityPlugin={getInfo:function(){return{longname:'Directionality',author:'Moxiecode Systems',authorurl:'http: | tinyMCE.importPluginLanguagePack('directionality');var TinyMCE_DirectionalityPlugin={getInfo:function(){return{longname:'Directionality',author:'Moxiecode Systems AB',authorurl:'http: | tinyMCE.importPluginLanguagePack('directionality','en,tr,sv,fr_ca,zh_cn,cs,da,he,nb,de,hu,ru,ru_KOI8-R,ru_UTF-8,nn,es,cy,is,pl,nl,fr,pt_br');var TinyMCE_DirectionalityPlugin={getInfo:function(){return{longname:'Directionality',author:'Moxiecode Systems',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.m... |
execCommand : function(editor_id, element, command, user_interface, value) { var instance = tinyMCE.getInstanceById(editor_id); | execCommand : function (editor_id, element, command, user_interface, value) { var inst = tinyMCE.getInstanceById(editor_id), selectedText = inst.selection.getSelectedText(), rng; | execCommand : function(editor_id, element, command, user_interface, value) { var instance = tinyMCE.getInstanceById(editor_id); function defValue(key, default_value) { value[key] = typeof(value[key]) == "undefined" ? default_value : value[key]; } function replaceSel(search_str, str, back) { instance.execComman... |
instance.execCommand('mceInsertContent', false, str); | inst.execCommand('mceInsertContent', false, str); | execCommand : function(editor_id, element, command, user_interface, value) { var instance = tinyMCE.getInstanceById(editor_id); function defValue(key, default_value) { value[key] = typeof(value[key]) == "undefined" ? default_value : value[key]; } function replaceSel(search_str, str, back) { instance.execComman... |
value = new Array(); | value = []; | execCommand : function(editor_id, element, command, user_interface, value) { var instance = tinyMCE.getInstanceById(editor_id); function defValue(key, default_value) { value[key] = typeof(value[key]) == "undefined" ? default_value : value[key]; } function replaceSel(search_str, str, back) { instance.execComman... |
defValue("searchstring", ""); | defValue("searchstring", selectedText); | execCommand : function(editor_id, element, command, user_interface, value) { var instance = tinyMCE.getInstanceById(editor_id); function defValue(key, default_value) { value[key] = typeof(value[key]) == "undefined" ? default_value : value[key]; } function replaceSel(search_str, str, back) { instance.execComman... |
if (value['replacestring'] != null) { template['file'] = '../../plugins/searchreplace/replace.htm'; template['width'] = 320; template['height'] = 100 + (tinyMCE.isNS7 ? 20 : 0); template['width'] += tinyMCE.getLang('lang_searchreplace_replace_delta_width', 0); template['height'] += tinyMCE.getLang('lang_searchreplace_r... | template['file'] = '../../plugins/searchreplace/searchreplace.htm'; template['width'] = 380; template['height'] = 155 + (tinyMCE.isNS7 ? 20 : 0) + (tinyMCE.isMSIE ? 15 : 0); template['width'] += tinyMCE.getLang('lang_searchreplace_delta_width', 0); template['height'] += tinyMCE.getLang('lang_searchreplace_delta_height'... | execCommand : function(editor_id, element, command, user_interface, value) { var instance = tinyMCE.getInstanceById(editor_id); function defValue(key, default_value) { value[key] = typeof(value[key]) == "undefined" ? default_value : value[key]; } function replaceSel(search_str, str, back) { instance.execComman... |
instance.execCommand('SelectAll'); | inst.execCommand('SelectAll'); | execCommand : function(editor_id, element, command, user_interface, value) { var instance = tinyMCE.getInstanceById(editor_id); function defValue(key, default_value) { value[key] = typeof(value[key]) == "undefined" ? default_value : value[key]; } function replaceSel(search_str, str, back) { instance.execComman... |
var r = instance.selection.getRng(); | var r = inst.selection.getRng(); | execCommand : function(editor_id, element, command, user_interface, value) { var instance = tinyMCE.getInstanceById(editor_id); function defValue(key, default_value) { value[key] = typeof(value[key]) == "undefined" ? default_value : value[key]; } function replaceSel(search_str, str, back) { instance.execComman... |
instance.selection.getSel().collapseToStart(); | inst.selection.getSel().collapseToStart(); | execCommand : function(editor_id, element, command, user_interface, value) { var instance = tinyMCE.getInstanceById(editor_id); function defValue(key, default_value) { value[key] = typeof(value[key]) == "undefined" ? default_value : value[key]; } function replaceSel(search_str, str, back) { instance.execComman... |
var inst = tinyMCE.getInstanceById(editor_id); | var inst = tinyMCE.getInstanceById(editor_id), r; | execInstanceCommand : function(editor_id, command, user_interface, value, focus) { var inst = tinyMCE.getInstanceById(editor_id); if (inst) { if (typeof(focus) == "undefined") focus = true; if (focus) inst.contentWindow.focus(); // Reset design mode if lost inst.autoResetDesignMode(); this.selectedEl... |
if (focus) | if (focus && (!r || !r.item)) | execInstanceCommand : function(editor_id, command, user_interface, value, focus) { var inst = tinyMCE.getInstanceById(editor_id); if (inst) { if (typeof(focus) == "undefined") focus = true; if (focus) inst.contentWindow.focus(); // Reset design mode if lost inst.autoResetDesignMode(); this.selectedEl... |
this.selectedInstance = inst; | inst.select(); | execInstanceCommand : function(editor_id, command, user_interface, value, focus) { var inst = tinyMCE.getInstanceById(editor_id); if (inst) { if (typeof(focus) == "undefined") focus = true; if (focus) inst.contentWindow.focus(); // Reset design mode if lost inst.autoResetDesignMode(); this.selectedEl... |
if (tinyMCE.isMSIE && window.event != null) | if (tinyMCE.isIE && window.event != null) | execInstanceCommand : function(editor_id, command, user_interface, value, focus) { var inst = tinyMCE.getInstanceById(editor_id); if (inst) { if (typeof(focus) == "undefined") focus = true; if (focus) inst.contentWindow.focus(); // Reset design mode if lost inst.autoResetDesignMode(); this.selectedEl... |
this.execute = function() { var baseFailureMessage = decoratedExecutor(baseHandler, arguments); var result = {}; if (!baseFailureMessage) { result.failed = true; result.failureMessage = "Expected " + errorType + " did not occur."; } else { if (! PatternMatcher.matches(expectedErrorMessage, baseFailureMessage)) { result... | execute: function(selenium, command) { testLoop.pauseInterval = command.target; return {}; } | this.execute = function() { var baseFailureMessage = decoratedExecutor(baseHandler, arguments); var result = {}; if (!baseFailureMessage) { result.failed = true; result.failureMessage = "Expected " + errorType + " did not occur."; } else { if (! Pa... |
selenium = Selenium.createForFrame(window.getBrowser()); | selenium = Selenium.createForFrame(window.getBrowser().selectedBrowser); | function executeCommand(baseURL, command) { if (!stopAndDo("executeCommand", baseURL, command)) return; // TODO refactor with start() var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator); var window = wm.getMostRecentWindow('navigator:browser'); sel... |
throw new Error("Unknown command: '" + command.command + "'"); | throw new SeleniumError("Unknown command: '" + command.command + "'"); | this.executeCurrentCommand = function() { var command = this.currentCommand; LOG.info("Executing: |" + command.command + " | " + command.target + " | " + command.value + " |"); var handler = this.commandFactory.getCommandHandler(command.command); if (handler == null) { ... |
LOG.debug("Command complete"); | this.executeCurrentCommand = function() { var command = this.currentCommand; LOG.info("Executing: |" + command.command + " | " + command.target + " | " + command.value + " |"); var handler = this.commandFactory.getCommandHandler(command.command); if (handler == null) { ... | |
LOG.debug("Checking condition: isNewPageLoaded?"); | this.executeCurrentCommand = function() { var command = this.currentCommand; LOG.info("Executing: |" + command.command + " | " + command.target + " | " + command.value + " |"); var handler = this.commandFactory.getCommandHandler(command.command); if (handler == null) { ... | |
else { try { var processNext = handler.executor.call(selenium, command.target, command.value); if (handler.type == "assert") { this.assertionPassed(); } else { this.actionOK(); } | this.executeNextCommand = function() { var command = this.nextCommand(); if (!command) return SELENIUM_PROCESS_COMPLETE; handler = this.commandFactory.getCommandHandler(command.command); // Make the current row blue this.beginCommand(command); if(handler == null) { ... | |
return processNext; } catch (e) { if (e.isJsUnitException && handler.type == "assert") { this.assertionFailed(e.jsUnitMessage); } else { this.commandError(e.message); } | try { var processNext = handler.executor.call(selenium, command.target, command.value); if (processNext == undefined && handler.wait) { processNext = SELENIUM_PROCESS_WAIT; } if (handler.type == "assert") { this.assertionPassed(); } else { this.actionOK(); } return processNext; } catch (e) { if (e.isJsUnitException... | this.executeNextCommand = function() { var command = this.nextCommand(); if (!command) return SELENIUM_PROCESS_COMPLETE; handler = this.commandFactory.getCommandHandler(command.command); // Make the current row blue this.beginCommand(command); if(handler == null) { ... |
if (view.getViewURI()) { | if (view != null && view.getViewURI()) { | function executeUsecase() { var usecaseName; var usecase; // the Usecase object var proxy; // a UsecaseProxy to make the usecase state persistent across continuations var view; // the UsecaseView object that belongs to our usecase. var state; // the state of the usecase ("continue"|"success"|"cancel"); ... |
} else if (typeof smartprefixes[nick] == 'object' && smartprefixes[nick].constructor == Function) { | } else if (typeof smartprefixes[nick] == 'function') { | function expand_smartprefix(context, current_url){ var match = context.url.match(/^([^:\s]+)(:|\s)\s*(.*)\s*$/) if (match && match[1] && match[3]) { var nick = match[1] var val = match[3] if (smartprefixes[nick]) { if (typeof smartprefixes[nick] == 'string') { context.url = smartprefixes[nick].replace(/%s/, e... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.