rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
value = value.replace(/\xA0/g, ' '); | function string(value) { if (value != null) { value = value.replace(/^\s+/, ''); value = value.replace(/\s+$/, ''); value = value.replace(/\\/g, '\\\\'); value = value.replace(/\"/g, '\\"'); value = value.replace(/\r/g, '\\r'); value = value.replace(/\n/g, '\\n'); return '"' + value + '"'; } else { return '""';... | |
value = value.replace(/^\s+/, ''); value = value.replace(/\s+$/, ''); | function string(value) { if (value != null) { value = value.replace(/^\s+/, ''); value = value.replace(/\s+$/, ''); value = value.replace(/\\/g, '\\\\'); value = value.replace(/\"/g, '\\"'); value = value.replace(/\r/g, '\\r'); value = value.replace(/\n/g, '\\n'); value = value.replace(/\xA0/g, ' '); return '"'... | |
value = value.replace(/\xA0/g, ' '); | function string(value) { if (value != null) { value = value.replace(/^\s+/, ''); value = value.replace(/\s+$/, ''); value = value.replace(/\\/g, '\\\\'); value = value.replace(/\"/g, '\\"'); value = value.replace(/\r/g, '\\r'); value = value.replace(/\n/g, '\\n'); value = value.replace(/\xA0/g, ' '); return '"'... | |
value = value.replace(/\r/g, '\\r'); | string = function(value) { value = value.replace(/\"/g, '\\"'); value = value.replace(/\n/g, '\\n'); var unicode = false; for (var i = 0; i < value.length; i++) { if (value.charCodeAt(i) >= 128) { unicode = true; } } return (unicode ? 'u' : '') + '"' + value + '"';} | |
String_prototype_doDisplay_immutable = function(p) { | var String_prototype_doDisplay_immutable = function(p) { | String_prototype_doDisplay_immutable = function(p) { if (this.charAt(0) !== sc_SYMBOL_PREFIX) p.appendJSString(this); else p.appendJSString(this.slice(1));} |
String_prototype_doWrite_immutable = function(p) { | var String_prototype_doWrite_immutable = function(p) { | String_prototype_doWrite_immutable = function(p) { // TODO: handle escape-chars symbols if (this.charAt(0) !== sc_SYMBOL_PREFIX) p.appendJSString('"' + sc_escapeWriteString(this) + '"'); else p.appendJSString(this.slice(1));} |
String_prototype_doWrite_mutable = function(p) { | var String_prototype_doWrite_mutable = function(p) { | String_prototype_doWrite_mutable = function(p) { p.appendJSString(this);} |
if (! theForm) | if (! theForm) { alert("null form in submitForm!"); | function submitForm(theForm, theInput, theMimeType) { if (! theForm) return; refreshBufferList(g_cq_buffer_current); // copy the selected database to the session cookie var currDatabase = document.getElementById(g_cq_database_list_id).value; debug("submitForm: currDatabase = " + currDatabase); ... |
refreshBufferList(g_cq_buffer_current); | refreshBufferList(g_cq_buffer_current, "submitForm"); | function submitForm(theForm, theInput, theMimeType) { if (! theForm) return; refreshBufferList(g_cq_buffer_current); // copy the selected database to the session cookie var currDatabase = document.getElementById(g_cq_database_list_id).value; debug("submitForm: currDatabase = " + currDatabase); ... |
var currDatabase = document.getElementById(g_cq_database_list_id).value; | var currDatabase = document.getElementById(g_cq_eval_list_id).value; | function submitForm(theForm, theInput, theMimeType) { if (! theForm) return; refreshBufferList(g_cq_buffer_current); // copy the selected database to the session cookie var currDatabase = document.getElementById(g_cq_database_list_id).value; debug("submitForm: currDatabase = " + currDatabase); ... |
setCookie(g_cq_database_list_id, currDatabase, 30); | setCookie(g_cq_eval_list_id, currDatabase, 30); | function submitForm(theForm, theInput, theMimeType) { if (! theForm) return; refreshBufferList(g_cq_buffer_current); // copy the selected database to the session cookie var currDatabase = document.getElementById(g_cq_database_list_id).value; debug("submitForm: currDatabase = " + currDatabase); ... |
var currDatabase = document.getElementById(g_cq_eval_list_id).value; debug("submitForm: currDatabase = " + currDatabase); setCookie(g_cq_eval_list_id, currDatabase, 30); | if (false) { disableButtons(true); var fSet = getFrameset(); var qFrame = getQueryFrame(); var rFrame = getResultFrame(); if (!(rFrame && qFrame)) { debug("null queryFrame or resultFrame!"); } else { var f = function () { disableButtons(false) }; rFrame.onload = f; rFrame.onunload = f; rFrame.onabort = f; qFrame.... | function submitForm(theForm, theInput, theMimeType) { if (! theForm) { alert("null form in submitForm!"); return; } refreshBufferList(g_cq_buffer_current, "submitForm"); // copy the selected database to the session cookie var currDatabase = document.getElementById(g_cq_eval_list_id).value; ... |
return; | function submitForm(theForm, theInput, theMimeType) { if (! theForm) { alert("null form in submitForm!"); return; } refreshBufferList(g_cq_buffer_current, "submitForm"); // copy the selected database to the session cookie var currDatabase = document.getElementById(g_cq_eval_list_id).value; ... | |
$(gQueryInput).value = query; | $(kQueryInput).value = query; | function submitForm(theForm, query, theMimeType, saveHistory) { debug.print("submitForm: " + query); if (! theForm) { alert("null form in submitForm!"); return; } if (saveHistory) { gHistory.add(query); } // sync the session, if it has changed gSession.sync(); // copy query ... |
$(gQueryMimeType).value = theMimeType; | $(kQueryMimeType).value = theMimeType; | function submitForm(theForm, query, theMimeType, saveHistory) { debug.print("submitForm: " + query); if (! theForm) { alert("null form in submitForm!"); return; } if (saveHistory) { gHistory.add(query); } // sync the session, if it has changed gSession.sync(); // copy query ... |
gBuffers.activate(); | function submitForm(theForm, query, theMimeType, saveHistory) { if (! theForm) { alert("null form in submitForm!"); return; } gBuffers.activate(); if (saveHistory) { gHistory.add(query); } // sync the session, if it has changed gSession.sync(gHistory.lastModified); // TODO w... | |
debug("null queryFrame or resultFrame!"); | debug.print("null queryFrame or resultFrame!"); | function submitForm(theForm, theInput, theMimeType) { if (! theForm) { alert("null form in submitForm!"); return; } refreshBufferList(g_cq_buffer_current, "submitForm"); // TODO would like to disable buttons during post // but it's too problematic for now if (false) { disableButto... |
debug("resultFrame.onload = " + rFrame.onload); | debug.print("resultFrame.onload = " + rFrame.onload); | function submitForm(theForm, theInput, theMimeType) { if (! theForm) { alert("null form in submitForm!"); return; } refreshBufferList(g_cq_buffer_current, "submitForm"); // TODO would like to disable buttons during post // but it's too problematic for now if (false) { disableButto... |
debug("submitForm: currEval = " + currEval); | debug.print("submitForm: currEval = " + currEval); | function submitForm(theForm, theInput, theMimeType) { if (! theForm) { alert("null form in submitForm!"); return; } refreshBufferList(g_cq_buffer_current, "submitForm"); // TODO would like to disable buttons during post // but it's too problematic for now if (false) { disableButto... |
debug("submitForm: "+document.getElementById(g_cq_query_input).value); | debug.print("submitForm: "+document.getElementById(g_cq_query_input).value); | function submitForm(theForm, theInput, theMimeType) { if (! theForm) { alert("null form in submitForm!"); return; } refreshBufferList(g_cq_buffer_current, "submitForm"); // TODO would like to disable buttons during post // but it's too problematic for now if (false) { disableButto... |
debug("submitForm: mimeType = " + theMimeType); | debug.print("submitForm: mimeType = " + theMimeType); | function submitForm(theForm, theInput, theMimeType) { if (! theForm) { alert("null form in submitForm!"); return; } refreshBufferList(g_cq_buffer_current, "submitForm"); // TODO would like to disable buttons during post // but it's too problematic for now if (false) { disableButto... |
var currDatabase = document.getElementById(g_cq_database_list).value; setCookie(g_cq_database_list, currDatabase, 30); | var currDatabase = document.getElementById(g_cq_database_list_id).value; debug("submitForm: currDatabase = " + currDatabase); setCookie(g_cq_database_list_id, currDatabase, 30); | function submitForm(theForm, theInput, theMimeType) { if (! theForm) return; refreshBufferList(g_cq_buffer_current); // copy the selected database to the session cookie var currDatabase = document.getElementById(g_cq_database_list).value; //alert("submitForm: currDatabase = " + currDatabase); s... |
debug("submitForm: "+document.getElementById(g_cq_query_input).value); | function submitForm(theForm, theInput, theMimeType) { if (! theForm) return; refreshBufferList(g_cq_buffer_current); // copy the selected database to the session cookie var currDatabase = document.getElementById(g_cq_database_list).value; //alert("submitForm: currDatabase = " + currDatabase); s... | |
debug("submitForm: mimeType = " + theMimeType); | function submitForm(theForm, theInput, theMimeType) { if (! theForm) return; refreshBufferList(g_cq_buffer_current); // copy the selected database to the session cookie var currDatabase = document.getElementById(g_cq_database_list).value; //alert("submitForm: currDatabase = " + currDatabase); s... | |
gBuffers.activate(); | function submitForm(theForm, query, theMimeType, saveHistory) { debug.print("submitForm: " + query); if (! theForm) { alert("null form in submitForm!"); return; } // this causes the label to update gBuffers.activate(); if (saveHistory) { gHistory.add(query); } // sync the se... | |
debug.print("submitForm: " + $F(gQueryInput)); | function submitForm(theForm, query, theMimeType, saveHistory) { debug.print("submitForm: " + query); if (! theForm) { alert("null form in submitForm!"); return; } // this causes the label to update gBuffers.activate(); if (saveHistory) { gHistory.add(query); } // sync the se... | |
if (theMimeType != null) { | if (null != theMimeType) { | function submitForm(theForm, query, theMimeType, saveHistory) { debug.print("submitForm: " + query); if (! theForm) { alert("null form in submitForm!"); return; } // this causes the label to update gBuffers.activate(); if (saveHistory) { gHistory.add(query); } // sync the se... |
debug("submitFormWrapper: " + theForm + " as " + mimeType); | debug.print("submitFormWrapper: " + theForm + " as " + mimeType); | function submitFormWrapper(theForm, mimeType) { debug("submitFormWrapper: " + theForm + " as " + mimeType); if (!theForm) return; var query = getBuffer().value; saveQueryHistory(query); // this approach won't work: cookie get too big //saveBuffersRecoveryPoint(); submitForm(theForm, query, m... |
if (!theForm) | if (!theForm) { | function submitFormWrapper(theForm, mimeType) { debug.print("submitFormWrapper: " + theForm + " as " + mimeType); if (!theForm) return; var query = getBuffer().value; saveQueryHistory(query); // this approach won't work: cookie get too big //saveBuffersRecoveryPoint(); submitForm(theForm, qu... |
} | function submitFormWrapper(theForm, mimeType) { debug.print("submitFormWrapper: " + theForm + " as " + mimeType); if (!theForm) return; var query = getBuffer().value; saveQueryHistory(query); // this approach won't work: cookie get too big //saveBuffersRecoveryPoint(); submitForm(theForm, qu... | |
debug("submitHTML"); | function submitHTML(theForm) { //alert("submitHTML"); if (theForm) { //cqAutoSave(); submitForm(theForm, getBuffer().value, "text/html"); //resizeResultFrame(); }} // submitHTML | |
tinyMCE.removeTinyMCEFormElements(this); | submitPatch : function() { tinyMCE.removeTinyMCEFormElements(this); tinyMCE.triggerSave(); this.mceOldSubmit(); tinyMCE.isNotDirty = true; }, | |
tinyMCE.isNotDirty = true; | submitPatch : function() { tinyMCE.removeTinyMCEFormElements(this); tinyMCE.triggerSave(); this.mceOldSubmit(); tinyMCE.isNotDirty = true; }, | |
debug("submitText"); | function submitText(theForm) { //alert("submitText"); if (theForm) { //cqAutoSave(); submitForm(theForm, getBuffer().value, "text/plain"); //resizeResultFrame(); }} // submitText | |
debug("submitXML"); | function submitXML(theForm) { //alert("submitXML"); if (theForm) { //cqAutoSave(); submitForm(theForm, getBuffer().value, "text/xml"); //resizeResultFrame(); }} // submitXML | |
return log(address + " already subscribed"); user_list.push({ name: sender_name, address: address }); | return log(address + " is already subscribed"); var now=time(); user_list.push({ name: sender_name ,address: address ,created: system.timestr(now) ,last_activity: system.timestr(now) ,last_activity_time: format("%08lxh",now) }); | function subscription_control(cmd, list, address){ if(!address) address=sender_address; log(LOG_INFO,format("%s Subscription control command (%s) from %s" ,list.name,cmd,address)); /* Get subscriber list */ var user_fname = list.msgbase_file + user_list_ext; var user_file = new File(user_fname); if(!user_file.open("r... |
var np = ((notepad instanceof HTMLElement) || (notepad instanceof Object && notepad.propertyIsEnumerable( "innerHTML" ))) | var np = hop_isHTMLElement( notepad ) | var success = function( http ) { if( http.responseText != null ) { var found = 0; var np = ((notepad instanceof HTMLElement) || (notepad instanceof Object && notepad.propertyIsEnumerable( "innerHTML" ))) ? notepad : document.getElementById( notepad ); var ta = ((tab instanceof HTMLElement... |
var ta = ((tab instanceof HTMLElement) || (tab instanceof Object && tab.propertyIsEnumerable( "innerHTML" ))) | var ta = hop_isHTMLElement( tab ) | var success = function( http ) { if( http.responseText != null ) { var found = 0; var np = ((notepad instanceof HTMLElement) || (notepad instanceof Object && notepad.propertyIsEnumerable( "innerHTML" ))) ? notepad : document.getElementById( notepad ); var ta = ((tab instanceof HTMLElement... |
var np = (notepad instanceof HTMLElement) ? notepad : document.getElementById( notepad ); var ta = (tab instanceof HTMLElement) ? tab : document.getElementById( tab ); | var np = ((notepad instanceof HTMLElement) || (notepad instanceof Object && notepad.propertyIsEnumerable( "innerHTML" ))) ? notepad : document.getElementById( notepad ); var ta = ((tab instanceof HTMLElement) || (tab instanceof Object && tab.propertyIsEnumerable( "innerHTML" ))) ? tab : document.getElementById( tab ); | var success = function( http ) { if( http.responseText != null ) { var found = 0; var np = (notepad instanceof HTMLElement) ? notepad : document.getElementById( notepad ); var ta = (tab instanceof HTMLElement) ? tab : document.getElementById( tab ); var i; for( i = 0; i < np.childNodes.length; i++ ... |
var np = document.getElementById( notepad ); | var found = 0; var np = (notepad instanceof HTMLElement) ? notepad : document.getElementById( notepad ); var ta = (tab instanceof HTMLElement) ? tab : document.getElementById( tab ); var i; | var success = function( http ) { if( http.responseText != null ) { var np = document.getElementById( notepad ); for( i = 0; i < np.childNodes.length; i++ ) { var c = np.childNodes[ i ]; if( c.className == "hop-notepad-tabs" ) { for( j = 0; j < c.childNodes.length; j++ ) { var c2 = c.childNod... |
if( c2.id == tab ) { | if( c2 = ta ) { | var success = function( http ) { if( http.responseText != null ) { var np = document.getElementById( notepad ); for( i = 0; i < np.childNodes.length; i++ ) { var c = np.childNodes[ i ]; if( c.className == "hop-notepad-tabs" ) { for( j = 0; j < c.childNodes.length; j++ ) { var c2 = c.childNod... |
found = j; | var success = function( http ) { if( http.responseText != null ) { var np = document.getElementById( notepad ); for( i = 0; i < np.childNodes.length; i++ ) { var c = np.childNodes[ i ]; if( c.className == "hop-notepad-tabs" ) { for( j = 0; j < c.childNodes.length; j++ ) { var c2 = c.childNod... | |
Editor.log.debug("supportsCommand"); | supportsCommand : function(cmd) { Editor.log.debug("supportsCommand"); switch (cmd) { case "cmd_close": case "cmd_open": case "cmd_save": case "cmd_selenium_play": case "cmd_selenium_pause": case "cmd_selenium_step": return true; default: return false; } }, | |
{ | function switchChannel(xy, bouquet, channel){ if (window.screen.width < 800) { NewWindow('/cgi-bin/zapTo?path='+xy+'&curBouquet='+bouquet+'&curChannel='+channel, 'zap', '1', '1', 'no'); } else { if (zapMode < 4) { document.location = "/cgi-bin/zapTo?path="+xy+"&curBouquet="+bouquet+"&curChannel="+channel; setTim... | |
setTimeout("zapHeaderReload()", 3000); } | function switchChannel(xy, bouquet, channel){ if (window.screen.width < 800) { NewWindow('/cgi-bin/zapTo?path='+xy+'&curBouquet='+bouquet+'&curChannel='+channel, 'zap', '1', '1', 'no'); } else { if (zapMode < 4) { document.location = "/cgi-bin/zapTo?path="+xy+"&curBouquet="+bouquet+"&curChannel="+channel; setTim... | |
{ document.location = "/cgi-bin/zapTo?path="+xy; setTimeout("zapBodyReload()", 3000); } | document.location = "?path="+xy; setTimeout("zapHeaderReload()", 3000); | function switchChannel(xy, bouquet, channel){ if (window.screen.width < 800) { NewWindow('/cgi-bin/zapTo?path='+xy+'&curBouquet='+bouquet+'&curChannel='+channel, 'zap', '1', '1', 'no'); } else { if (zapMode < 4) { document.location = "/cgi-bin/zapTo?path="+xy+"&curBouquet="+bouquet+"&curChannel="+channel; setTim... |
document.location = "?path = "+xy; | document.location = "body?mode=zap&zapmode=4&zapsubmode=1&path="+xy; | function switchChannel(xy, bouquet, channel){ if (window.screen.width < 800) { NewWindow('cgi-bin/zapTo?path='+xy+'&curBouquet='+bouquet+'&curChannel='+channel, 'zap', '1', '1', 'no'); } else { if (zapMode < 4) document.location = "cgi-bin/zapTo?path="+xy+"&curBouquet="+bouquet+"&curChannel="+channel; else docum... |
document.location = "?path="+xy; | document.location = "/cgi-bin/zapTo?path="+xy; | function switchChannel(xy, bouquet, channel){ if (window.screen.width < 800) { NewWindow('/cgi-bin/zapTo?path='+xy+'&curBouquet='+bouquet+'&curChannel='+channel, 'zap', '1', '1', 'no'); } else { if (zapMode < 4) { document.location = "/cgi-bin/zapTo?path="+xy+"&curBouquet="+bouquet+"&curChannel="+channel; setTim... |
setTimeout("parent.header.location.reload()", 2000); | if (screen.width < 800) setTimeout("reload()", 3000); else setTimeout("parent.header.location.reload()", 3000); | function switchChannel(xy, bouquet, channel){ document.location = "/cgi-bin/zapTo?path="+xy+"&curBouquet="+bouquet+"&curChannel="+channel; setTimeout("parent.header.location.reload()", 2000);} |
fileClicked(filesSelect.options[filesSelect.selectedIndex].value, false); | function switchFile(){ var filesSelect = document.getElementById("files"); loadFile(filesSelect.options[filesSelect.selectedIndex].value, true);} | |
functionSelect.blur(); | function switchFunction(index, shouldResetPopup){ if (shouldResetPopup === undefined) shouldResetPopup = false; var sourcesFrame = window.frames['sourcesFrame']; if (shouldResetPopup || index == 0) { document.getElementById("functionPopupButtonContent").innerHTML = '<span class="placeholder"><No ... | |
console.log('leave mode?'+mode+","+this.mode); | switchModeTo: function(mode) { console.log('leave mode?'+mode+","+this.mode); if (mode != this.mode) { this.mode = mode; this.buttons[mode].firstChild.src = this.buttons[mode].activeImgLocation; } else { this.leaveMode(); } }, | |
switch (this.mode) { case "zoombox": this.map.div.style.cursor = "crosshair"; break; default: this.map.div.style.cursor = "default"; break; } | switchModeTo: function(mode) { if (mode != this.mode) { if (this.mode && this.buttons[this.mode]) { OpenLayers.Util.modifyAlphaImageDiv(this.buttons[this.mode], null, null, null, this.buttons[this.mode].imgLocation); } if (this.mode == "measure" && mode != "mea... | |
effect.element.undoPositionend(); | effect.element.undoPositioned(); | Effect.SwitchOff = function(element) { element = $(element); var oldOpacity = element.getInlineOpacity(); return new Effect.Appear(element, { duration: 0.4, from: 0, transition: Effect.Transitions.flicker, afterFinishInternal: function(effect) { new Effect.Scale(effect.element, 1, { duratio... |
return new Effect.Appear(element, { | return new Effect.Appear(element, $H({ | Effect.SwitchOff = function(element) { element = $(element); var oldOpacity = element.getInlineOpacity(); return new Effect.Appear(element, { duration: 0.4, from: 0, transition: Effect.Transitions.flicker, afterFinishInternal: function(effect) { new Effect.Scale(effect.element, 1, { duratio... |
}); | }).merge(arguments[1] || {})); | Effect.SwitchOff = function(element) { element = $(element); var oldOpacity = element.getInlineOpacity(); return new Effect.Appear(element, { duration: 0.4, from: 0, transition: Effect.Transitions.flicker, afterFinishInternal: function(effect) { new Effect.Scale(effect.element, 1, { duratio... |
new Effect.Appear(element, { duration: 0.4, transition: Effect.Transitions.flicker, afterFinish: function(effect) { effect.element.style.overflow = 'hidden'; new Effect.Scale(effect.element, 1, { duration: 0.3, scaleFromCenter: true, scaleX: false, scaleContent: false, afterUpdate: function(effect) { if(effect.element.... | element = $(element); var oldOpacity = Element.getInlineOpacity(element); return new Effect.Appear(element, { duration: 0.4, from: 0, transition: Effect.Transitions.flicker, afterFinishInternal: function(effect) { new Effect.Scale(effect.element, 1, { duration: 0.3, scaleFromCenter: true, scaleX: false, scaleContent: f... | Effect.SwitchOff = function(element) { new Effect.Appear(element, { duration: 0.4, transition: Effect.Transitions.flicker, afterFinish: function(effect) { effect.element.style.overflow = 'hidden'; new Effect.Scale(effect.element, 1, { duration: 0.3, scaleFromCenter: true, scale... |
return new Effect.Appear(element, $H({ | return new Effect.Appear(element, Object.extend({ | Effect.SwitchOff = function(element) { element = $(element); var oldOpacity = element.getInlineOpacity(); return new Effect.Appear(element, $H({ duration: 0.4, from: 0, transition: Effect.Transitions.flicker, afterFinishInternal: function(effect) { new Effect.Scale(effect.element, 1, { dura... |
}).merge(arguments[1] || {})); | }, arguments[1] || {})); | Effect.SwitchOff = function(element) { element = $(element); var oldOpacity = element.getInlineOpacity(); return new Effect.Appear(element, $H({ duration: 0.4, from: 0, transition: Effect.Transitions.flicker, afterFinishInternal: function(effect) { new Effect.Scale(effect.element, 1, { dura... |
paneElement.style.display = null; | paneElement.style.removeProperty("display"); | function switchPane(pane){ currentPane = pane; for (var i = 0; i < tabNames.length; i++) { var paneElement = document.getElementById(tabNames[i] + "Pane"); var button = document.getElementById(tabNames[i] + "Button"); if (!button.originalClassName) button.originalClassName = button... |
debug.print("SessionClass.sync: disabled"); | debug.print(label + "disabled"); | this.sync = function() { if (this.syncDisabled) { debug.print("SessionClass.sync: disabled"); return false; } var lastModified = this.history.getLastModified(); debug.print("SessionClass.sync: " + lastModified + " ? " + this.lastSync); if (... |
debug.print("SessionClass.sync: " + lastModified + " ? " + this.lastSync); | debug.print(label + lastModified + " ? " + this.lastSync); | this.sync = function() { if (this.syncDisabled) { debug.print("SessionClass.sync: disabled"); return false; } var lastModified = this.history.getLastModified(); debug.print("SessionClass.sync: " + lastModified + " ? " + this.lastSync); if (... |
&& (new Date() - this.lastSync) < (1000 * this.autosave.frequency)) | && lastLineStatus < this.lastSync) | this.sync = function() { if (this.syncDisabled) { debug.print("SessionClass.sync: disabled"); return false; } var lastModified = this.history.getLastModified(); debug.print("SessionClass.sync: " + lastModified + " ? " + this.lastSync); if (... |
debug.print("SessionClass.sync: " + params); | this.sync = function() { if (this.syncDisabled) { debug.print("SessionClass.sync: disabled"); return false; } var lastModified = this.history.getLastModified(); debug.print("SessionClass.sync: " + lastModified + " ? " + this.lastSync); if (... | |
result.value = element.innerHTML; | result.value = SeleniumIDE.getRecorderWindow().exactMatchPattern(element.innerHTML); | table: function(window, element) { var result = { name: "Table" }; if (element && element.tagName && 'td' == element.tagName.toLowerCase()) { var parentTable = null; var temp = element.parentNode; while (temp != null) { if (temp.tagName.toLowerCase() == 'table') { parentTable = temp; break; } ... |
result.target = "(Unavailable: Table must have an id or name declared)"; | result.target = "(Unavailable: Table must have an id declared)"; | table: function(window, element) { var result = { name: "Table" }; if (element && element.tagName && 'td' == element.tagName.toLowerCase()) { var parentTable = null; var temp = element.parentNode; while (temp != null) { if (temp.tagName.toLowerCase() == 'table') { parentTable = temp; break; } ... |
el.firstChild.data = newval; | el.innerHTML = newval; | Calendar.tableMouseOver = function (ev) { var cal = Calendar._C; if (!cal) { return; } var el = cal.activeDiv; var target = Calendar.getTargetElement(ev); if (target == el || target.parentNode == el) { Calendar.addClass(el, "hilite active"); Calendar.addClass(el.parentNode, "rowhilite"); } else { if (typeof el.navt... |
if(typeof Builder == 'undefined') throw("Effect.tagifyText requires including script.aculo.us' builder.js library"); | tagifyText: function(element) { var tagifyStyle = 'position:relative'; if(/MSIE/.test(navigator.userAgent)) tagifyStyle += ';zoom:1'; element = $(element); $A(element.childNodes).each( function(child) { if(child.nodeType==3) { child.nodeValue.toArray().each( function(character) { elem... | |
$A(child.nodeValue).each( function(character) { | child.nodeValue.toArray().each( function(character) { | tagifyText: function(element) { var tagifyStyle = "position:relative"; if(/MSIE/.test(navigator.userAgent)) tagifyStyle += ";zoom:1"; element = $(element); $A(element.childNodes).each( function(child) { if(child.nodeType==3) { $A(child.nodeValue).each( function(character) { element.in... |
if(/MSIE/.test(navigator.userAgent)) tagifyStyle += ';zoom:1'; | if(/MSIE/.test(navigator.userAgent) && !window.opera) tagifyStyle += ';zoom:1'; | tagifyText: function(element) { if(typeof Builder == 'undefined') throw("Effect.tagifyText requires including script.aculo.us' builder.js library"); var tagifyStyle = 'position:relative'; if(/MSIE/.test(navigator.userAgent)) tagifyStyle += ';zoom:1'; element = $(element); $A(element.childNod... |
function terminate_everything(terminate_reason) { log("Terminating: " + terminate_reason); | function terminate_everything(terminate_reason, error) { log(error ? LOG_ERR : LOG_NOTICE, "Terminating: " + terminate_reason); | function terminate_everything(terminate_reason) { log("Terminating: " + terminate_reason); for(thisClient in Local_Sockets_Map) { var Client = Local_Sockets_Map[thisClient]; Client.rawout("ERROR :" + terminate_reason); Client.socket.close(); } exit();} |
exit(); | exit(error); | function terminate_everything(terminate_reason) { log("Terminating: " + terminate_reason); for(thisClient in Local_Sockets_Map) { var Client = Local_Sockets_Map[thisClient]; Client.rawout("ERROR :" + terminate_reason); Client.socket.close(); } exit();} |
if (Client.local) | if (Client && Client.local) | function terminate_everything(terminate_reason) { for(thisClient in Clients) { var Client = Clients[thisClient]; if (Client.local) Client.quit(terminate_reason,false) } exit();} |
log("Terminating: " + terminate_reason); | function terminate_everything(terminate_reason) { for(thisClient in Clients) { var Client = Clients[thisClient]; if (Client && Client.local) Client.quit(terminate_reason,false) } exit();} | |
Client.quit(terminate_reason,false) | Client.quit(terminate_reason,true) | function terminate_everything(terminate_reason) { log("Terminating: " + terminate_reason); for(thisClient in Clients) { var Client = Clients[thisClient]; if (Client && Client.local) Client.quit(terminate_reason,false) } exit();} |
client = Clients[thisClient]; | var client = Clients[thisClient]; | function terminate_everything(terminate_reason) { for(thisClient in Clients) { client = Clients[thisClient]; if (client.local) client.quit(terminate_reason,false) }} |
var client = Clients[thisClient]; if (client.local) client.quit(terminate_reason,false) | var Client = Clients[thisClient]; if (Client.local) Client.quit(terminate_reason,false) | function terminate_everything(terminate_reason) { for(thisClient in Clients) { var client = Clients[thisClient]; if (client.local) client.quit(terminate_reason,false) }} |
for (var i = 0; i < node.childNodes.length + 1; i++) { print("item " + i + ": " + node.childNodes.item(i)); | var childNodes = node.childNodes; for (var i = 0; i < childNodes.length + 1; i++) { print("item " + i + ": " + childNodes.item(i)); | function test(){ print("Node is " + Node); for (var p in Node) print(p + ": " + Node[p]); node = new Node(); print("node is " + node); for (var p in node) print(p + ": " + node[p]); child1 = new Node(); child2 = new Node(); child3 = new Node(); node.appendChild(child1); ... |
for (var i = 0; i < node.childNodes.length + 1; i++) { print(i + ": " + node.childNodes[i]); | for (var i = 0; i < childNodes.length + 1; i++) { print(i + ": " + childNodes[i]); | function test(){ print("Node is " + Node); for (var p in Node) print(p + ": " + Node[p]); node = new Node(); print("node is " + node); for (var p in node) print(p + ": " + node[p]); child1 = new Node(); child2 = new Node(); child3 = new Node(); node.appendChild(child1); ... |
for (var i = 0; i < node.childNodes.length + 1; i++) { print("item " + i + ": " + node.childNodes.item(i)); | for (var i = 0; i < childNodes.length + 1; i++) { print("item " + i + ": " + childNodes.item(i)); | function test(){ print("Node is " + Node); for (var p in Node) print(p + ": " + Node[p]); node = new Node(); print("node is " + node); for (var p in node) print(p + ": " + node[p]); child1 = new Node(); child2 = new Node(); child3 = new Node(); node.appendChild(child1); ... |
var yahoo = document.getElementById("test2").getElementsByTagName("a")[1]; assertNull(eventManager.getAttributesXPathLocator(yahoo, pageBot)); | function testAttributesXPathLocator() { var elements = document.getElementById("test1").getElementsByTagName("input"); var pageBot = eventManager.getPageBot(window); assertEquals("//input[@name='foo']", eventManager.getAttributesXPathLocator(elements[0], pageBot)); assertEquals("//input[@name='foo' and @value='bar' and... | |
assertEquals(" assertNull(eventManager.getAttributesXPathLocator(elements[2], pageBot)); | assertEquals(" assertEquals(" assertEquals(" assertNull(eventManager.getAttributesXPathLocator(elements[4], pageBot)); | function testAttributesXPathLocator() { var elements = document.getElementById("test1").getElementsByTagName("input"); var pageBot = eventManager.getPageBot(window); assertEquals("//input[@name='foo']", eventManager.getAttributesXPathLocator(elements[0], pageBot)); assertEquals("//input[@name='foo' and @value='bar' and... |
assertEquals("'\xA0'", decodeText("' '")); assertEquals("'\xA0'", decodeText("' '")); assertEquals("'\xA0'", decodeText("' '")); | assertEquals("' '", decodeText("' '")); assertEquals("' '", decodeText("' '")); assertEquals("' '", decodeText("' '")); | function testDecodeTextWithHtmlFormat() { assertEquals("abc", decodeText("abc")); assertEquals("'\xA0'", decodeText("' '")); assertEquals("'\xA0'", decodeText("' '")); assertEquals("'\xA0'", decodeText("' '")); assertEquals("'abc'", decodeText("'abc'")); assertEquals("&", decodeText("&amp;")); as... |
assertEquals("a\nb", decodeText("a<br>b")); assertEquals("a\nb", decodeText("a<br />b")); | function testDecodeTextWithHtmlFormat() { assertEquals("abc", decodeText("abc")); assertEquals("' '", decodeText("' '")); assertEquals("' '", decodeText("' '")); assertEquals("' '", decodeText("' '")); assertEquals("'abc'", decodeText("'abc'")); assertEquals("&", decodeText("&amp;")); assertEqual... | |
assertEquals(" ", encodeText(" ")); assertEquals(" ", encodeText(" ")); | function testEncodeTextWithHtmlFormat() { assertEquals(" ", encodeText("\xA0")); assertEquals("'abc'", encodeText("'abc'")); assertEquals("&amp;", encodeText("&")); assertEquals("a=b&c=d", encodeText("a=b&c=d")); assertEquals("&foobar;", encodeText("&foobar;"));} | |
assertEquals("<br />", encodeText("\n")); | function testEncodeTextWithHtmlFormat() { assertEquals(" ", encodeText("\xA0")); assertEquals(" ", encodeText(" ")); assertEquals(" ", encodeText(" ")); assertEquals("'abc'", encodeText("'abc'")); assertEquals("&amp;", encodeText("&")); assertEquals("a=b&c=d", encodeText("a=b&c=d")); assertEqua... | |
debug('<span class="fail">FAIL</span> ' + msg + '</span>'); | debug('<span class="fail">FAIL</span> ' + escapeHTML(msg) + '</span>'); | function testFailed(msg){ debug('<span class="fail">FAIL</span> ' + msg + '</span>');} |
assertEquals('assertEquals(new String[] {"", "abc", "ab,c"}, selenium.getSelectOptions("theSelect"));', nextCommand()); | assertEquals('String[] array1 = selenium.getSelectOptions("theSelect");\n' + 'assertEquals(3, array1.length);\n' + 'assertEquals("", array1[0]);\n' + 'assertEquals("abc", array1[1]);\n' + 'assertEquals("ab,c", array1[2]);', nextCommand()); | function testJavaRCFormat() { var format = this.formats.findFormat("java-rc"); var f = format.getFormatter(); this.formatter = f; assertEquals('assertTrue(selenium.isTextPresent("hello"));', nextCommand()); assertEquals('assertFalse(selenium.isTextPresent("hello"));', nextCommand()); assertEquals('boolean abc = seleniu... |
assertEquals('assertFalse(Pattern.compile("ab[cd]").matcher(selenium.getText("test")).find());', nextCommand()); | function testJavaRCFormat() { var format = this.formats.findFormat("java-rc"); var f = format.getFormatter(); this.formatter = f; assertEquals('assertTrue(selenium.isTextPresent("hello"));', nextCommand()); assertEquals('assertFalse(selenium.isTextPresent("hello"));', nextCommand()); assertEquals('boolean abc = seleniu... | |
assertEquals('assertTrue(selenium.getText("abc").matches("^def(.|[\\\\r\\\\n])*$"));', nextCommand()); | assertEquals('assertTrue(selenium.getText("abc").matches("^def[\\\\s\\\\S]*$"));', nextCommand()); | function testJavaRCFormat() { var format = this.formats.findFormat("java-rc"); var f = format.getFormatter(); this.formatter = f; assertEquals('assertTrue(selenium.isTextPresent("hello"));', nextCommand()); assertEquals('assertFalse(selenium.isTextPresent("hello"));', nextCommand()); assertEquals('boolean abc = seleniu... |
var yahooJP = document.getElementById("test2").getElementsByTagName("a")[4]; assertLocator("link=Yahoo Japan", eventManager.getLinkLocator(yahooJP, pageBot), yahooJP); | function testLinkLocator() { var google = document.getElementById("test2").getElementsByTagName("a")[0]; assertLocator("link=exact:Google:Google", eventManager.getLinkLocator(google, pageBot), google); var yahoo = document.getElementById("test2").getElementsByTagName("a")[1]; assertLocator("link=Yahoo", eventManager.ge... | |
var yahoo2 = document.getElementById("test2").getElementsByTagName("a")[2]; assertLocator(" | function testLinkXPathLocator() { var yahoo = document.getElementById("test2").getElementsByTagName("a")[1]; assertLocator("//a[contains(text(),'Yahoo')]", builders.buildWith('linkXPath', yahoo), yahoo); var yahoo2 = document.getElementById("test2").getElementsByTagName("a")[2]; assertLocator("//a[img/@alt='test']", bu... | |
else { try { var processNext = handler.executor.call(selenium, command.target, command.value); if (handler.type == "assert") { this.assertionPassed(); } else { this.actionOK(); } | function TestLoop(commandFactory) { this.commandFactory = commandFactory; this.commandInterval = 0; this.processState == SELENIUM_PROCESS_CONTINUE; var self = this; this.start = function() { self.continueCurrentTest(); } this.continueCurrentTest = function() { this.processState = self... | |
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... | function TestLoop(commandFactory) { this.commandFactory = commandFactory; this.commandInterval = 0; this.processState == SELENIUM_PROCESS_CONTINUE; var self = this; this.start = function() { self.continueCurrentTest(); } this.continueCurrentTest = function() { this.processState = self... |
LOG.error(e); | function TestLoop(commandFactory, executionContext) { this.commandFactory = commandFactory; var self = this; this.start = function() { this.continueCurrentTest(); }; this.continueCurrentTest = function() { var testStatus = this.kickoffNextCommandExecution(); if (testStatus == TEST_FI... | |
if (interval >= 0) { | if (interval < 0) { this.waitingForNext(); } else { | function TestLoop(commandFactory) { this.commandFactory = commandFactory; var self = this; this.start = function() { this.continueCurrentTest(); }; this.continueCurrentTest = function() { var testStatus = this.kickoffNextCommandExecution(); if (testStatus == TEST_FINISHED) { ... |
throw new Error("Unknown command"); | throw new Error("Unknown command: '" + command.command + "'"); | function TestLoop(commandFactory, executionContext) { this.commandFactory = commandFactory; var self = this; this.start = function() { this.continueCurrentTest(); }; this.continueCurrentTest = function() { var testStatus = this.kickoffNextCommandExecution(); if (testStatus == TEST_FI... |
log.error("failed to select format: " + error); | this.log.error("failed to select format: " + error); | function TestManager(options) { this.options = options; this.log = new Log("TestManager"); this.presetFormatInfos = [new InternalFormatInfo("default", "HTML", "html.js"), new InternalFormatInfo("ruby", "Ruby", "ruby.js")]; this.reloadFormats(); if (options.selectedFormat != null) { try { this.selectFormat(o... |
this.log.debug("selecting default format"); | function TestManager(options) { this.options = options; this.log = new Log("TestManager"); this.presetFormatInfos = [new InternalFormatInfo("default", "HTML", "html.js"), new InternalFormatInfo("ruby", "Ruby", "ruby.js")]; this.reloadFormats(); if (options.selectedFormat != null) { try { this.selectFormat(o... | |
this.currentFormatInfo = this.formatInfos[0]; | if (options.selectedFormat != null) { try { this.selectFormat(options.selectedFormat); } catch (error) { log.error("failed to select format: " + error); } } if (this.currentFormatInfo == null) { this.currentFormatInfo = this.formatInfos[0]; } | function TestManager(options) { this.options = options; this.log = new Log("TestManager"); this.presetFormatInfos = [new InternalFormatInfo("default", "HTML", "html.js"), new InternalFormatInfo("ruby", "Ruby", "ruby.js")]; this.reloadFormats(); this.currentFormatInfo = this.formatInfos[0];} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.