rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
return capitalize(testName) + "Test"; | return "The" + capitalize(testName) + "Test"; | function testMethodName(testName) { return capitalize(testName) + "Test";} |
debug('<span class="pass">PASS</span> ' + msg + '</span>'); | debug('<span class="pass">PASS</span> ' + escapeHTML(msg) + '</span>'); | function testPassed(msg){ debug('<span class="pass">PASS</span> ' + msg + '</span>');} |
assertEquals('$sel->open("http: | assertEquals('$sel->open_ok("http: | function testPerlRCFormat() { var format = this.formats.findFormat("perl-rc"); var f = format.getFormatter(); assertEquals('$sel->is_text_present_ok("hello");', f.formatCommand(new Command('assertTextPresent', 'hello'))); assertEquals('ok(not $sel->is_text_present("hello"));', f.formatCommand(new Command('assertTextNot... |
SeleniumIDE.testRecorderPopup = function(event) { | SeleniumIDE.Overlay.testRecorderPopup = function(event) { | SeleniumIDE.testRecorderPopup = function(event) { if (event.target.id != "contentAreaContextMenu") return; contextMenu = event.target; for (var i = contextMenu.childNodes.length - 1; i >= 0; i--) { var item = contextMenu.childNodes[i]; if (item.id && /^selenium-ide-check-/.test(item.id)) { contextMenu.removeChild(... |
assertEquals('assert /ab[cd]/ !~ @selenium.get_text("test")', nextCommand()); | function testRubyRCFormat() { var format = this.formats.findFormat("ruby-rc"); var f = format.getFormatter(); this.formatter = f; assertEquals('assert @selenium.is_text_present("hello")', nextCommand()); assertEquals('assert !@selenium.is_text_present("hello")', nextCommand()); assertEquals('abc = @selenium.is_text_pre... | |
assertEquals('assert /^def(.|[\\r\\n])*$/ =~ @selenium.get_text("abc")', nextCommand()); | assertEquals('assert /^def[\\s\\S]*$/ =~ @selenium.get_text("abc")', nextCommand()); | function testRubyRCFormat() { var format = this.formats.findFormat("ruby-rc"); var f = format.getFormatter(); this.formatter = f; assertEquals('assert @selenium.is_text_present("hello")', nextCommand()); assertEquals('assert !@selenium.is_text_present("hello")', nextCommand()); assertEquals('abc = @selenium.is_text_pre... |
this.isMSIE = (navigator.appName == "Microsoft Internet Explorer"); | this.isIE = (navigator.appName == "Microsoft Internet Explorer"); | function TinyMCE_Cleanup() { this.isMSIE = (navigator.appName == "Microsoft Internet Explorer"); this.rules = tinyMCE.clearArray(new Array()); // Default config this.settings = { indent_elements : 'head,table,tbody,thead,tfoot,form,tr,ul,ol,blockquote,object', newline_before_elements : 'h1,h2,h3,h4,h5,h6,pre,address,... |
this.closeElementsRe = /^(IMG|BR|HR|LINK|META|BASE|INPUT|BUTTON|AREA)$/; | this.closeElementsRe = /^(IMG|BR|HR|LINK|META|BASE|INPUT|AREA)$/; | function TinyMCE_Cleanup() { this.isMSIE = (navigator.appName == "Microsoft Internet Explorer"); this.rules = tinyMCE.clearArray(new Array()); // Default config this.settings = { indent_elements : 'head,table,tbody,thead,tfoot,form,tr,ul,ol,blockquote,object', newline_before_elements : 'h1,h2,h3,h4,h5,h6,pre,address,... |
var self = this; | function TinyMCE_ContextMenu(settings) { // Default value function function defParam(key, def_val) { settings[key] = typeof(settings[key]) != "undefined" ? settings[key] : def_val; } var self = this; this.isMSIE = (navigator.appName == "Microsoft Internet Explorer"); // Setup contextmenu div this.contextMenuDiv = docu... | |
valid_child_elements : s.valid_child_elements, | function TinyMCE_Control(settings) { var t, i, to, fu, p, x, fn, fu, pn, s = settings; this.undoRedoLevel = true; this.isTinyMCE_Control = true; // Default settings this.settings = s; this.settings['theme'] = tinyMCE.getParam("theme", "default"); this.settings['width'] = tinyMCE.getParam("width", -1); this.settings['he... | |
this.minorVersion = "0.6.1"; this.releaseDate = "2006-05-04"; | this.minorVersion = "0.8"; this.releaseDate = "2006-10-23"; | function TinyMCE_Engine() { this.majorVersion = "2"; this.minorVersion = "0.6.1"; this.releaseDate = "2006-05-04"; this.instances = new Array(); this.switchClassCache = new Array(); this.windowArgs = new Array(); this.loadedFiles = new Array(); this.pendingFiles = new Array(); this.loadingIndex = 0; this.configs = new ... |
var ua = navigator.userAgent; | ua = navigator.userAgent; | function TinyMCE_Engine() { this.majorVersion = "2"; this.minorVersion = "0.6.1"; this.releaseDate = "2006-05-04"; this.instances = new Array(); this.switchClassCache = new Array(); this.windowArgs = new Array(); this.loadedFiles = new Array(); this.pendingFiles = new Array(); this.loadingIndex = 0; this.configs = new ... |
this.isIE = this.isMSIE; this.isRealIE = this.isMSIE && !this.isOpera; | function TinyMCE_Engine() { this.majorVersion = "2"; this.minorVersion = "0.6.1"; this.releaseDate = "2006-05-04"; this.instances = new Array(); this.switchClassCache = new Array(); this.windowArgs = new Array(); this.loadedFiles = new Array(); this.pendingFiles = new Array(); this.loadingIndex = 0; this.configs = new ... | |
result.target = window.document.title; | result.target = SeleniumIDE.getRecorderWindow().exactMatchPattern(window.document.title); | title: function(window, element) { var result = { name: "Title" }; if (window.document) { result.target = window.document.title; } else { result.disabled = true; } return result; }, |
var t = this.currentDocument.title; if (typeof(t) == "string") { t = t.trim(); } return t; | var t = this.document().title; if (typeof(t) == "string") { t = t.trim(); } return t; | this.title = function() { var t = this.currentDocument.title; if (typeof(t) == "string") { t = t.trim(); } return t; }; |
toColorPart: function() { var digits = this.toString(16); if (this < 16) return '0' + digits; return digits; }, | Number.prototype.toColorPart = function() { var digits = this.toString(16); if (this < 16) return '0' + digits; return digits; } | toColorPart: function() { var digits = this.toString(16); if (this < 16) return '0' + digits; return digits; }, |
Number.prototype.toColorPart = function() { var digits = this.toString(16); if (this < 16) return '0' + digits; return digits; } | toColorPart: function() { var digits = this.toString(16); if (this < 16) return '0' + digits; return digits; }, | Number.prototype.toColorPart = function() { var digits = this.toString(16); if (this < 16) return '0' + digits; return digits;} |
function ToCurrency (s) | function ToCurrency (s, validator) | function ToCurrency (s){ /* NYI */ return null;} |
function ToDate (s) | function ToDate (s, validator) | function ToDate (s){ /* NYI */ return null;} |
return null; | var m, day, month, year; var yearFirstExp = new RegExp("^\\s*((\\d{4})|(\\d{2}))([-/]|\\. ?)(\\d{1,2})\\4(\\d{1,2})\\s*$"); m = s.match(yearFirstExp); if (m != null && (m[2].length == 4 || validator.dateorder == "ymd")) { day = m[6]; month = m[5]; year = (m[2].length == 4) ? m[2] : GetFullYear(parseInt(m[3], 10), valid... | function ToDate (s){ /* NYI */ return null;} |
function ToDouble (s) | function ToDouble (s, validator) | function ToDouble (s){ if ((v = parseFloat(s)) != s - 0) return null; else return v;} |
return this; | return parseFloat(this); | toFloat: function(){ return this; } |
Element[Element.visible(element) ? 'show' : 'hide'](element); | Element[Element.visible(element) ? 'hide' : 'show'](element); | toggle: function() { for (var i = 0; i < arguments.length; i++) { var element = $(arguments[i]); Element[Element.visible(element) ? 'show' : 'hide'](element); } }, |
element.style.display = (element.style.display == 'none' ? '' : 'none'); | Element[Element.visible(element) ? 'show' : 'hide'](element); | toggle: function() { for (var i = 0; i < arguments.length; i++) { var element = $(arguments[i]); element.style.display = (element.style.display == 'none' ? '' : 'none'); } }, |
queue: { position:'end', scope:(element.id || 'global') } | queue: { position:'end', scope:(element.id || 'global'), limit: 1 } | toggle: function(element, effect) { element = $(element); effect = (effect || 'appear').toLowerCase(); var options = Object.extend({ queue: { position:'end', scope:(element.id || 'global') } }, arguments[2] || {}); Effect[Element.visible(element) ? Effect.PAIRS[effect][1] : Effect.PAIRS[effe... |
element.style.display = (element.style.display == 'none' ? '' : 'none'); | Element[Element.visible(element) ? 'hide' : 'show'](element); | toggle: function() { for (var i = 0; i < arguments.length; i++) { var element = $(arguments[i]); element.style.display = (element.style.display == 'none' ? '' : 'none'); } }, |
button.childNodes[0].data = "-"; | button.src = "minus.jpg"; | function toggle(button,id) { var n = document.getElementById(id).style; if (n.display == "none") { button.childNodes[0].data = "-"; n.display = "inline"; } else { button.childNodes[0].data = "+"; n.display = "none"; }} |
button.childNodes[0].data = "+"; | button.src = "plus.jpg"; | function toggle(button,id) { var n = document.getElementById(id).style; if (n.display == "none") { button.childNodes[0].data = "-"; n.display = "inline"; } else { button.childNodes[0].data = "+"; n.display = "none"; }} |
var editor = file.breakpointEditors[lineNum]; if (editor) { editor.childNodes[0].childNodes[1].childNodes[0].checked = !row.hasStyleClass("disabled"); setConditionFieldText(editor, lineNum); } | function toggleBreakpoint(row, file, lineNum){ if (row.hasStyleClass("disabled")) row.removeStyleClass("disabled"); else row.addStyleClass("disabled"); var temp = file.breakpoints[lineNum]; file.breakpoints[lineNum] = file.disabledBreakpoints[lineNum]; file.disabledBreakpoints[lineN... | |
var hack = row.offsetTop; | function toggleBreakpoint(row, file, lineNum){ if (row.hasStyleClass("disabled")) row.removeStyleClass("disabled"); else row.addStyleClass("disabled"); var temp = file.breakpoints[lineNum]; file.breakpoints[lineNum] = file.disabledBreakpoints[lineNum]; file.disabledBreakpoints[lineN... | |
if (hasStyleClass(row, "disabled")) removeStyleClass(row, "disabled"); | if (row.hasStyleClass("disabled")) row.removeStyleClass("disabled"); | function toggleBreakpoint(row, file, lineNum){ if (hasStyleClass(row, "disabled")) removeStyleClass(row, "disabled"); else addStyleClass(row, "disabled"); var temp = file.breakpoints[lineNum]; file.breakpoints[lineNum] = file.disabledBreakpoints[lineNum]; file.disabledBreakpoints[li... |
addStyleClass(row, "disabled"); | row.addStyleClass("disabled"); | function toggleBreakpoint(row, file, lineNum){ if (hasStyleClass(row, "disabled")) removeStyleClass(row, "disabled"); else addStyleClass(row, "disabled"); var temp = file.breakpoints[lineNum]; file.breakpoints[lineNum] = file.disabledBreakpoints[lineNum]; file.disabledBreakpoints[li... |
if (pendingAction) { clearTimeout(pendingAction); pendingAction = null; } | function toggleBreakpointEditor(event){ var row = event.target.parentNode; var file = files[currentFile]; var lineNum = parseInt(event.target.title); if (row.hasStyleClass("breakpoint")) { var editor = file.breakpointEditors[lineNum]; if (!editor) { var sourcesDocument = document.ge... | |
editor.query(' | editor.query('. | function toggleBreakpointEditorOnLine(lineNum){ if (pendingAction) { clearTimeout(pendingAction); pendingAction = null; } var file = files[currentFile]; bp = file.breakpoints[lineNum]; if (bp) { var editor = bp.editor; if (!editor) { var sourcesDocument = document.g... |
editor.query(' | editor.query('. | function toggleBreakpointOnLine(lineNum){ var breakpoint = files[currentFile].breakpoints[lineNum]; pendingAction = null; if (breakpoint.enabled) breakpoint.row.addStyleClass("disabled"); else breakpoint.row.removeStyleClass("disabled"); var hack = breakpoint.row.offsetTop; // force... |
SeleniumIDE.toggleCheckType = function() { | SeleniumIDE.Overlay.toggleCheckType = function() { | SeleniumIDE.toggleCheckType = function() { var CheckBuilders = SeleniumIDE.Loader.getTopEditor().window.CheckBuilders; CheckBuilders.useAssert = !CheckBuilders.useAssert;} |
parent.update(); | headerUpdate(); | function toggleMute(xy){ document.location = "setVolume?mute="+xy; if (window.screen.width < 800) setTimeout("reload()", 1000); else parent.update();} |
document.getElementById("noSelection").style.display = null; | document.getElementById("noSelection").style.removeProperty("display"); | function toggleNoSelection(state){ noSelection = state; if (noSelection) { for (var i = 0; i < tabNames.length; i++) document.getElementById(tabNames[i] + "Pane").style.display = "none"; document.getElementById("noSelection").style.display = null; } else { document.getElementByI... |
li.nextSibling.style.display = null; | li.nextSibling.style.removeProperty("display"); | function toggleStyleShorthand(event){ var li = event.currentTarget.parentNode; if (li.className.indexOf("expanded") != -1) { li.className = li.className.replace(/ expanded/, ""); li.nextSibling.style.display = "none"; expandedStyleShorthands[li.shorthand] = false; } else { li.classN... |
if (previous) previous.syncModel(true); | this.toggleView = function(view) { log.debug("toggle view"); if (this.view != null) { this.view.onHide(); } this.view = view; this.view.testCase = this.testCase; this.view.refresh(); }; | |
function ToInteger (s) | function ToInteger (s, validator) | function ToInteger (s){ if ((v = parseInt(s, 10)) != s - 0) return null; else return v;} |
if (value && name) obj[encodeURIComponent(name)] = encodeURIComponent(value); | if (value && name) obj[name] = value; | toObject: function(){ var obj = {}; $each(this.getElementsByTagName('*'), function(el){ var name = $(el).name; var value = el.getValue(); if (value && name) obj[encodeURIComponent(name)] = encodeURIComponent(value); }); return obj; }, |
return this.toArray().join(' '); | return this.expression; | toString: function() { return this.toArray().join(' '); } |
function ToString (s) | function ToString (s, validator) | function ToString (s){ return s;} |
if (element.offsetParent) { while (element.offsetParent) { currentTop += element.offsetTop element = element.offsetParent; if (element == stop) break; } | while (element.offsetParent) { currentTop += element.offsetTop element = element.offsetParent; if (element == stop) break; | function totalOffsetTop(element, stop){ var currentTop = 0; if (element.offsetParent) { while (element.offsetParent) { currentTop += element.offsetTop element = element.offsetParent; if (element == stop) break; } } return currentTop;} |
var nodes = this.listNode.childNodes; | var nodes = $A(this.listNode.childNodes); | this.toXml = function() { var parentName = "query-history"; var queryName = "query"; var xml = "<" + parentName + ">\n"; // values() yields an unstable order, // so we use listNode.childNodes instead. var nodes = this.listNode.childNodes; var query = null; for... |
query = nodes[i].firstChild.firstChild.nodeValue; | query = this.getListItemValue(nodes[i]); | this.toXml = function() { var parentName = "query-history"; var queryName = "query"; var xml = "<" + parentName + ">\n"; // values() yields an unstable order, // so we use listNode.childNodes instead. var nodes = this.listNode.childNodes; var query = null; for... |
debug.print("QueryHistory.toXml: " + xml); | this.toXml = function() { var parentName = "query-history"; var queryName = "query"; var xml = "<" + parentName + ">\n"; // values() yields an unstable order, // so we use listNode.childNodes instead. var nodes = this.listNode.childNodes; var query = null; for... | |
debug.print("QueryHistory.toXml: " + xml); | this.toXml = function() { var parentName = "query-history"; var queryName = "query"; var xml = "<" + parentName + ">\n"; // values() yields an unstable order, // so we use listNode.childNodes instead. var nodes = $A(this.listNode.childNodes); var query = null; ... | |
else { glocale = 0 ; } | function translateInit() // load prefs, initalise options menu and fill other menus{ document.getElementById("contentAreaContextMenu").addEventListener("popupshowing",onTranslatePopup,false); // get the variables strong in translate.properties gTranslateBundle = document.getElementById("bundle-translate"); if (! gTra... | |
glocale = preferencesService.getIntPref("translate.userlanguage"); | if(preferencesService.prefHasUserValue("translate.userlanguage")) { glocale = preferencesService.getIntPref("translate.userlanguage"); } | function translateInit(){ document.getElementById("contentAreaContextMenu").addEventListener("popupshowing",onTranslatePopup,false); gTranslateBundle = document.getElementById("bundle-translate"); if (! gTranslateBundle) { alert("no bundle"); } const preferencesService = Components.classes["@mozilla.org/pr... |
return Math.round((this.trackLength / (this.range.end - this.range.start)) * (value - this.range.start)) + "px"; | return Math.round( ((this.trackLength-this.handleLength)/(this.range.end-this.range.start)) * (value - this.range.start)) + "px"; | translateToPx: function(value) { return Math.round((this.trackLength / (this.range.end - this.range.start)) * (value - this.range.start)) + "px"; }, |
return ((offset/this.trackLength) * (this.range.end - this.range.start)) + this.range.start; | return ((offset/(this.trackLength-this.handleLength) * (this.range.end-this.range.start)) + this.range.start); | translateToValue: function(offset) { return ((offset/this.trackLength) * (this.range.end - this.range.start)) + this.range.start; }, |
HTMLElement[p] = null; window[p] = null; document[p] = null; el[p] = null; | HTMLElement[p] = window[p] = document[p] = el[p] = null; | trash: function(){ window.removeEvent('unload', Garbage.trash); Garbage.elements.each(function(el){ el.removeEvents(); for (var p in Element.prototype){ HTMLElement[p] = null; window[p] = null; document[p] = null; el[p] = null; } el.extend = null; }); } |
function TreeView(recorder, document, tree) { | function TreeView(editor, document, tree) { | function TreeView(recorder, document, tree) { this.log = new Log("TreeView"); this.recorder = recorder; tree.view = this; this.tree = tree; this.document = document; this.rowCount = 0; this.undoStack = []; this.redoStack = []; var self = this; var controller = { supportsCommand : function(cmd) { switch (cmd) { cas... |
this.recorder = recorder; | this.editor = editor; | function TreeView(recorder, document, tree) { this.log = new Log("TreeView"); this.recorder = recorder; tree.view = this; this.tree = tree; this.document = document; this.rowCount = 0; this.undoStack = []; this.redoStack = []; var self = this; var controller = { supportsCommand : function(cmd) { switch (cmd) { cas... |
var text = this.recorder.testManager.getSourceForCommands(commands); | var text = this.editor.testManager.getSourceForCommands(commands); | function TreeView(recorder, document, tree) { this.log = new Log("TreeView"); this.recorder = recorder; tree.view = this; this.tree = tree; this.document = document; this.rowCount = 0; this.undoStack = []; this.redoStack = []; var self = this; var controller = { supportsCommand : function(cmd) { switch (cmd) { cas... |
if (recorder.options.userExtensionsURL) { | if (editor.options.userExtensionsURL) { | function TreeView(recorder, document, tree) { this.log = new Log("TreeView"); this.recorder = recorder; tree.view = this; this.tree = tree; this.document = document; this.rowCount = 0; this.undoStack = []; this.redoStack = []; var self = this; var controller = { supportsCommand : function(cmd) { switch (cmd) { cas... |
subScriptLoader.loadSubScript(recorder.options.userExtensionsURL, scope); | subScriptLoader.loadSubScript(editor.options.userExtensionsURL, scope); | function TreeView(recorder, document, tree) { this.log = new Log("TreeView"); this.recorder = recorder; tree.view = this; this.tree = tree; this.document = document; this.rowCount = 0; this.undoStack = []; this.redoStack = []; var self = this; var controller = { supportsCommand : function(cmd) { switch (cmd) { cas... |
this.editor.showAlert("Failed to load user-extensions.js!\nfile=" + recorder.options.userExtensionsURL + "\nerror=" + error); | this.editor.showAlert("Failed to load user-extensions.js!\nfile=" + editor.options.userExtensionsURL + "\nerror=" + error); | function TreeView(recorder, document, tree) { this.log = new Log("TreeView"); this.recorder = recorder; tree.view = this; this.tree = tree; this.document = document; this.rowCount = 0; this.undoStack = []; this.redoStack = []; var self = this; var controller = { supportsCommand : function(cmd) { switch (cmd) { cas... |
commands.push("assert" + r[2]); commands.push("verify" + r[2]); commands.push("store" + r[2]); commands.push("waitFor" + r[2]); | var base = r[2]; commands.push("assert" + base); commands.push("verify" + base); commands.push("store" + base); commands.push("waitFor" + base); var r2; if ((r = func.match(/^is(.*)Present$/))) { base = r[1]; commands.push("assert" + base + "NotPresent"); commands.push("verify" + base + "NotPresent"); } else { commands... | function TreeView(editor, document, tree) { this.log = new Log("TreeView"); this.editor = editor; tree.view = this; this.tree = tree; this.document = document; this.rowCount = 0; this.recordIndex = 0; this.undoStack = []; this.redoStack = []; var self = this; var controller = { supportsCommand : function(cmd) { swit... |
TreeView_SetNodeFlag (document.forms[0][idArray[0] + "_PopulatedStates"], idArray[1], true); | function TreeView_PopulateCallback (data, ids){ var idArray = ids.split (" "); var tree = getTree (idArray[0]); var spanId = idArray[0] + "_" + idArray[1]; var node = document.getElementById (spanId); node.populated = true; if (data != "*") { node.innerHTML = data; } else { if (tree.showImage && tree.noExpandImage !=... | |
if (listeners != null) { | if ((listeners != null) && (listeners.length > 0)) { | triggerEvent: function (type, evt) { // prep evt object with object & div references if (evt == null) { evt = new Object(); } evt.object = this.object; evt.element = this.element; // execute all callbacks registered for specified type var listeners = this.... |
Event.stop(evt); | if (!this.fallThrough) { Event.stop(evt); } | triggerEvent: function (type, evt) { // prep evt object with object & div references if (evt == null) { evt = new Object(); } evt.object = this.object; evt.element = this.element; // execute all callbacks registered for specified type var listeners = this.... |
evt.shiftKey = shiftKeyDown; evt.metaKey = metaKeyDown; evt.altKey = altKeyDown; evt.ctrlKey = controlKeyDown; | try { evt.shiftKey = shiftKeyDown; evt.metaKey = metaKeyDown; evt.altKey = altKeyDown; evt.ctrlKey = controlKeyDown; } catch (e) { LOG.exception(e); } | function triggerEvent(element, eventType, canBubble, controlKeyDown, altKeyDown, shiftKeyDown, metaKeyDown) { canBubble = (typeof(canBubble) == undefined) ? true : canBubble; if (element.fireEvent) { var evt = createEventObject(element, controlKeyDown, altKeyDown, shiftKeyDown, metaKeyDown); ... |
evt.which = keycode; | function triggerKeyEvent(element, eventType, keySequence, canBubble, controlKeyDown, altKeyDown, shiftKeyDown, metaKeyDown) { var keycode = getKeyCodeFromKeySequence(keySequence); canBubble = (typeof(canBubble) == undefined) ? true : canBubble; if (element.fireEvent) { var keyEvent = createEventObject(e... | |
function triggerKeyEvent(element, eventType, keycode, canBubble) { | function triggerKeyEvent(element, eventType, keySequence, canBubble) { var keycode = getKeyCodeFromKeySequence(keySequence); | function triggerKeyEvent(element, eventType, keycode, canBubble) { canBubble = (typeof(canBubble) == undefined) ? true : canBubble; if (element.fireEvent) { var w = parent.frames['myiframe'] if (w==null) { w = window; } keyEvent = w.document.createEventObject();... |
var ieEvent = document.createEventObject(); ieEvent.detail = 0; ieEvent.screenX = screenX; ieEvent.screenY = screenY; ieEvent.clientX = clientX; ieEvent.clientY = clientY; ieEvent.ctrlKey = false; ieEvent.altKey = false; ieEvent.shiftKey = false; ieEvent.metaKey = false; ieEvent.button = 0; ieEvent.relatedTarget = null... | var ieEvent = document.createEventObject(); ieEvent.detail = 0; ieEvent.screenX = screenX; ieEvent.screenY = screenY; ieEvent.clientX = clientX; ieEvent.clientY = clientY; ieEvent.ctrlKey = false; ieEvent.altKey = false; ieEvent.shiftKey = false; ieEvent.metaKey = false; ieEvent.button = 1; ieEvent.relatedTarget = null... | function triggerMouseEvent(element, eventType, canBubble, clientX, clientY) { clientX = clientX ? clientX : 0; clientY = clientY ? clientY : 0; // TODO: set these attributes -- they don't seem to be needed by the initial test cases, but that could change... var screenX = 0; var screenY = 0; ca... |
else { | else { LOG.error("element doesen't has initMouseEvent"); | function triggerMouseEvent(element, eventType, canBubble, clientX, clientY) { clientX = clientX ? clientX : 0; clientY = clientY ? clientY : 0; // TODO: set these attributes -- they don't seem to be needed by the initial test cases, but that could change... var screenX = 0; var screenY = 0; canBubble ... |
evt.initMouseEvent(eventType, canBubble, true, document.defaultView, 1, 0, 0, 0, 0, false, false, false, false, 0, null); | if (evt.initMouseEvent) { evt.initMouseEvent(eventType, canBubble, true, document.defaultView, 1, 0, 0, 0, 0, false, false, false, false, 0, null) } else { evt.initEvent(eventType, canBubble, true); } | function triggerMouseEvent(element, eventType, canBubble) { canBubble = (typeof(canBubble) == undefined) ? true : canBubble; if (element.fireEvent) { element.fireEvent('on' + eventType); } else { var evt = document.createEvent('MouseEvents'); evt.initMouseEvent(eventType, canBubble, tru... |
var undoIndex = -1; | var undoIndex = -1, doc; | triggerNodeChange : function(focus, setup_content) { if (tinyMCE.selectedInstance) { var inst = tinyMCE.selectedInstance; var editorId = inst.editorId; var elm = (typeof(setup_content) != "undefined" && setup_content) ? tinyMCE.selectedElement : inst.getFocusElement(); var undoIndex = -1; var undoLevels = -... |
if (tinyMCE.settings["auto_resize"]) { var doc = inst.getDoc(); inst.iframeElement.style.width = doc.body.offsetWidth + "px"; inst.iframeElement.style.height = doc.body.offsetHeight + "px"; } | triggerNodeChange : function(focus, setup_content) { if (tinyMCE.selectedInstance) { var inst = tinyMCE.selectedInstance; var editorId = inst.editorId; var elm = (typeof(setup_content) != "undefined" && setup_content) ? tinyMCE.selectedElement : inst.getFocusElement(); var undoIndex = -1; var undoLevels = -... | |
var e, nl = new Array(), i, s; | var e, nl = [], i, s; | triggerSave : function(skip_cleanup, skip_callback) { var e, nl = new Array(), i, s; this.switchSettings(); s = tinyMCE.settings; // Force hidden tabs visible while serializing if (tinyMCE.isMSIE && !tinyMCE.isOpera) { e = this.iframeElement; do { if (e.style && e.style.display == 'none') { e.style.dis... |
if (tinyMCE.isMSIE && !tinyMCE.isOpera) { | if (tinyMCE.isRealIE) { | triggerSave : function(skip_cleanup, skip_callback) { var e, nl = new Array(), i, s; this.switchSettings(); s = tinyMCE.settings; // Force hidden tabs visible while serializing if (tinyMCE.isMSIE && !tinyMCE.isOpera) { e = this.iframeElement; do { if (e.style && e.style.display == 'none') { e.style.dis... |
function trim(s) { return s.replace(/^\s+|\s+$/g, ""); } | function trim(s) { return s == null ? null : s.replace(/^\s+|\s+$/g, ""); } | function trim(s) { return s.replace(/^\s+|\s+$/g, ""); } |
var grid = getTableGrid(table); var cpos = getCellPos(grid, td); | var grid = getTableGrid(table), cpos = getCellPos(grid, td); var cells, lastElm; | function trimRow(table, tr, td, new_tr) { var grid = getTableGrid(table); var cpos = getCellPos(grid, td); // Time to crop away some if (new_tr.cells.length != tr.childNodes.length) { var cells = tr.childNodes; var lastElm = null; for (var x=0; td = getCell(grid, cpos.rowindex, x); x++) { var rem... |
var cells = tr.childNodes; var lastElm = null; | cells = tr.childNodes; lastElm = null; | function trimRow(table, tr, td, new_tr) { var grid = getTableGrid(table); var cpos = getCellPos(grid, td); // Time to crop away some if (new_tr.cells.length != tr.childNodes.length) { var cells = tr.childNodes; var lastElm = null; for (var x=0; td = getCell(grid, cpos.rowindex, x); x++) { var rem... |
if(topline+ypos-edit_top<line.length-1) { | if(ypos<line.length-1) { | function try_next_line(){ /* Yes, it's possible */ if(topline+ypos-edit_top<line.length-1) { ypos++; if(ypos>edit_top+lines_on_screen-1) scroll(1); /* Scroll up one line */ if(xpos>line[ypos-edit_top+topline].text.length+1) xpos=line[ypos-edit_top+topline].text.length+1; return(true); } console.beep(); return(... |
if(ypos>edit_top+lines_on_screen-1) | if(ypos>=topline+lines_on_screen) | function try_next_line(){ /* Yes, it's possible */ if(topline+ypos-edit_top<line.length-1) { ypos++; if(ypos>edit_top+lines_on_screen-1) scroll(1); /* Scroll up one line */ if(xpos>line[ypos-edit_top+topline].text.length+1) xpos=line[ypos-edit_top+topline].text.length+1; return(true); } console.beep(); return(... |
if(xpos>line[ypos-edit_top+topline].text.length+1) xpos=line[ypos-edit_top+topline].text.length+1; | if(last_xpos>=0) xpos=last_xpos; if(xpos>line[ypos].text.length) xpos=line[ypos].text.length; | function try_next_line(){ /* Yes, it's possible */ if(topline+ypos-edit_top<line.length-1) { ypos++; if(ypos>edit_top+lines_on_screen-1) scroll(1); /* Scroll up one line */ if(xpos>line[ypos-edit_top+topline].text.length+1) xpos=line[ypos-edit_top+topline].text.length+1; return(true); } console.beep(); return(... |
if(ypos-edit_top+topline>0) { | if(ypos>0) { | function try_prev_line(){ /* Yes, it's possible */ if(ypos-edit_top+topline>0) { ypos--; if(ypos<edit_top) { scroll(-1); /* Scroll down one line */ ypos++; } if(xpos>line[ypos-edit_top+topline].text.length+1) xpos=line[ypos-edit_top+topline].text.length+1; return(true); } console.beep(); return(false);} |
if(ypos<edit_top) { | if(ypos<topline) | function try_prev_line(){ /* Yes, it's possible */ if(ypos-edit_top+topline>0) { ypos--; if(ypos<edit_top) { scroll(-1); /* Scroll down one line */ ypos++; } if(xpos>line[ypos-edit_top+topline].text.length+1) xpos=line[ypos-edit_top+topline].text.length+1; return(true); } console.beep(); return(false);} |
ypos++; } if(xpos>line[ypos-edit_top+topline].text.length+1) xpos=line[ypos-edit_top+topline].text.length+1; | if(last_xpos>=0) xpos=last_xpos; if(xpos>line[ypos].text.length) xpos=line[ypos].text.length; | function try_prev_line(){ /* Yes, it's possible */ if(ypos-edit_top+topline>0) { ypos--; if(ypos<edit_top) { scroll(-1); /* Scroll down one line */ ypos++; } if(xpos>line[ypos-edit_top+topline].text.length+1) xpos=line[ypos-edit_top+topline].text.length+1; return(true); } console.beep(); return(false);} |
window.setTimeout(execTypeCharacterCommand, commandCount * commandDelay); | window.setTimeout(execTypeCharacterCommand, commandCount * commandDelay, c); | function typeCharacterCommand(c) { if (commandDelay > 0) { window.setTimeout(execTypeCharacterCommand, commandCount * commandDelay); commandCount++; } else { execTypeCharacterCommand(c); }} |
CollapsedFieldsets.display(i); | CollapsedFieldsets.show(i); | uncollapse_all: function() { var fieldsets = document.getElementsByTagName('fieldset'); for (var i=0; i<fieldsets.length; i++) { if (fieldsets[i].className.match(CollapsedFieldsets.collapsed_re)) { CollapsedFieldsets.display(i); } } } |
delete element._overflow; | element._overflow = null; | undoClipping: function(element) { element = $(element); if (!element._overflow) return; element.style.overflow = element._overflow == 'auto' ? '' : element._overflow; delete element._overflow; return element; } |
if (!element._overflow) return; | if (!element._overflow) return element; | undoClipping: function(element) { element = $(element); if (!element._overflow) return; element.style.overflow = element._overflow == 'auto' ? '' : element._overflow; element._overflow = null; return element; } |
return div.childNodes[0].nodeValue; | return div.childNodes[0] ? div.childNodes[0].nodeValue : ''; | unescapeHTML: function() { var div = document.createElement('div'); div.innerHTML = this.stripTags(); return div.childNodes[0].nodeValue; }, |
return div.childNodes[0].nodeValue; } | return div.childNodes[0] ? div.childNodes[0].nodeValue : ''; }, | unescapeHTML: function() { var div = document.createElement('div'); div.innerHTML = this.stripTags(); return div.childNodes[0].nodeValue; } |
if (doc.__gmId) { | if (doc && doc.__gmId) { | this.unloadDoc = function(e) { var doc = e.originalTarget; if (doc.__gmId) { delete docMenuCommands[doc.__gmId]; } } |
this.options.selectedFormat = this.testManager.currentFormatInfo.id; optionsManager.save(this.options, 'selectedFormat'); | function unloadRecorder() { if (this.options.rememberBaseURL == 'true'){ this.options.baseURL = document.getElementById("baseURL").value; optionsManager.save(this.options, 'baseURL'); } this.options.selectedFormat = this.testManager.currentFormatInfo.id; optionsManager.save(this.options, 'selectedFormat'); this.even... | |
if (listeners[i].obj == obj && listeners[i].type == type) { | if (listeners[i].obj == obj && listeners[i].func == func) { | unregister: function (type, obj, func) { var listeners = this.listeners[type]; for (var i = 0; i < listeners.length; i++) { if (listeners[i].obj == obj && listeners[i].type == type) { listeners.splice(i, 1); break; } } }, |
this.sentps = false; | function Unregistered_Client(id,socket) { ////////// VARIABLES // Bools/Flags that change depending on connection state. this.pinged = false; // Sent PING? this.sentps = false; // Sent PASS/SERVER? this.local = true; // FIXME: this is redundant. this.criteria_met = false; // Have we met registration criteria? ... | |
this.sendps = true; | function Unregistered_Client(id,socket) { ////////// VARIABLES // Bools/Flags that change depending on connection state. this.pinged = false; // Sent PING? this.sentps = false; // Sent PASS/SERVER? this.local = true; // FIXME: this is redundant. this.criteria_met = false; // Have we met registration criteria? ... | |
this.outgoing = false; | function Unregistered_Client(id,socket) { ////////// VARIABLES // Bools/Flags that change depending on connection state. this.pinged = false; // Sent PING? this.local = true; // FIXME: this is redundant. this.criteria_met = false; // Have we met registration criteria? // Variables containing user/server informati... | |
this.pending_resolve_time = false; | function Unregistered_Client(id,socket) { ////////// VARIABLES // Bools/Flags that change depending on connection state. this.pinged = false; // Sent PING? this.sentps = false; // Sent PASS/SERVER? this.local = true; // FIXME: this is redundant. this.criteria_met = false; // Have we met registration criteria? ... | |
rebuild_socksel_array(); | rebuild_socksel_array = true; | function Unregistered_Client(id,socket) { ////////// VARIABLES // Bools/Flags that change depending on connection state. this.pinged = false; // Sent PING? this.sentps = false; // Sent PASS/SERVER? this.local = true; // FIXME: this is redundant. // Variables containing user/server information as we receive it. this.id ... |
this.password = cmd[1]; | this.password = IRC_string(cmd[1]); | function Unregistered_Commands() { var cmdline; var cmd; var command; if (!this.socket.is_connected) { this.quit(); return 0; } cmdline=this.socket.recvline(4096,0); Global_CommandLine = cmdline; if (!cmdline) return 0; // Only accept up to 512 bytes from unregistered clients. cmdline = cmdline.slice(0,512); // Klud... |
if (this_nline.flags&NLINE_IS_DREAMFORGE) new_server.type = DREAMFORGE; | function Unregistered_Commands() { var cmdline; var cmd; var command; if (!this.socket.is_connected) { this.quit(); return 0; } cmdline=this.socket.recvline(4096,0); Global_CommandLine = cmdline; if (!cmdline) return 0; // Only accept up to 512 bytes from unregistered clients. cmdline = cmdline.slice(0,512); // Klud... | |
Global_CommandLine = cmdline; | function Unregistered_Commands() { var cmdline; var cmd; var command; if (!this.socket.is_connected) { this.quit(); return 0; } cmdline=this.socket.recvline(4096,0); if (!cmdline) return 0; // Only accept up to 512 bytes from unregistered clients. cmdline = cmdline.slice(0,512); // Kludge for broken clients. if ((cm... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.