rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
var method = command.command.match(/^verify/) ? 'verify' : 'assert'; line = statement(eq[method]()); | var method = (!this.assertOrVerifyFailureOnNext && command.command.match(/^verify/)) ? 'verify' : 'assert'; line = eq[method](); | function formatCommand(command) { var line = null; if (command.type == 'command') { var def = command.getDefinition(); if (def && def.isAccessor) { var call = new CallSelenium(def.name); for (var i = 0; i < def.params.length; i++) { call.args.push(xlateArgument(command.getParameterAt(i))); } var extraArg =... |
var method = command.command.match(/^verify/) ? 'verify' : 'assert'; | var method = (!this.assertOrVerifyFailureOnNext && command.command.match(/^verify/)) ? 'verify' : 'assert'; | function formatCommand(command) { var line = null; if (command.type == 'command') { var def = command.getDefinition(); if (def && def.isAccessor) { var call = new CallSelenium(def.name); for (var i = 0; i < def.params.length; i++) { call.args.push(xlateArgument(command.getParameterAt(i))); } var extraArg =... |
if (line && (this.assertFailureOnNext || this.verifyFailureOnNext)) { | if (line && this.assertOrVerifyFailureOnNext) { | function formatCommand(command) { var line = null; if (command.type == 'command') { var def = command.getDefinition(); if (def && def.isAccessor) { var call = new CallSelenium(def.name); for (var i = 0; i < def.params.length; i++) { call.args.push(xlateArgument(command.getParameterAt(i))); } var extraArg =... |
if (line) { return indent() + line; } else { return null; } | return line; | function formatCommand(command) { var line = null; if (command.type == 'command') { var def = command.getDefinition(); if (def && def.isAccessor) { var call = new CallSelenium(def.name); for (var i = 0; i < def.params.length; i++) { call.args.push(xlateArgument(command.getParameterAt(i))); } var extraArg =... |
var eq = new Equals(xlateValue('String', value), call); | var eq = seleniumEquals('String', value, call); | function formatCommand(command) { var line = null; if (command.type == 'command') { var def = command.getDefinition(); if (def && def.isAccessor) { var call = new CallSelenium(def.name); for (var i = 0; i < def.params.length; i++) { call.args.push(xlateArgument(command.getParameterAt(i))); } var extraArg =... |
if (line != null) line = addIndent(line); | function formatCommands(commands) { commands = filterForRemoteControl(commands); if (this.lastIndent == null) { this.lastIndent = ''; } var result = ''; for (var i = 0; i < commands.length; i++) { var line = null; var command = commands[i]; if (command.type == 'line') { line = command.line; } else if (command.ty... | |
return indent() + "# " + comment.comment; | return comment.comment.replace(/.+/mg, function(str) { return "# " + str; }); | function formatComment(comment) { return indent() + "# " + comment.comment;} |
return indent() + " | return " | function formatComment(comment) { return comment.comment.replace(/.+/mg, function(str) { return indent() + "// " + str; });} |
return indent() + " | return comment.comment.replace(/.+/mg, function(str) { return " }); | function formatComment(comment) { return indent() + "// " + comment.comment;} |
return indent() + "# " + str; | return "# " + str; | function formatComment(comment) { return comment.comment.replace(/.+/mg, function(str) { return indent() + "# " + str; });} |
var header = options.header.replace(/\$\{className\}/, className). replace(/\$\{methodName\}/, methodName); | var header = options.header.replace(/\$\{className\}/g, className). replace(/\$\{methodName\}/g, methodName); | function formatHeader(testCase) { var className = testCase.name; if (!className) { className = "NewTest"; } var formatLocal = testCase.formatLocal(this.name); methodName = 'test_' + underscore(className.replace(/Test$/, "").replace(/^Test/, ""). replace(/^[A-Z]/, function(str) { return str.toLowerCase() }));... |
var methodName = "test" + className; | var methodName = className; | function formatHeader(testCase) { var className = testCase.name; if (!className) { className = "NewTest"; } var formatLocal = testCase.formatLocal(this.name); if (!formatLocal.packageName) { formatLocal.packageName = options.packageName; } var methodName = "test" + className; methodName = methodName.replace(/Test$/, ... |
methodName = methodName.replace(/^Test/, ""); methodName = "test" + methodName; | function formatHeader(testCase) { var className = testCase.name; if (!className) { className = "NewTest"; } var formatLocal = testCase.formatLocal(this.name); if (!formatLocal.packageName) { formatLocal.packageName = options.packageName; } var methodName = "test" + className; methodName = methodName.replace(/Test$/, ... | |
h = h.replace(/<pre([^>]*)>(.*?)<\/pre>/gi, function (a, b, c) { c = c.replace(/<br\s*\/>/gi, '\n'); return '<pre' + b + '>' + c + '</pre>'; }); | formatHTML : function(h) { var s = this.settings, p = '', i = 0, li = 0, o = '', l; h = h.replace(/\r/g, ''); // Windows sux, isn't carriage return a thing of the past :) h = '\n' + h; h = h.replace(new RegExp('\\n\\s+', 'gi'), '\n'); // Remove previous formatting h = h.replace(this.nlBeforeRe, '\n<$1$2>'); h = ... | |
var $A = Array.from = function(iterable) { if (iterable.toArray) { return iterable.toArray(); } else { var results = []; for (var i = 0; i < iterable.length; i++) results.push(iterable[i]); return results; } | $A = Array.from = function(iterable) { var results = []; for (var i = 0; i < iterable.length; i++) results.push(iterable[i]); return results; | var $A = Array.from = function(iterable) { if (iterable.toArray) { return iterable.toArray(); } else { var results = []; for (var i = 0; i < iterable.length; i++) results.push(iterable[i]); return results; }} |
$A = Array.from = function(iterable) { var results = []; for (var i = 0; i < iterable.length; i++) results.push(iterable[i]); return results; | var $A = Array.from = function(iterable) { if (iterable.toArray) { return iterable.toArray(); } else { var results = []; for (var i = 0; i < iterable.length; i++) results.push(iterable[i]); return results; } | $A = Array.from = function(iterable) { var results = []; for (var i = 0; i < iterable.length; i++) results.push(iterable[i]); return results;} |
obj.style.background = colors[ i ]; | var func = function() { i++; obj.style.background = colors[ i ]; return (i < colors.length); } | |
href = g2submitMakeAbsoluteURL(href); | function g2submitGetProtocol(node) { var href = node.getAttribute("href"); var protocol = href.substring(0, href.indexOf(':')).toLowerCase(); var extension = href.substring(href.lastIndexOf('.'),href.length).toLowerCase(); // debug helper //g2submitError("EXTENSION: |" + extension + "| PROTOCOL: " + protocol +... | |
if (href.indexOf(": var base = g2submit_document.URL; if (base.charAt(base.length - 1) == '/') { href = base + href; } else { if (href.charAt(0) == '/') { href = base.substring(0, base.indexOf('/', base.indexOf(" } else { href = base.substring(0, base.lastIndexOf('/')) + '/' + href; } } } | href = g2submitMakeAbsoluteURL(href); | function g2submitHttpClient() { if (g2submit_link_node) { var href = g2submit_link_node.getAttribute("href"); if (href.length == 0) { g2submitError("url is empty"); } else { if (href.indexOf("://") == -1) { // convert to absolute URL var ba... |
if (href.indexOf(": var base = g2submit_document.URL; if (base.charAt(base.length - 1) == '/') { href = base + href; } else { if (href.charAt(0) == '/') { href = base.substring(0, base.indexOf('/', base.indexOf(" } else { href = base.substring(0, base.lastIndexOf('/')) + '/' + href; } } } | href = g2submitMakeAbsoluteURL(href); | function g2submitTorrentClient() { if (g2submit_link_node) { var href = g2submit_link_node.getAttribute("href"); if (href.length == 0) { g2submitError("url is empty"); } else { if (href.indexOf("://") == -1) { // convert to absolute URL var... |
var i; | var i, j; | function generate_config_h(){ var infile, outfile; var indata; var prefix; prefix = PHP_PREFIX.replace(new RegExp("\\\\", "g"), "\\\\"); STDOUT.WriteLine("Generating main/config.w32.h"); infile = FSO.OpenTextFile("win32/build/config.w32.h.in", 1); indata = infile.ReadAll(); infile.Close(); outfile = FSO.CreateTextFil... |
outfile.WriteLine("#define " + keys[i] + " " + item[0]); | pieces = item[0]; if (typeof(pieces) == "string" && pieces.charCodeAt(0) == 34) { stuff_to_crack = pieces; pieces = ""; while (stuff_to_crack.length) { j = 65; while (stuff_to_crack.charCodeAt(j) != 32 && j < stuff_to_crack.length) j++; chunk = stuff_to_crack.substr(0, j); pieces += chunk; stuff_to_crack = stuff_to... | function generate_config_h(){ var infile, outfile; var indata; var prefix; prefix = PHP_PREFIX.replace(new RegExp("\\\\", "g"), "\\\\"); STDOUT.WriteLine("Generating main/config.w32.h"); infile = FSO.OpenTextFile("win32/build/config.w32.h.in", 1); indata = infile.ReadAll(); infile.Close(); outfile = FSO.CreateTextFil... |
MFO.WriteLine("\t$(RC) /fo $(BUILD_DIR)\\" + resname + | MFO.WriteLine("\t$(RC) /fo $(BUILD_DIR)\\" + resname + logo + | function generate_version_info_resource(makefiletarget, creditspath){ var resname = makefiletarget + ".res"; var res_desc = "PHP " + makefiletarget; var res_prod_name = res_desc; var credits; var thanks = ""; if (FSO.FileExists(creditspath + '/CREDITS')) { credits = FSO.OpenTextFile(creditspath + '/CREDITS', 1); res_... |
element = $(element); return element.className.split(' '); | return $(element).className.split(' '); | get: function(element) { element = $(element); return element.className.split(' '); }, |
f_core.Assert(typeof(name)=="string", "Name of resourceBundle must be a string or f_class !"); | f_core.Assert(typeof(name)=="string", "Name of resourceBundle must be a string or f_class ! ("+name+")"); | f_resourceBundle.Get=function(name, create) { f_core.Assert(name, "f_resourceBundle.Get: Name parameter is invalid: "+name); if ((name instanceof f_class) || (name instanceof f_aspect) || typeof(name.f_getName)=="function") { name=name.f_getName(); } f_core.Assert(typeof(name)=="string", "Name of resourceBundle must ... |
var resources=f_resourceBundle._resources; | var resources=f_resourceBundle._Resources; | f_resourceBundle.Get=function(name, create) { f_core.Assert(name, "f_resourceBundle.Get: Name parameter is invalid: "+name); if ((name instanceof f_class) || (name instanceof f_aspect) || typeof(name.f_getName)=="function") { name=name.f_getName(); } f_core.Assert(typeof(name)=="string", "Name of resourceBundle must ... |
f_resourceBundle._resources=resources; | f_resourceBundle._Resources=resources; | f_resourceBundle.Get=function(name, create) { f_core.Assert(name, "f_resourceBundle.Get: Name parameter is invalid: "+name); if ((name instanceof f_class) || (name instanceof f_aspect) || typeof(name.f_getName)=="function") { name=name.f_getName(); } f_core.Assert(typeof(name)=="string", "Name of resourceBundle must ... |
cssRules = document.styleSheets[j].cssRules; | var cssRules = document.styleSheets[j].cssRules; if( !cssRules ) cssRules = document.styleSheets[j].rules; | function get_css( item, element ){ for( var j = 0; j < document.styleSheets.length; j++ ) { cssRules = document.styleSheets[j].cssRules; for( var i = 0; i < cssRules.length; i++) { if( cssRules[i].selectorText == item ) { return cssRules[i].style.getProper... |
return cssRules[i].style.getPropertyValue( element ); | if( cssRules[i].style.getPropertyValue ) return cssRules[i].style.getPropertyValue( element ); else return cssRules[i].style.getAttribute( toCamelCase( element ) ); | function get_css( item, element ){ for( var j = 0; j < document.styleSheets.length; j++ ) { cssRules = document.styleSheets[j].cssRules; for( var i = 0; i < cssRules.length; i++) { if( cssRules[i].selectorText == item ) { return cssRules[i].style.getProper... |
return distance_of_time_in_words(delta_minutes) + ' ago'; | distance = distance_of_time_in_words(delta_minutes); if (delta_minutes < 0) { return distance + ' from now'; } else { return distance + ' ago'; } | function get_local_time_for_date(time) { system_date = new Date(time); user_date = new Date(); delta_minutes = Math.round((user_date - system_date) / (60 * 1000)); if (Math.abs(delta_minutes) <= (8*7*24*60)) { // eight weeks... I'm lazy to count days for longer than that return distance_of_time_in_words(delta_mi... |
delta_minutes = Math.round((user_date - system_date) / (60 * 1000)); | delta_minutes = Math.floor((user_date - system_date) / (60 * 1000)); | function get_local_time_for_date(time) { system_date = new Date(time); user_date = new Date(); delta_minutes = Math.round((user_date - system_date) / (60 * 1000)); if (Math.abs(delta_minutes) <= (8*7*24*60)) { // eight weeks... I'm lazy to count days for longer than that distance = distance_of_time_in_words(delt... |
console.pause(); | function get_message(){ var rows=0; /* Update node action */ if(bbs.node_action != system.node_list[bbs.node_num-1].action) system.node_list[bbs.node_num-1].action = bbs.node_action; /* Check for messages */ if(system.node_list[bbs.node_num-1].misc & NODE_MSGW) rows+=MessageWindow.putmsg(1,MessageWindow.height,system... | |
user.cached=FALSE; | user.cached=false; | function get_message(){ var rows=0; /* Update node action */ if(bbs.node_action != system.node_list[bbs.node_num-1].action) system.node_list[bbs.node_num-1].action = bbs.node_action; /* Check for messages */ if(system.node_list[bbs.node_num-1].misc & NODE_MSGW) rows+=MessageWindow.putmsg(1,MessageWindow.height,system... |
if(!(system.status & SS_NEWDAY)) bbs.nodesync(); | function get_message(){ var rows=0; /* Update node action */ if(bbs.node_action != system.node_list[bbs.node_num-1].action) system.node_list[bbs.node_num-1].action = bbs.node_action; /* Check for messages */ if(system.node_list[bbs.node_num-1].misc & NODE_MSGW) rows+=MessageWindow.putmsg(1,MessageWindow.height,system... | |
rows+=MessageWindow.putmsg(1,MessageWindow.height,bbs.text(CfgLibLstHdr),MessageWindow_Attr,true); | rows+=MessageWindow.putmsg(1,MessageWindow.height,bbs.text(NodeLocked),MessageWindow_Attr,true); | function get_message(){ var rows=0; /* Update node action */ if(bbs.node_action != system.node_list[bbs.node_num-1].action) system.node_list[bbs.node_num-1].action = bbs.node_action; /* Check for messages */ if(system.node_list[bbs.node_num-1].misc & NODE_MSGW) rows+=MessageWindow.putmsg(1,MessageWindow.height,system... |
rows+=MessageWindow.putmsg(1,MessageWindow.height,bbs.text(CfgLibLstHdr),MessageWindow_Attr,true); bbs.private_chat(); | console.pause(); bbs.nodesync(); | function get_message(){ var rows=0; /* Update node action */ if(bbs.node_action != system.node_list[bbs.node_num-1].action) system.node_list[bbs.node_num-1].action = bbs.node_action; /* Check for messages */ if(system.node_list[bbs.node_num-1].misc & NODE_MSGW) rows+=MessageWindow.putmsg(1,MessageWindow.height,system... |
if(msgtxt[i].length==0) { | if(hdr && msgtxt[i].length==0) { | function get_msg_body(msgtxt){ var body = new Array(); var hdr = true; for(i in msgtxt) { if(msgtxt[i].length==0) { // Header terminator hdr = false; continue; } if(!hdr) body.push(msgtxt[i]); } return(body);} |
if(bbs.command_str.substr(0,1)=="\r") bbs.command_str=''; | function get_next_key(){ var retchar; var bytes=1; if(bbs.command_str.substr(0,1)=="\r") bbs.command_str=''; if(!bbs.command_str.length) { // Nothing in STR already? if(user.settings & USER_COLDKEYS) bbs.command_str=console.getstr("",60,0)+"\r"; else bbs.command_str=getkeye(); } if(bbs.command_str.search(/^\/./... | |
bbs.command_str=console.getstr("",60,0)+"\r"; | bbs.command_str=console.getstr("",60,0); | function get_next_key(){ var retchar; var bytes=1; if(bbs.command_str.substr(0,1)=="\r") bbs.command_str=''; if(!bbs.command_str.length) { // Nothing in STR already? if(user.settings & USER_COLDKEYS) bbs.command_str=console.getstr("",60,0)+"\r"; else bbs.command_str=getkeye(); } if(bbs.command_str.search(/^\/./... |
if((bbs.command_str.length && (user.settings & USER_COLDKEYS)) || (have_part && !(user.settings & USER_COLDKEYS))) { if((i=keys.indexOf(bbs.command_str.substr(0,1)))!=-1) { bbs.command_str=bbs.command_str.substr(i); } if(keys.indexOf(bbs.command_str.substr(0,1))!=-1) { ret=bbs.command_str.substr(0,1); bbs.command_str=b... | if(have_part) { bbs.command_str=coldfuncs_last_hotkey; coldfuncs_last_hotkey=''; } while(ret=get_next_key()) { if(keys.indexOf(ret)!=-1) { | function get_next_keys(keys, have_part){ var ret=''; var i; // If there is something in STR, and coldkeys, grab from STR if((bbs.command_str.length && (user.settings & USER_COLDKEYS)) || (have_part && !(user.settings & USER_COLDKEYS))) { if((i=keys.indexOf(bbs.command_str.substr(0,1)))!=-1) { bbs.command_str=bbs.com... |
bbs.command_str=''; | function get_next_keys(keys, have_part){ var ret=''; var i; // If there is something in STR, and coldkeys, grab from STR if((bbs.command_str.length && (user.settings & USER_COLDKEYS)) || (have_part && !(user.settings & USER_COLDKEYS))) { if((i=keys.indexOf(bbs.command_str.substr(0,1)))!=-1) { bbs.command_str=bbs.com... | |
return(console.getkeys(keys)); | function get_next_keys(keys, have_part){ var ret=''; var i; // If there is something in STR, and coldkeys, grab from STR if((bbs.command_str.length && (user.settings & USER_COLDKEYS)) || (have_part && !(user.settings & USER_COLDKEYS))) { if((i=keys.indexOf(bbs.command_str.substr(0,1)))!=-1) { bbs.command_str=bbs.com... | |
while(ret+=get_next_keys("0123456789\r\n",have_part)) { if(parseInt(ret+'0') > max) return(parseInt(ret)); if(ret.search(/[\r\n]/)!=-1) return(parseInt(ret)); | while(1) { ch=get_next_keys("0123456789\r\n",have_part); if(ch==undefined || ch=='') return(-1); if(parseInt(ret+ch)<=max) { ret+=ch; write(ch); if(parseInt(ret+'0') > max) return(parseInt(ret)); if(ret.search(/[\r\n]/)!=-1) return(parseInt(ret)); } | function get_next_num(max, have_part){ var ret=''; var use_str=false; if(bbs.command_str.length && (user.settings & USER_COLDKEYS)) use_str=true; while(ret+=get_next_keys("0123456789\r\n",have_part)) { if(parseInt(ret+'0') > max) return(parseInt(ret)); if(ret.search(/[\r\n]/)!=-1) return(parseInt(ret)); // Usin... |
write(ret.substr(-1)); | function get_next_str(def_val, max_len, mode_bits, have_part){ var ret=''; var use_str=false; if(bbs.command_str.length && (user.settings & USER_COLDKEYS)) use_str=true; while(ret+=get_next_key()) { if(ret.search(/[\r\n]/)!=-1) return(ret.replace(/[\r\n]/g,'')); // Using coldkeys and there was something in STR if... | |
var window_offset = (window.pageYOffset) ? window.pageYOffset : (document.body.scrollTop) ? document.body.scrollTop : document.documentElement.scrollTop; | function get_offsets(element){ var offsets = new Array(); var window_offset = (window.pageYOffset) ? window.pageYOffset : (document.body.scrollTop) ? document.body.scrollTop : document.documentElement.scrollTop; offsets['top'] = Number(window_offset) + element.offsetTop; offsets['left'] = element.offsetLeft; while ((el... | |
offsets['top'] = Number(window_offset) + element.offsetTop; | offsets['top'] = element.offsetTop; | function get_offsets(element){ var offsets = new Array(); var window_offset = (window.pageYOffset) ? window.pageYOffset : (document.body.scrollTop) ? document.body.scrollTop : document.documentElement.scrollTop; offsets['top'] = Number(window_offset) + element.offsetTop; offsets['left'] = element.offsetLeft; while ((el... |
if((user_file = open_user_list("r")) != null) { | if((user_file = open_user_list(list,"r")) != null) { | function get_user_list(list){ var user_list = new Array(); if((user_file = open_user_list("r")) != null) { user_list = read_user_list(user_file); user_file.close(); } return user_list;} |
OpenLayers.Util.getArgs = function() { | OpenLayers.Util.getArgs = function(url) { if(url == null) { var query = window.location.search.substring(1); } else { var query = (url.indexOf('?') == -1) ? '' : url.substring(url.indexOf('?') + 1); } | OpenLayers.Util.getArgs = function() { var args = new Object(); var query = location.search.substring(1); // Get query string. var pairs = query.split("&"); // Break at ampersand. //+pjl for(var i = 0; i < pairs.length; i++) { var pos = pairs[i].indexOf('='); // Look for "name=val... |
var query = location.search.substring(1); var pairs = query.split("&"); for(var i = 0; i < pairs.length; i++) { var pos = pairs[i].indexOf('='); if (pos == -1) continue; var argname = pairs[i].substring(0,pos); var value = pairs[i].substring(pos+1); args[argname] = unescape(value); | pairs = query.split(/[&;]/); for(var i = 0; i < pairs.length; ++i) { keyValue = pairs[i].split(/=/); if(keyValue.length == 2) { args[decodeURIComponent(keyValue[0])] = decodeURIComponent(keyValue[1]); } | OpenLayers.Util.getArgs = function() { var args = new Object(); var query = location.search.substring(1); // Get query string. var pairs = query.split("&"); // Break at ampersand. //+pjl for(var i = 0; i < pairs.length; i++) { var pos = pairs[i].indexOf('='); // Look for "name=val... |
return args; }; | return args; } | OpenLayers.Util.getArgs = function() { var args = new Object(); var query = location.search.substring(1); // Get query string. var pairs = query.split("&"); // Break at ampersand. //+pjl for(var i = 0; i < pairs.length; i++) { var pos = pairs[i].indexOf('='); // Look for "name=val... |
return this._isQueryParameterTrue('baseUrl'); | return this._getQueryParameter('baseUrl'); | getBaseUrl:function() { return this._isQueryParameterTrue('baseUrl'); } |
b = d.createElement("iframe"); | b = d.getElementById(this.id + "_blocker"); | getBlocker : function() { var d, b; if (!this.blockerElement && this.blockMode) { d = this.doc; b = d.createElement("iframe"); b.style.cssText = 'display: none; position: absolute; left: 0; top: 0'; b.src = 'javascript:false;'; b.frameBorder = '0'; b.scrolling = 'no'; d.body.appendChild(b); this.bloc... |
b.style.cssText = 'display: none; position: absolute; left: 0; top: 0'; b.src = 'javascript:false;'; b.frameBorder = '0'; b.scrolling = 'no'; | if (!b) { b = d.createElement("iframe"); | getBlocker : function() { var d, b; if (!this.blockerElement && this.blockMode) { d = this.doc; b = d.createElement("iframe"); b.style.cssText = 'display: none; position: absolute; left: 0; top: 0'; b.src = 'javascript:false;'; b.frameBorder = '0'; b.scrolling = 'no'; d.body.appendChild(b); this.bloc... |
d.body.appendChild(b); | b.setAttribute('id', this.id + "_blocker"); b.style.cssText = 'display: none; position: absolute; left: 0; top: 0'; b.src = 'javascript:false;'; b.frameBorder = '0'; b.scrolling = 'no'; d.body.appendChild(b); } | getBlocker : function() { var d, b; if (!this.blockerElement && this.blockMode) { d = this.doc; b = d.createElement("iframe"); b.style.cssText = 'display: none; position: absolute; left: 0; top: 0'; b.src = 'javascript:false;'; b.frameBorder = '0'; b.scrolling = 'no'; d.body.appendChild(b); this.bloc... |
return this.getDoc().body; | return this.contentBody ? this.contentBody : this.getDoc().body; | getBody : function() { return this.getDoc().body; }, |
var doc = this.instance.getDoc(); var sp, le, s, e, nl, i, si, ei; var trng, sx, sy, xx = -999999999; | var doc = inst.getDoc(), b = inst.getBody(); var sp, le, s, e, nl, i, si, ei, w; var trng, sx, sy, xx = -999999999, vp = inst.getViewPort(); | getBookmark : function(simple) { var rng = this.getRng(); var doc = this.instance.getDoc(); var sp, le, s, e, nl, i, si, ei; var trng, sx, sy, xx = -999999999; // Skip Opera for now if (tinyMCE.isOpera) return null; sx = doc.body.scrollLeft + doc.documentElement.scrollLeft; sy = doc.body.scrollTop + doc.docu... |
if (tinyMCE.isOpera) return null; | sx = vp.left; sy = vp.top; | getBookmark : function(simple) { var rng = this.getRng(); var doc = this.instance.getDoc(); var sp, le, s, e, nl, i, si, ei; var trng, sx, sy, xx = -999999999; // Skip Opera for now if (tinyMCE.isOpera) return null; sx = doc.body.scrollLeft + doc.documentElement.scrollLeft; sy = doc.body.scrollTop + doc.docu... |
sx = doc.body.scrollLeft + doc.documentElement.scrollLeft; sy = doc.body.scrollTop + doc.documentElement.scrollTop; if (tinyMCE.isSafari || tinyMCE.isGecko) | if (tinyMCE.isSafari || tinyMCE.isOpera || simple) | getBookmark : function(simple) { var rng = this.getRng(); var doc = this.instance.getDoc(); var sp, le, s, e, nl, i, si, ei; var trng, sx, sy, xx = -999999999; // Skip Opera for now if (tinyMCE.isOpera) return null; sx = doc.body.scrollLeft + doc.documentElement.scrollLeft; sy = doc.body.scrollTop + doc.docu... |
if (tinyMCE.isMSIE) { if (simple) return {rng : rng}; | if (tinyMCE.isIE) { | getBookmark : function(simple) { var rng = this.getRng(); var doc = this.instance.getDoc(); var sp, le, s, e, nl, i, si, ei; var trng, sx, sy, xx = -999999999; // Skip Opera for now if (tinyMCE.isOpera) return null; sx = doc.body.scrollLeft + doc.documentElement.scrollLeft; sy = doc.body.scrollTop + doc.docu... |
nl = doc.getElementsByTagName(e.nodeName); | nl = b.getElementsByTagName(e.nodeName); | getBookmark : function(simple) { var rng = this.getRng(); var doc = this.instance.getDoc(); var sp, le, s, e, nl, i, si, ei; var trng, sx, sy, xx = -999999999; // Skip Opera for now if (tinyMCE.isOpera) return null; sx = doc.body.scrollLeft + doc.documentElement.scrollLeft; sy = doc.body.scrollTop + doc.docu... |
start : sp, | start : sp - bp, | getBookmark : function(simple) { var rng = this.getRng(); var doc = this.instance.getDoc(); var sp, le, s, e, nl, i, si, ei; var trng, sx, sy, xx = -999999999; // Skip Opera for now if (tinyMCE.isOpera) return null; sx = doc.body.scrollLeft + doc.documentElement.scrollLeft; sy = doc.body.scrollTop + doc.docu... |
s = tinyMCE.getParentElement(rng.startContainer); for (si=0; si<s.childNodes.length && s.childNodes[si] != rng.startContainer; si++) ; | s = this.getSel(); e = this.getFocusElement(); | getBookmark : function(simple) { var rng = this.getRng(); var doc = this.instance.getDoc(); var sp, le, s, e, nl, i, si, ei; var trng, sx, sy, xx = -999999999; // Skip Opera for now if (tinyMCE.isOpera) return null; sx = doc.body.scrollLeft + doc.documentElement.scrollLeft; sy = doc.body.scrollTop + doc.docu... |
nl = doc.getElementsByTagName(s.nodeName); for (i=0; i<nl.length; i++) { if (s == nl[i]) { | if (!s) return null; if (e && e.nodeName == 'IMG') { /*nl = b.getElementsByTagName('IMG'); for (i=0; i<nl.length; i++) { if (e == nl[i]) { | getBookmark : function(simple) { var rng = this.getRng(); var doc = this.instance.getDoc(); var sp, le, s, e, nl, i, si, ei; var trng, sx, sy, xx = -999999999; // Skip Opera for now if (tinyMCE.isOpera) return null; sx = doc.body.scrollLeft + doc.documentElement.scrollLeft; sy = doc.body.scrollTop + doc.docu... |
e = tinyMCE.getParentElement(rng.endContainer); for (ei=0; ei<e.childNodes.length && e.childNodes[ei] != rng.endContainer; ei++) ; | if (s.anchorNode == s.focusNode && s.anchorOffset == s.focusOffset) { e = this._getPosText(b, s.anchorNode, s.focusNode); | getBookmark : function(simple) { var rng = this.getRng(); var doc = this.instance.getDoc(); var sp, le, s, e, nl, i, si, ei; var trng, sx, sy, xx = -999999999; // Skip Opera for now if (tinyMCE.isOpera) return null; sx = doc.body.scrollLeft + doc.documentElement.scrollLeft; sy = doc.body.scrollTop + doc.docu... |
nl = doc.getElementsByTagName(e.nodeName); for (i=0; i<nl.length; i++) { if (e == nl[i]) { le = i; break; } | if (!e) return {scrollX : sx, scrollY : sy}; return { start : e.start + s.anchorOffset, end : e.end + s.focusOffset, scrollX : sx, scrollY : sy }; } else { e = this._getPosText(b, rng.startContainer, rng.endContainer); if (!e) return {scrollX : sx, scrollY : sy}; return { start : e.start + rng.startOffset, end : e.e... | getBookmark : function(simple) { var rng = this.getRng(); var doc = this.instance.getDoc(); var sp, le, s, e, nl, i, si, ei; var trng, sx, sy, xx = -999999999; // Skip Opera for now if (tinyMCE.isOpera) return null; sx = doc.body.scrollLeft + doc.documentElement.scrollLeft; sy = doc.body.scrollTop + doc.docu... |
return { startTag : s.nodeName, start : sp, startIndex : si, endTag : e.nodeName, end : le, endIndex : ei, startOffset : rng.startOffset, endOffset : rng.endOffset, scrollX : sx, scrollY : sy }; | getBookmark : function(simple) { var rng = this.getRng(); var doc = this.instance.getDoc(); var sp, le, s, e, nl, i, si, ei; var trng, sx, sy, xx = -999999999; // Skip Opera for now if (tinyMCE.isOpera) return null; sx = doc.body.scrollLeft + doc.documentElement.scrollLeft; sy = doc.body.scrollTop + doc.docu... | |
var topLeft = this.layer.map.getLonLatFromLayerPx(this.position); var bottomRightPx = this.position.clone(); | var topLeft = this.layer.map.getLonLatFromLayerPx(position); var bottomRightPx = position.clone(); | getBoundsFromBaseLayer: function(position) { var topLeft = this.layer.map.getLonLatFromLayerPx(this.position); var bottomRightPx = this.position.clone(); bottomRightPx.x += this.size.w; bottomRightPx.y += this.size.h; var bottomRight = this.layer.map.getLonLatFromLayerPx(bottomRi... |
delete commandRow.stopOnThisCommand; | commandRow.stopOnThisCommand = undefined; | function getBreakpointEventHandler(commandRow) { return function() { if (commandRow.stopOnThisCommand == undefined) { commandRow.stopOnThisCommand = true; commandRow.beforeBackgroundColor = Element.getStyle(commandRow, "backgroundColor"); Element.setStyle(commandRow, {"backgro... |
commandRow.stopOnThisCommand = undefined; | delete commandRow.stopOnThisCommand; | function getBreakpointEventHandler(commandRow) { return function() { if (commandRow.stopOnThisCommand == undefined) { commandRow.stopOnThisCommand = true; commandRow.beforeBackgroundColor = Element.getStyle(commandRow, "backgroundColor"); Element.setStyle(commandRow, {"backgro... |
html += '<img id="' + id + '" src="../../themes/' + tinyMCE.getParam("theme") + '/images/browse.gif"'; | html += '<img id="' + id + '" src="' + themeBaseURL + '/images/browse.gif"'; | function getBrowserHTML(id, target_form_element, type, prefix) { var option = prefix + "_" + type + "_browser_callback"; var cb = tinyMCE.getParam(option, tinyMCE.getParam("file_browser_callback")); if (cb == null) return ""; var html = ""; html += '<a id="' + id + '_link" href="javascript:openBrower(\'' + id + '\',\'... |
var h = '', m, x; | var h = '', m, x, io = ''; | getButtonHTML : function(id, lang, img, cmd, ui, val) { var h = '', m, x; cmd = 'tinyMCE.execInstanceCommand(\'{$editor_id}\',\'' + cmd + '\''; if (typeof(ui) != "undefined" && ui != null) cmd += ',' + ui; if (typeof(val) != "undefined" && val != null) cmd += ",'" + val + "'"; cmd += ');'; // Use tilemaps wh... |
if (tinyMCE.getParam('button_tile_map') && (!tinyMCE.isMSIE || tinyMCE.isOpera) && (m = this.buttonMap[id]) != null && (tinyMCE.getParam("language") == "en" || img.indexOf('$lang') == -1)) { | if (tinyMCE.getParam('button_tile_map') && (!tinyMCE.isIE || tinyMCE.isOpera) && (m = this.buttonMap[id]) != null && (tinyMCE.getParam("language") == "en" || img.indexOf('$lang') == -1)) { | getButtonHTML : function(id, lang, img, cmd, ui, val) { var h = '', m, x; cmd = 'tinyMCE.execInstanceCommand(\'{$editor_id}\',\'' + cmd + '\''; if (typeof(ui) != "undefined" && ui != null) cmd += ',' + ui; if (typeof(val) != "undefined" && val != null) cmd += ",'" + val + "'"; cmd += ');'; // Use tilemaps wh... |
h += '<a id="{$editor_id}_' + id + '" href="javascript:' + cmd + '" onclick="' + cmd + 'return false;" onmousedown="return false;" class="mceTiledButton mceButtonNormal" target="_self">'; | h += '<a id="{$editor_id}_' + id + '" href="javascript:' + cmd + '" onclick="' + cmd + 'return false;" onmousedown="return false;" ' + io + ' class="mceTiledButton mceButtonNormal" target="_self">'; | getButtonHTML : function(id, lang, img, cmd, ui, val) { var h = '', m, x; cmd = 'tinyMCE.execInstanceCommand(\'{$editor_id}\',\'' + cmd + '\''; if (typeof(ui) != "undefined" && ui != null) cmd += ',' + ui; if (typeof(val) != "undefined" && val != null) cmd += ",'" + val + "'"; cmd += ');'; // Use tilemaps wh... |
h += '<a id="{$editor_id}_' + id + '" href="javascript:' + cmd + '" onclick="' + cmd + 'return false;" onmousedown="return false;" class="mceButtonNormal" target="_self">'; | h += '<a id="{$editor_id}_' + id + '" href="javascript:' + cmd + '" onclick="' + cmd + 'return false;" onmousedown="return false;" ' + io + ' class="mceButtonNormal" target="_self">'; | getButtonHTML : function(id, lang, img, cmd, ui, val) { var h = '', m, x; cmd = 'tinyMCE.execInstanceCommand(\'{$editor_id}\',\'' + cmd + '\''; if (typeof(ui) != "undefined" && ui != null) cmd += ',' + ui; if (typeof(val) != "undefined" && val != null) cmd += ",'" + val + "'"; cmd += ');'; // Use tilemaps wh... |
for (var y=0; y<grid.length; y++) { for (var x=0; x<grid[y].length; x++) { | var x, y; for (y=0; y<grid.length; y++) { for (x=0; x<grid[y].length; x++) { | function getCellPos(grid, td) { for (var y=0; y<grid.length; y++) { for (var x=0; x<grid[y].length; x++) { if (grid[y][x] == td) return {cellindex : x, rowindex : y}; } } return null; } |
if (row == this.testCase.debugIndex) { props.AppendElement(this.atomService.getAtom("debugIndex")); } | getCellProperties: function(row, col, props) { var command = this.getCommand(row); if (command.type == 'comment') { props.AppendElement(this.atomService.getAtom("comment")); } if (command == this.currentCommand) { props.AppendElement(this.atomService.getAtom("currentCommand")); } if (row == this.testCase.... | |
return this.branch.getCharPref(name); | return this.branch.getComplexValue(name, Components.interfaces.nsISupportsString).data; | getCharPref: function(name, defaultValue) { if (this.branch.prefHasUserValue(name)) { return this.branch.getCharPref(name); } else { return defaultValue; } }, |
var prefs = Components.classes["@mozilla.org/preferences-service;1"]. getService(Components.interfaces.nsIPrefService); var branch = prefs.getBranch("extensions."+MYSTRING+"."); return branch.getCharPref("charset"); | return that.preferences.data.charset; | that.getCharset = function() { var prefs = Components.classes["@mozilla.org/preferences-service;1"]. getService(Components.interfaces.nsIPrefService); var branch = prefs.getBranch("extensions."+MYSTRING+"."); return branch.getCharPref("charset"); }; |
var offset = getElementOffset(element); | function getClientXY(element, coordString) { // Parse coordString var coords = null; var x; var y; if (coordString) { coords = coordString.split(/,/); x = Number(coords[0]); y = Number(coords[1]); } else { x = y = 0; } // Get position of element var offset = getElementOffset(el... | |
return [offset[0] + x, offset[1] + y]; | return [Selenium.prototype.getElementPositionLeft(element) + x, Selenium.prototype.getElementPositionTop(element) + y]; | function getClientXY(element, coordString) { // Parse coordString var coords = null; var x; var y; if (coordString) { coords = coordString.split(/,/); x = Number(coords[0]); y = Number(coords[1]); } else { x = y = 0; } // Get position of element var offset = getElementOffset(el... |
var coords = null | var coords = null; | function getClientXY(element, coordString) { // Parse coordString var coords = null if (coordString) { coords = coordString.split(/,/) var x = Number(coords[0]) var y = Number(coords[1]) } else { coords = [0,0] } // Get position of element var offset = getElementOffset(element) /... |
coords = coordString.split(/,/) var x = Number(coords[0]) var y = Number(coords[1]) | coords = coordString.split(/,/); var x = Number(coords[0]); var y = Number(coords[1]); | function getClientXY(element, coordString) { // Parse coordString var coords = null if (coordString) { coords = coordString.split(/,/) var x = Number(coords[0]) var y = Number(coords[1]) } else { coords = [0,0] } // Get position of element var offset = getElementOffset(element) /... |
coords = [0,0] | coords = [0,0]; | function getClientXY(element, coordString) { // Parse coordString var coords = null if (coordString) { coords = coordString.split(/,/) var x = Number(coords[0]) var y = Number(coords[1]) } else { coords = [0,0] } // Get position of element var offset = getElementOffset(element) /... |
var offset = getElementOffset(element) | var offset = getElementOffset(element); | function getClientXY(element, coordString) { // Parse coordString var coords = null if (coordString) { coords = coordString.split(/,/) var x = Number(coords[0]) var y = Number(coords[1]) } else { coords = [0,0] } // Get position of element var offset = getElementOffset(element) /... |
return [offset[0] + x, offset[1] + y] | return [offset[0] + x, offset[1] + y]; | function getClientXY(element, coordString) { // Parse coordString var coords = null if (coordString) { coords = coordString.split(/,/) var x = Number(coords[0]) var y = Number(coords[1]) } else { coords = [0,0] } // Get position of element var offset = getElementOffset(element) /... |
var html = ""; | var h = ""; | function getColorPickerHTML(id, target_form_element) { var html = ""; html += '<a id="' + id + '_link" href="javascript:void(0);" onkeydown="pickColor(event,\'' + target_form_element +'\');" onmousedown="pickColor(event,\'' + target_form_element +'\');return false;">'; html += '<img id="' + id + '" src="../../themes/' ... |
html += '<a id="' + id + '_link" href="javascript:void(0);" onkeydown="pickColor(event,\'' + target_form_element +'\');" onmousedown="pickColor(event,\'' + target_form_element +'\');return false;">'; html += '<img id="' + id + '" src="../../themes/' + tinyMCE.getParam("theme") + '/images/color.gif"'; html += ' onmouseo... | h += '<a id="' + id + '_link" href="javascript:void(0);" onkeydown="pickColor(event,\'' + target_form_element +'\');" onmousedown="pickColor(event,\'' + target_form_element +'\');return false;">'; h += '<img id="' + id + '" src="' + themeBaseURL + '/images/color.gif"'; h += ' onmouseover="this.className=\'mceButtonOver... | function getColorPickerHTML(id, target_form_element) { var html = ""; html += '<a id="' + id + '_link" href="javascript:void(0);" onkeydown="pickColor(event,\'' + target_form_element +'\');" onmousedown="pickColor(event,\'' + target_form_element +'\');return false;">'; html += '<img id="' + id + '" src="../../themes/' ... |
return html; | return h; | function getColorPickerHTML(id, target_form_element) { var html = ""; html += '<a id="' + id + '_link" href="javascript:void(0);" onkeydown="pickColor(event,\'' + target_form_element +'\');" onmousedown="pickColor(event,\'' + target_form_element +'\');return false;">'; html += '<img id="' + id + '" src="../../themes/' ... |
this.getCommandHandler = function(name) { var baseHandler = originalCommandFactory.getCommandHandler(name); return new ExpectFailureCommandHandler(baseHandler, originalCommandFactory, expectedErrorMessage, errorType, decoratedExecutor); }; | getCommandHandler: function(command) { if (this.handlers[command]) { return this.handlers[command]; } return this.seleniumCommandFactory.getCommandHandler(command); } | this.getCommandHandler = function(name) { var baseHandler = originalCommandFactory.getCommandHandler(name); return new ExpectFailureCommandHandler(baseHandler, originalCommandFactory, expectedErrorMessage, errorType, decoratedExecutor); }; |
return this.handlers[name] || null; | return this.handlers[name]; | getCommandHandler: function(name) { return this.handlers[name] || null; // todo: why null, and not undefined? }, |
file.append("extensions"); file.append(GUID); | function getContentDir() { var file = Components.classes["@mozilla.org/file/directory_service;1"] .getService(Components.interfaces.nsIProperties) .get("ProfD", Components.interfaces.nsILocalFile); file.append("extensions"); file.append(GUID); file.append("chrome"); file.append("greasemonkey"); file... | |
return file; | if( file.exists() ) { return file; } else { file = Components.classes["@mozilla.org/file/directory_service;1"] .getService(Components.interfaces.nsIProperties) .get("ProfD", Components.interfaces.nsILocalFile); file.append("extensions"); file.append(GUID); file.append("chrome"); file.append("greasemonkey"); file.appe... | function getContentDir() { var file = Components.classes["@mozilla.org/file/directory_service;1"] .getService(Components.interfaces.nsIProperties) .get("ProfD", Components.interfaces.nsILocalFile); file.append("extensions"); file.append(GUID); file.append("chrome"); file.append("greasemonkey"); file... |
function getContents(aURL){ | function getContents(aURL, charset){ if( !charset ) { charset = "UTF-8" } | function getContents(aURL){ var ioService=Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); var scriptableStream=Components .classes["@mozilla.org/scriptableinputstream;1"] .getService(Components.interfaces.nsIScriptableInputStream); var channel=ioServi... |
return str; | return unicodeConverter.ConvertToUnicode( str ); | function getContents(aURL){ var ioService=Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); var scriptableStream=Components .classes["@mozilla.org/scriptableinputstream;1"] .getService(Components.interfaces.nsIScriptableInputStream); var channel=ioServi... |
var i, x; | var i, x, but; | getControlHTML : function(button_name) { var i, x; // Lookup button in button list for (i=0; i<TinyMCE_AdvancedTheme._buttons.length; i++) { var but = TinyMCE_AdvancedTheme._buttons[i]; if (but[0] == button_name) return tinyMCE.getButtonHTML(but[0], but[2], '{$themeurl}/images/' + but[1], but[3], (but.length... |
var but = TinyMCE_AdvancedTheme._buttons[i]; | but = TinyMCE_AdvancedTheme._buttons[i]; if (but[0] == button_name && (button_name == "forecolor" || button_name == "backcolor")) return tinyMCE.getMenuButtonHTML(but[0], but[2], '{$themeurl}/images/' + but[1], but[3] + "Menu", but[3], (but.length > 4 ? but[4] : false), (but.length > 5 ? but[5] : null)); | getControlHTML : function(button_name) { var i, x; // Lookup button in button list for (i=0; i<TinyMCE_AdvancedTheme._buttons.length; i++) { var but = TinyMCE_AdvancedTheme._buttons[i]; if (but[0] == button_name) return tinyMCE.getButtonHTML(but[0], but[2], '{$themeurl}/images/' + but[1], but[3], (but.length... |
return tinyMCE.getButtonHTML(cn, 'lang_style_styleinfo_desc', '{$pluginurl}/images/style_info.gif', 'mceStyleProps', true); | return tinyMCE.getButtonHTML(cn, 'lang_style_styleinfo_desc', '{$pluginurl}/images/styleprops.gif', 'mceStyleProps', true); | getControlHTML : function(cn) { switch (cn) { case "styleprops": return tinyMCE.getButtonHTML(cn, 'lang_style_styleinfo_desc', '{$pluginurl}/images/style_info.gif', 'mceStyleProps', true); } return ""; }, |
['delete_table', 'table_delete.gif', 'lang_table_del', 'mceTableDelete'], | getControlHTML : function(control_name) { var controls = new Array( ['table', 'table.gif', 'lang_table_desc', 'mceInsertTable', true], ['delete_col', 'table_delete_col.gif', 'lang_table_delete_col_desc', 'mceTableDeleteCol'], ['delete_row', 'table_delete_row.gif', 'lang_table_delete_row_desc', 'mceTableDeleteRo... | |
return tinyMCE.getButtonHTML(cn, 'lang_layer_forward_desc', '{$pluginurl}/images/forward.gif', 'mceMoveForward', true); | return tinyMCE.getButtonHTML(cn, 'lang_layer_forward_desc', '{$pluginurl}/images/moveforward.gif', 'mceMoveForward', true); | getControlHTML : function(cn) { switch (cn) { case "moveforward": return tinyMCE.getButtonHTML(cn, 'lang_layer_forward_desc', '{$pluginurl}/images/forward.gif', 'mceMoveForward', true); case "movebackward": return tinyMCE.getButtonHTML(cn, 'lang_layer_backward_desc', '{$pluginurl}/images/backward.gif', 'mce... |
return tinyMCE.getButtonHTML(cn, 'lang_layer_backward_desc', '{$pluginurl}/images/backward.gif', 'mceMoveBackward', true); | return tinyMCE.getButtonHTML(cn, 'lang_layer_backward_desc', '{$pluginurl}/images/movebackward.gif', 'mceMoveBackward', true); | getControlHTML : function(cn) { switch (cn) { case "moveforward": return tinyMCE.getButtonHTML(cn, 'lang_layer_forward_desc', '{$pluginurl}/images/forward.gif', 'mceMoveForward', true); case "movebackward": return tinyMCE.getButtonHTML(cn, 'lang_layer_backward_desc', '{$pluginurl}/images/backward.gif', 'mce... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.