rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
if (this.clickLocator) { this.record("click", this.clickLocator, ''); delete this.clickLocator;
var clickable = this.findClickableElement(event.target); if (clickable) { this.clickLocator = this.findLocator(clickable);
Recorder.addEventHandler('click', 'click', function(event) { if (event.button == 0) { if (this.clickLocator) { this.record("click", this.clickLocator, ''); delete this.clickLocator; } } });
});
}, { capture: true });
Recorder.addEventHandler('click', 'click', function(event) { if (event.button == 0) { if (this.clickLocator) { this.record("click", this.clickLocator, ''); delete this.clickLocator; } } });
[ HTMLArea._lc("Copy", "ContextMenu"), function() { editor.execCommand("copy"); }, null, config.btnList["copy"][1] ]);
function() { editor.config.btnList['createlink'][3](editor); },
[ HTMLArea._lc("Copy", "ContextMenu"), function() { editor.execCommand("copy"); }, null, config.btnList["copy"][1] ]);
LocatorBuilders.add('attributesXPath', function(e) { const PREFERRED_ATTRIBUTES = ['id','name','value','type','action','onclick']; function attributesXPath(name, attNames, attributes) { var locator = " for (var i = 0; i < attNames.length; i++) { if (i > 0) { locator += " and "; } var attName = attNames[i]; locator += ...
LocatorBuilders.add('imgXPath', function(e) { if (e.nodeName == 'IMG') { if (e.alt != '') { return " } else if (e.src != '') { return " } }
LocatorBuilders.add('attributesXPath', function(e) { const PREFERRED_ATTRIBUTES = ['id','name','value','type','action','onclick']; function attributesXPath(name, attNames, attributes) { var locator = "//" + name + "["; for (var i = 0; i < attNames.length; i++) { if (i > 0) { locator += " and "; } v...
name2 = name2.replace(new RegExp('\\$(\\d+)','g'), function (N) {
name2 = name2.replace(new RegExp('\\$(\\d+)','g'), function (all, N) {
name2 = name2.replace(new RegExp('\\$(\\d+)','g'), function (N) { if (typeof(ifs_match) != 'object' || typeof(ifs_match[N]) == 'undefined') return '' return ifs_match[N]; });
function() {return new XMLHttpRequest()}
this.each(function(value, index) { if (!(result &= (iterator || Prototype.K)(value, index))) throw $break; });
function() {return new XMLHttpRequest()}
this._each(function(value) { try { iterator(value, index++); } catch (e) { if (e != $continue) throw e; } });
return this.extractScripts().map(function(script) { return eval(script) });
this._each(function(value) { try { iterator(value, index++); } catch (e) { if (e != $continue) throw e; } });
$A(elements).each( function(element, index) { new effect(element, Object.extend(options, { delay: delay + index * speed })); });
this.effects.findAll(function(e){ return e.state=='idle' }).each( function(e) {
$A(elements).each( function(element, index) { new effect(element, Object.extend(options, { delay: delay + index * speed })); });
return expressions.map(function(expression) { return expression.strip().split(/\s+/).inject([null], function(results, expr) {
return expression.strip().split(/\s+/).inject([null], function(results, expr) {
return expressions.map(function(expression) { return expression.strip().split(/\s+/).inject([null], function(results, expr) { var selector = new Selector(expr); return results.inject([], function(elements, result) { return elements.concat(selector.findElements(result || element)); ...
}).flatten();
return expressions.map(function(expression) { return expression.strip().split(/\s+/).inject([null], function(results, expr) { var selector = new Selector(expr); return results.inject([], function(elements, result) { return elements.concat(selector.findElements(result || element)); ...
return expression.strip().split(/\s+/).inject([null], function(results, expr) { var selector = new Selector(expr); return results.inject([], function(elements, result) {
return results.inject([], function(elements, result) {
return expression.strip().split(/\s+/).inject([null], function(results, expr) { var selector = new Selector(expr); return results.inject([], function(elements, result) { return elements.concat(selector.findElements(result || element)); }); });
});
return expression.strip().split(/\s+/).inject([null], function(results, expr) { var selector = new Selector(expr); return results.inject([], function(elements, result) { return elements.concat(selector.findElements(result || element)); }); });
return results.inject([], function(elements, result) { return elements.concat(selector.findElements(result || element)); });
return $A($(form).getElementsByTagName('*')).inject([], function(elements, child) { if (Form.Element.Serializers[child.tagName.toLowerCase()]) elements.push(Element.extend(child)); return elements; });
return results.inject([], function(elements, result) { return elements.concat(selector.findElements(result || element)); });
child.nodeValue.toArray().each( function(character) { element.insertBefore( Builder.node('span',{style: tagifyStyle}, character == ' ' ? String.fromCharCode(160) : character), child); });
$A(elements).each( function(element, index) { new effect(element, Object.extend(options, { delay: index * options.speed + masterDelay })); });
child.nodeValue.toArray().each( function(character) { element.insertBefore( Builder.node('span',{style: tagifyStyle}, character == ' ' ? String.fromCharCode(160) : character), child); });
results.push(iterator(value, index));
if (result &= (iterator || Prototype.K)(value, index)) throw $break;
this.each(function(value, index) { results.push(iterator(value, index)); });
return function(match) { return template.evaluate(match) };
return pairs.inject({}, function(params, pairString) { var pair = pairString.split('='); params[pair[0]] = pair[1]; return params; });
return function(match) { return template.evaluate(match) };
body = body.map(function(statement){ return statement.strip() });
this.test = test || function() {};
body = body.map(function(statement){ return statement.strip() });
Recorder.addEventHandler('rememberClickedElement', 'mousedown', function(event) { this.clickedElement = event.target; this.clickedElementLocator = this.findLocator(event.target); }, { alwaysRecord: true, capture: true });
Recorder.addEventHandler('click', 'click', function(event) { if (event.button == 0) { if (this.clickLocator) { this.record("click", this.clickLocator, ''); delete this.clickLocator; } } });
Recorder.addEventHandler('rememberClickedElement', 'mousedown', function(event) { this.clickedElement = event.target; this.clickedElementLocator = this.findLocator(event.target); }, { alwaysRecord: true, capture: true });
menu.push([ HTMLArea._lc("Paste", "ContextMenu"), function() { editor.execCommand("paste"); }, null, config.btnList["paste"][1] ]);
function() { window.open(link.href); },
menu.push([ HTMLArea._lc("Paste", "ContextMenu"), function() { editor.execCommand("paste"); }, null, config.btnList["paste"][1] ]);
LocatorBuilders.add('hrefXPath', function(e) { if (e.attributes && e.hasAttribute("href")) { href = e.getAttribute("href"); if (href.search(/^http?:\/\ return " } else { return "
LocatorBuilders.add('attributesXPath', function(e) { const PREFERRED_ATTRIBUTES = ['id','name','value','type','action','onclick']; function attributesXPath(name, attNames, attributes) { var locator = " for (var i = 0; i < attNames.length; i++) { if (i > 0) { locator += " and "; } var attName = attNames[i]; locator += ...
LocatorBuilders.add('hrefXPath', function(e) { if (e.attributes && e.hasAttribute("href")) { href = e.getAttribute("href"); if (href.search(/^http?:\/\//) >= 0) { return "//a[@href=" + this.attributeValue(href) + "]"; } else { // use contains(), because in IE getAttribute("href") will return absolute path ...
setTimeout((function() {this.respondToReadyState(1)}).bind(this), 10);
this.each(function(value, index) { if (result &= (iterator || Prototype.K)(value, index)) throw $break; });
setTimeout((function() {this.respondToReadyState(1)}).bind(this), 10);
pulse = function(pos, pulses) { pulses = pulses || 5; return ( Math.round((pos % (1/pulses)) * pulses) == 0 ? ((pos * pulses * 2) - Math.floor(pos * pulses * 2)) : 1 - ((pos * pulses * 2) - Math.floor(pos * pulses * 2)) ); },
this.effects.findAll(function(e){ return e.state=='idle' }).each( function(e) {
pulse = function(pos, pulses) { pulses = pulses || 5; return ( Math.round((pos % (1/pulses)) * pulses) == 0 ? ((pos * pulses * 2) - Math.floor(pos * pulses * 2)) : 1 - ((pos * pulses * 2) - Math.floor(pos * pulses * 2)) ); },
this.each(function(value, index) { result = result && !!(iterator || Prototype.K)(value, index); if (!result) throw $break;
return pairs.inject({}, function(params, pairString) { var pair = pairString.split('='); params[pair[0]] = pair[1]; return params;
this.each(function(value, index) { result = result && !!(iterator || Prototype.K)(value, index); if (!result) throw $break; });
e.startOn += effect.finishOn; e.finishOn += effect.finishOn; });
this.effects.findAll(function(e){ return e.state=='idle' }).each( function(e) {
success( http.responseText ); return; case 201: success( eval( http.responseText ) );
if( http.getResponseHeader( "Hop-Json" ) ) { success( eval( http.responseText ) ); } else { success( http.responseText ); }
function( http ) { switch( http.status ) { case 200: success( http.responseText ); return; case 201: success( eval( http.responseText ) ); return; case 202: success( hop_unserialize( http.responseText ) ); return; default: ...
onComplete(this.transport);
this.options.onComplete = (function() { onComplete(this.transport); this.updateContent(); }).bind(this);
onComplete(this.transport);
this.options.onComplete = (function() { onComplete(this.transport); this.updateContent(); }).bind(this);
if( http.getResponseHeader( "Hop-Json" ) ) {
if( http.propertyIsEnumerable( "getResponseHeader" ) ) { json = http.getResponseHeader( "Hop-Json" ); } else { json = (http.getAllResponseHeaders().indexOf( "Hop-Json" ) >= 0); } if( json ) {
function( http ) { switch( http.status ) { case 200: if( http.getResponseHeader( "Hop-Json" ) ) { success( eval( http.responseText ) ); } else { success( http.responseText ); } return; case 202: success( hop_unserialize( http.responseText...
$A(elements).each( function(element, index) { new effect(element, Object.extend(options, { delay: index * options.speed + masterDelay })); });
this.effects.findAll(function(e){ return e.state=='idle' }).each( function(e) {
$A(elements).each( function(element, index) { new effect(element, Object.extend(options, { delay: index * options.speed + masterDelay })); });
tinyMCE.addEvent(element, "click", function (e) {window.setTimeout(function() {TinyMCE_Engine.prototype.confirmAdd(e, settings);}, 10);});
tinyMCE.addEvent(element, "focus", function () { TinyMCE_Engine.prototype.confirmAdd(null, settings); });
tinyMCE.addEvent(element, "click", function (e) {window.setTimeout(function() {TinyMCE_Engine.prototype.confirmAdd(e, settings);}, 10);});
if (iterator(value, index)) { result = value; throw _break; }
results.push(iterator(value, index));
this.each(function(value, index) { if (iterator(value, index)) { result = value; throw _break; } });
return this.template.gsub(this.pattern, function(match) { var before = match[1]; if (before == '\\') return match[2]; return before + (object[match[3]] || '').toString(); });
return function(match) { return template.evaluate(match) };
return this.template.gsub(this.pattern, function(match) { var before = match[1]; if (before == '\\') return match[2]; return before + (object[match[3]] || '').toString(); });
editor._insertImage(img);
if (confirm(HTMLArea._lc("Please confirm that you want to unlink this element.", "ContextMenu") + "\n" + HTMLArea._lc("Link points to:", "ContextMenu") + " " + link.href)) { while (link.firstChild) link.parentNode.insertBefore(link.firstChild, link); link.parentNode.removeChild(link); }
function() { editor._insertImage(img); },
LocatorBuilders.add('domFormElementIndex', function(e) { if (e.form) { var formLocator = this.findDomFormLocator(e.form); var elements = e.form.elements; for (var i = 0; i < elements.length; i++) { if (elements[i] == e) { return formLocator + ".elements[" + i + "]"; }
LocatorBuilders.add('hrefXPath', function(e) { if (e.attributes && e.hasAttribute("href")) { href = e.getAttribute("href"); if (href.search(/^http?:\/\ return " } else { return "
LocatorBuilders.add('domFormElementIndex', function(e) { if (e.form) { var formLocator = this.findDomFormLocator(e.form); var elements = e.form.elements; for (var i = 0; i < elements.length; i++) { if (elements[i] == e) { return formLocator + ".elements[" + i + "]"; } } } return null; });
this.options.onComplete = (function() { this.updateContent(); onComplete(this.transport); }).bind(this);
this.each(function(value, index) { results.push(iterator(value, index)); });
this.options.onComplete = (function() { this.updateContent(); onComplete(this.transport); }).bind(this);
this.each(function(value, index) { if (result = !!(iterator || Prototype.K)(value, index)) throw $break; });
return function(match) { return template.evaluate(match) };
this.each(function(value, index) { if (result = !!(iterator || Prototype.K)(value, index)) throw $break; });
tinyMCE.addEvent(element, "focus", function () { TinyMCE_Engine.prototype.confirmAdd(null, settings); });
tinyMCE.addEvent(element, "click", function () { TinyMCE_Engine.prototype.confirmAdd(null, settings); });
tinyMCE.addEvent(element, "focus", function () { TinyMCE_Engine.prototype.confirmAdd(null, settings); });
this._each(function(value) { try { iterator(value, index++); } catch (e) { if (e != $continue) throw e; } });
return this.template.gsub(this.pattern, function(match) { var before = match[1]; if (before == '\\') return match[2]; return before + (object[match[3]] || '').toString(); });
this._each(function(value) { try { iterator(value, index++); } catch (e) { if (e != $continue) throw e; } });
function() { editor.config.btnList['createlink'][3](editor); },
function() { tableOperation("TO-cell-prop"); },
function() { editor.config.btnList['createlink'][3](editor); },
LocatorBuilders.add('positionXPath', function(e) { this.log.debug("positionXPath: e=" + e); var path = ''; var current = e; while (current != null) { var currentPath = '/' + current.nodeName.toLowerCase(); if (current.parentNode != null) { var childNodes = current.parentNode.childNodes; var total = 0; var index = -1; f...
LocatorBuilders.add('domFormElementIndex', function(e) { if (e.form) { var formLocator = this.findDomFormLocator(e.form); var elements = e.form.elements; for (var i = 0; i < elements.length; i++) { if (elements[i] == e) { return formLocator + ".elements[" + i + "]";
LocatorBuilders.add('positionXPath', function(e) { this.log.debug("positionXPath: e=" + e); var path = ''; var current = e; while (current != null) { var currentPath = '/' + current.nodeName.toLowerCase(); if (current.parentNode != null) { var childNodes = current.parentNode.childNodes; var total = 0; ...
path = currentPath + path; var locator = '/' + path; if (e == this.findElement(locator)) { return locator; } current = current.parentNode; this.log.debug("positionXPath: current=" + current);
LocatorBuilders.add('positionXPath', function(e) { this.log.debug("positionXPath: e=" + e); var path = ''; var current = e; while (current != null) { var currentPath = '/' + current.nodeName.toLowerCase(); if (current.parentNode != null) { var childNodes = current.parentNode.childNodes; var total = 0; ...
setTimeout((function() {this.onComplete( this.transport)}).bind(this), 10);
this.each(function(value, index) { if (iterator(value, index)) { result = value; throw $break; } });
setTimeout((function() {this.onComplete( this.transport)}).bind(this), 10);
this.each(function(value, index) { results.push(iterator(value, index));
return this.template.gsub(this.pattern, function(match) { var before = match[1]; if (before == '\\') return match[2]; return before + (object[match[3]] || '').toString();
this.each(function(value, index) { results.push(iterator(value, index)); });
}
} else if (item._checked) { var selectedImageURL=item._selectedImageURL; if (selectedImageURL) { imageURL=selectedImageURL; } }
_a_updateItemStyle: function(item) { if (item._separator) { return; } var className=item._menuClassName; var imageURL=item._imageURL; var itemStyle=item.style; if (itemStyle) { if (item._visible===false) { if (itemStyle.display!="none") { itemStyle.display="none"; } } else { if (itemStyle...
this.commandRows.each(function(row) {
for (var i = 0; i < this.commandRows.length; i++) { var row = this.commandRows[i];
_addBreakpointSupport: function() { this.commandRows.each(function(row) { row.addBreakpointSupport(); }); },
});
}
_addBreakpointSupport: function() { this.commandRows.each(function(row) { row.addBreakpointSupport(); }); },
var btn = OpenLayers.Util.createImage(
var btn = OpenLayers.Util.createAlphaImageDiv(
_addButton:function(id, img, xy, sz) { var imgLocation = OpenLayers.Util.getImagesLocation() + img; // var btn = new ol.AlphaImage("_"+id, imgLocation, xy, sz); var btn = OpenLayers.Util.createImage( imgLocation, sz, xy, "absolute", "OpenLayers_Control_Pan...
btn.events.register("click", this, this.buttonClick);
btn.events.register("mousedown", this, this.buttonClick); btn.events.register("mouseup", this, this.stopAction);
_addButton:function(id, img, activeImg, xy, sz) { var imgLocation = OpenLayers.Util.getImagesLocation() + img; var activeImgLocation = OpenLayers.Util.getImagesLocation() + activeImg; // var btn = new ol.AlphaImage("_"+id, imgLocation, xy, sz); var btn = OpenLayers.Util.createAlphaImageD...
btn.events.register("mouseup", this, this.stopAction);
btn.events.register("mouseup", this, Event.stop);
_addButton:function(id, img, activeImg, xy, sz, title) { var imgLocation = OpenLayers.Util.getImagesLocation() + img; var activeImgLocation = OpenLayers.Util.getImagesLocation() + activeImg; // var btn = new ol.AlphaImage("_"+id, imgLocation, xy, sz); var btn = OpenLayers.Util.createAlph...
btn.events = new OpenLayers.Events(this, btn);
btn.events = new OpenLayers.Events(this, btn, null, true);
_addButton:function(id, img, activeImg, xy, sz, title) { var imgLocation = OpenLayers.Util.getImagesLocation() + img; var activeImgLocation = OpenLayers.Util.getImagesLocation() + activeImg; // var btn = new ol.AlphaImage("_"+id, imgLocation, xy, sz); var btn = OpenLayers.Util.createAlph...
btn.events.register("mouseup", this, Event.stop); btn.events.register("click", this, Event.stop);
_addButton:function(id, img, activeImg, xy, sz, title) { var imgLocation = OpenLayers.Util.getImagesLocation() + img; var activeImgLocation = OpenLayers.Util.getImagesLocation() + activeImg; // var btn = new ol.AlphaImage("_"+id, imgLocation, xy, sz); var btn = OpenLayers.Util.createAlph...
btn.events.register("mousedown", this, this.buttonClick); btn.events.register("dblclick", this, OpenLayers.Util.safeStopPropagation);
btn.events.register("mousedown", this, this.buttonDown); btn.events.register("mouseup", this, this.buttonUp); btn.events.register("dblclick", this, Event.stop);
_addButton:function(id, img, activeImg, xy, sz, title) { var imgLocation = OpenLayers.Util.getImagesLocation() + img; var activeImgLocation = OpenLayers.Util.getImagesLocation() + activeImg; // var btn = new ol.AlphaImage("_"+id, imgLocation, xy, sz); var btn = OpenLayers.Util.createAlph...
if (tinyMCE.isMSIE) {
if (tinyMCE.isIE) {
_addUnloadEvents : function() { if (tinyMCE.isMSIE) { if (tinyMCE.settings['add_unload_trigger']) { tinyMCE.addEvent(window, "unload", TinyMCE_Engine.prototype.unloadHandler); tinyMCE.addEvent(window.document, "beforeunload", TinyMCE_Engine.prototype.unloadHandler); } } else { if (tinyMCE.settings['add_u...
new OpenLayers.Pixel(20,9),
new OpenLayers.Size(20,9),
_addZoomBar:function(centered,sz) { var imgLocation = OpenLayers.Util.getImagesLocation(); var zoomStopSize = this.zoomStopHeight; var slider = OpenLayers.Util.createAlphaImageDiv(imgLocation+"slider.png", new OpenLayers.Pixel(20,9), centered...
this.sliderEvents = new OpenLayers.Events(this, slider);
this.sliderEvents = new OpenLayers.Events(this, slider, null, true);
_addZoomBar:function(centered) { var imgLocation = OpenLayers.Util.getImagesLocation(); var id = "OpenLayers_Control_PanZoomBar_Slider" + this.map.id; var zoomsToEnd = this.map.getNumZoomLevels() - 1 - this.map.getZoom(); var slider = OpenLayers.Util.createAlphaImageDiv(id, ...
this.divEvents = new OpenLayers.Events(this, div);
this.divEvents = new OpenLayers.Events(this, div, null, true);
_addZoomBar:function(centered) { var imgLocation = OpenLayers.Util.getImagesLocation(); var id = "OpenLayers_Control_PanZoomBar_Slider" + this.map.id; var zoomsToEnd = this.map.getNumZoomLevels() - 1 - this.map.getZoom(); var slider = OpenLayers.Util.createAlphaImageDiv(id, ...
var slider = OpenLayers.Util.createImage(imgLocation+"slider.png",
var slider = OpenLayers.Util.createAlphaImageDiv(imgLocation+"slider.png",
_addZoomBar:function(centered,sz) { var imgLocation = OpenLayers.Util.getImagesLocation(); var zoomStopSize = this.zoomStopHeight; var slider = OpenLayers.Util.createImage(imgLocation+"slider.png", new OpenLayers.Pixel(20,9), centered.add(-1,...
styleLink.href = window.location.pathname.replace(/[^\/]+$/, "selenium-test.css");
styleLink.href = window.location.pathname.replace(/[^\/\\]+$/, "selenium-test.css");
_attachStylesheet: function() { var d = this.getDocument(); var head = d.getElementsByTagName('head').item(0); var styleLink = d.createElement("link"); styleLink.rel = "stylesheet"; styleLink.type = "text/css"; styleLink.href = window.location.pathname.replace(/[^\/]+$/, "s...
styleLink.href = window.location.pathname.replace(/[^\/\\]+$/, "selenium-test.css");
if (browserVersion && browserVersion.isChrome) { var tempLink = window.document.createElement("link"); tempLink.href = "selenium-test.css"; styleLink.href = tempLink.href; } else { styleLink.href = window.location.pathname.replace(/[^\/\\]+$/, "selenium-test.css"); }
_attachStylesheet: function() { var d = this.getDocument(); var head = d.getElementsByTagName('head').item(0); var styleLink = d.createElement("link"); styleLink.rel = "stylesheet"; styleLink.type = "text/css"; styleLink.href = window.location.pathname.replace(/[^\/\\]+$/, ...
styleLink.href = window.location.pathname.replace(/[^\/\\]+$/, "selenium-test.css");
var styleSheetPath = window.location.pathname.replace(/[^\/\\]+$/, "selenium-test.css"); if (browserVersion.isIE && window.location.protocol == "file:") { styleSheetPath = "file: } styleLink.href = styleSheetPath;
_attachStylesheet: function() { var d = this.getDocument(); var head = d.getElementsByTagName('head').item(0); var styleLink = d.createElement("link"); styleLink.rel = "stylesheet"; styleLink.type = "text/css"; if (browserVersion && browserVersion.isChrome) { // ...
attrs.push((attribute=='className' ? 'class' : attribute) +
attrs.push((attribute in this.ATTR_MAP ? this.ATTR_MAP[attribute] : attribute) +
_attributes: function(attributes) { var attrs = []; for(attribute in attributes) attrs.push((attribute=='className' ? 'class' : attribute) + '="' + attributes[attribute].toString().escapeHTML() + '"'); return attrs.join(" "); },
tinyMCE.importPluginLanguagePack('autosave','en,tr,sv,cs,he,nb,hu,de,da,ru,ru_KOI8-R,ru_UTF-8,nn,fi,cy,es,is,pl,pt_br');var TinyMCE_AutoSavePlugin={getInfo:function(){return{longname:'Auto save',author:'Moxiecode Systems',authorurl:'http:
tinyMCE.importPluginLanguagePack('autosave');var TinyMCE_AutoSavePlugin={getInfo:function(){return{longname:'Auto save',author:'Moxiecode Systems AB',authorurl:'http:
tinyMCE.importPluginLanguagePack('autosave','en,tr,sv,cs,he,nb,hu,de,da,ru,ru_KOI8-R,ru_UTF-8,nn,fi,cy,es,is,pl,pt_br');var TinyMCE_AutoSavePlugin={getInfo:function(){return{longname:'Auto save',author:'Moxiecode Systems',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/tinymce/docs/plugin...
onError(this, status, statusText);
onError.call(this, this, status, statusText);
_callError: function(status, statusText) { if (this._error) { // Error handler already called return; } this._error = true; // Call error handler var onError=this._listener.onError; if (typeof(onError)!="function") { return; } try { if (!this._noLog) { f_core.Info(f_httpRequest, "Call onError for...
if (!window.calendar) {
var calendar = window._dynarch_popupCalendar; if (!calendar) {
Calendar._checkCalendar = function(ev) { if (!window.calendar) { return false; } var el = Calendar.is_ie ? Calendar.getElement(ev) : Calendar.getTargetElement(ev); for (; el != null && el != calendar.element; el = el.parentNode); if (el == null) { // calls closeHandler which should hide the calendar. window.calendar...
window.calendar.callCloseHandler();
window._dynarch_popupCalendar.callCloseHandler();
Calendar._checkCalendar = function(ev) { if (!window.calendar) { return false; } var el = Calendar.is_ie ? Calendar.getElement(ev) : Calendar.getTargetElement(ev); for (; el != null && el != calendar.element; el = el.parentNode); if (el == null) { // calls closeHandler which should hide the calendar. window.calendar...
result.failed = false; result.passed = true;
var failureType = result.failed ? "failure" : "error"; if (failureType == this.expectedFailureType) { result.failed = false; result.passed = true; } else { result.failed = true; result.failureMessage = "Expected "+this.expectedFailureType+", but "+failureType+" occurred instead"; }
_checkExpectedFailure : function(result) { if (this.expectedFailure != null) { if (this.expectedFailureJustSet) { this.expectedFailureJustSet = false; return; } if (result.passed) { result.passed = false; result.fail...
if (result.passed) {
if (!result.failed) {
_checkExpectedFailure : function(result) { if (this.expectedFailure != null) { if (this.expectedFailureJustSet) { this.expectedFailureJustSet = false; return; } if (result.passed) { result.passed = false; result.fail...
var failureType = result.failed ? "failure" : "error";
var failureType = result.error ? "error" : "failure";
_checkExpectedFailure : function(result) { if (this.expectedFailure != null) { if (this.expectedFailureJustSet) { this.expectedFailureJustSet = false; return; } if (result.passed) { result.passed = false; result.fail...
tinyMCE.importPluginLanguagePack('paste','en,tr,sv,cs,zh_cn,fr_ca,da,he,nb,de,hu,ru,ru_KOI8-R,ru_UTF-8,nn,fi,es,cy,is,pl,nl,fr,pt_br');var TinyMCE_PastePlugin={getInfo:function(){return{longname:'Paste text/word',author:'Moxiecode Systems',authorurl:'http:
tinyMCE.importPluginLanguagePack('paste');var TinyMCE_PastePlugin={getInfo:function(){return{longname:'Paste text/word',author:'Moxiecode Systems AB',authorurl:'http:
tinyMCE.importPluginLanguagePack('paste','en,tr,sv,cs,zh_cn,fr_ca,da,he,nb,de,hu,ru,ru_KOI8-R,ru_UTF-8,nn,fi,es,cy,is,pl,nl,fr,pt_br');var TinyMCE_PastePlugin={getInfo:function(){return{longname:'Paste text/word',author:'Moxiecode Systems',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/t...
tables.each(function (table) { $A(table.rows).each(function(candidateRow) {
for (var i = 0; i < tables.length; i++) { var table = tables[i]; var tableRows = $A(table.rows); for (var j = 0; j < tableRows.length; j++) { var candidateRow = tableRows[j];
_collectCommandRows: function () { var commandRows = []; var tables = $A(this.testDocument.getElementsByTagName("table")); var self = this; tables.each(function (table) { $A(table.rows).each(function(candidateRow) { if (self.isCommandRow(candidateRow)) { ...
}.bind(this)); });
} }
_collectCommandRows: function () { var commandRows = []; var tables = $A(this.testDocument.getElementsByTagName("table")); var self = this; tables.each(function (table) { $A(table.rows).each(function(candidateRow) { if (self.isCommandRow(candidateRow)) { ...
for (rowNum = 1; rowNum < this.getTestTable().rows.length; rowNum++) { var rowElement = this.getTestTable().rows[rowNum];
var tables = $A(this.suiteDocument.getElementsByTagName("table")); var testTable = tables[0]; for (rowNum = 1; rowNum < testTable.rows.length; rowNum++) { var rowElement = testTable.rows[rowNum];
_collectSuiteRows: function () { var result = []; for (rowNum = 1; rowNum < this.getTestTable().rows.length; rowNum++) { var rowElement = this.getTestTable().rows[rowNum]; result.push(new HtmlTestSuiteRow(rowElement, testFrame, this)); } return result; },
} for (var tableNum = 1; tableNum < $A(this.suiteDocument.getElementsByTagName("table")).length; tableNum++) { testTable = tables[tableNum]; for (rowNum = 1; rowNum < testTable.rows.length; rowNum++) { var rowElement = testTable.rows[rowNum]; new HtmlTestSuiteRow(rowElement, testFrame, this); }
_collectSuiteRows: function () { var result = []; for (rowNum = 1; rowNum < this.getTestTable().rows.length; rowNum++) { var rowElement = this.getTestTable().rows[rowNum]; result.push(new HtmlTestSuiteRow(rowElement, testFrame, this)); } return result; },
str += "<li>" + this.trimString(r[3]) + "<\/li>\r\n";
str += "<li>" + this.trimString(r[3]) + "<\/li>\r\n"; alert("r[0]: " + r[0] + "===== r[3]:" + r[3]);
WikiEditor.prototype._convertGenericListExternal = function(regexp, content, tagname, classname) { var str = "<" + tagname + " class=\"" + classname + "\">\r\n"; var r; var _content = content; RegExp.lastIndex = 0; while( (r = regexp.exec(_content)) && r["index"] == 0) { str += "<li>" + this.trimString(r[3]) + "<\/li>...
aw = aw < 0 ? 300 : aw;
aw = (isNaN(aw) || aw < 0) ? 300 : aw;
_createIFrame : function(replace_element, doc, win) { var iframe, id = replace_element.getAttribute("id"); var aw, ah; if (typeof(doc) == "undefined") doc = document; if (typeof(win) == "undefined") win = window; iframe = doc.createElement("iframe"); aw = "" + tinyMCE.settings['area_width']; ah = "" + tinyM...
ah = ah < 0 ? 240 : ah;
ah = (isNaN(ah) || ah < 0) ? 240 : ah;
_createIFrame : function(replace_element, doc, win) { var iframe, id = replace_element.getAttribute("id"); var aw, ah; if (typeof(doc) == "undefined") doc = document; if (typeof(win) == "undefined") win = window; iframe = doc.createElement("iframe"); aw = "" + tinyMCE.settings['area_width']; ah = "" + tinyM...
if (tinyMCE.isMSIE && !tinyMCE.isOpera)
if (tinyMCE.isRealIE)
_createIFrame : function(replace_element, doc, win) { var iframe, id = replace_element.getAttribute("id"); var aw, ah; if (typeof(doc) == "undefined") doc = document; if (typeof(win) == "undefined") win = window; iframe = doc.createElement("iframe"); aw = "" + tinyMCE.settings['area_width']; ah = "" + tinyM...
po = tinyMCE.themes[tinyMCE.settings['theme']]; if (po && po.cleanup) content = po.cleanup(type, content, inst);
_customCleanup : function(inst, type, content) { var pl, po, i; // Call custom cleanup var customCleanup = tinyMCE.settings['cleanup_callback']; if (customCleanup != "" && eval("typeof(" + customCleanup + ")") != "undefined") content = eval(customCleanup + "(type, content, inst);"); // Trigger plugin cleanups ...
var value = this.start; do { iterator(value); value = value.succ(); } while (this.include(value));
this.element.className.split(/\s+/).select(function(name) { return name.length > 0; })._each(iterator);
_each: function(iterator) { var value = this.start; do { iterator(value); value = value.succ(); } while (this.include(value)); },
var value = this.start; do { iterator(value); value = value.succ(); } while (this.include(value));
for (var i = 0; i < this.length; i++) iterator(this[i]);
_each: function(iterator) { var value = this.start; do { iterator(value); value = value.succ(); } while (this.include(value)); },
for (var i = 0; i < this.length; i++) iterator(this[i]);
var value = this.start; do { iterator(value); value = value.succ(); } while (this.include(value));
_each: function(iterator) { for (var i = 0; i < this.length; i++) iterator(this[i]); },
var result = handler.execute(selenium, command); LOG.debug("Command complete"); this.commandComplete(result);
this.result = handler.execute(selenium, command);
_executeCurrentCommand : function() { /** * Execute the current command. * * @return a function which will be used to determine when * execution can continue, or null if we can continue immediately */ var command = this.currentCommand; LOG.info("Executing...
this.waitForCondition = result.terminationCondition;
this.waitForCondition = this.result.terminationCondition;
_executeCurrentCommand : function() { /** * Execute the current command. * * @return a function which will be used to determine when * execution can continue, or null if we can continue immediately */ var command = this.currentCommand; LOG.info("Executing...
if (this.isMSIE && n == "http-equiv")
if (this.isIE && n == "http-equiv")
_getAttrib : function(e, n, d) { if (typeof(d) == "undefined") d = ""; if (!e || e.nodeType != 1) return d; var v = e.getAttribute(n, 0); if (n == "class" && !v) v = e.className; if (this.isMSIE && n == "http-equiv") v = e.httpEquiv; if (this.isMSIE && e.nodeName == "FORM" && n == "enctype" && v == "appl...
if (this.isMSIE && e.nodeName == "FORM" && n == "enctype" && v == "application/x-www-form-urlencoded")
if (this.isIE && e.nodeName == "FORM" && n == "enctype" && v == "application/x-www-form-urlencoded")
_getAttrib : function(e, n, d) { if (typeof(d) == "undefined") d = ""; if (!e || e.nodeType != 1) return d; var v = e.getAttribute(n, 0); if (n == "class" && !v) v = e.className; if (this.isMSIE && n == "http-equiv") v = e.httpEquiv; if (this.isMSIE && e.nodeName == "FORM" && n == "enctype" && v == "appl...
if (this.isMSIE && e.nodeName == "INPUT" && n == "size" && v == "20")
if (this.isIE && e.nodeName == "INPUT" && n == "size" && v == "20")
_getAttrib : function(e, n, d) { if (typeof(d) == "undefined") d = ""; if (!e || e.nodeType != 1) return d; var v = e.getAttribute(n, 0); if (n == "class" && !v) v = e.className; if (this.isMSIE && n == "http-equiv") v = e.httpEquiv; if (this.isMSIE && e.nodeName == "FORM" && n == "enctype" && v == "appl...
if (this.isMSIE && e.nodeName == "INPUT" && n == "maxlength" && v == "2147483647")
if (this.isIE && e.nodeName == "INPUT" && n == "maxlength" && v == "2147483647")
_getAttrib : function(e, n, d) { if (typeof(d) == "undefined") d = ""; if (!e || e.nodeType != 1) return d; var v = e.getAttribute(n, 0); if (n == "class" && !v) v = e.className; if (this.isMSIE && n == "http-equiv") v = e.httpEquiv; if (this.isMSIE && e.nodeName == "FORM" && n == "enctype" && v == "appl...
tinyMCE.importThemeLanguagePack('advanced');var TinyMCE_AdvancedTheme={_autoImportCSSClasses:true,_resizer:{},_buttons:[['bold','{$lang_bold_img}','lang_bold_desc','Bold'],['italic','{$lang_italic_img}','lang_italic_desc','Italic'],['underline','{$lang_underline_img}','lang_underline_desc','Underline'],['strikethrough'...
tinyMCE.importThemeLanguagePack('advanced');var TinyMCE_AdvancedTheme={_defColors:"000000,993300,333300,003300,003366,000080,333399,333333,800000,FF6600,808000,008000,008080,0000FF,666699,808080,FF0000,FF9900,99CC00,339966,33CCCC,3366FF,800080,999999,FF00FF,FFCC00,FFFF00,00FF00,00FFFF,00CCFF,993366,C0C0C0,FF99CC,FFCC99...
tinyMCE.importThemeLanguagePack('advanced');var TinyMCE_AdvancedTheme={_autoImportCSSClasses:true,_resizer:{},_buttons:[['bold','{$lang_bold_img}','lang_bold_desc','Bold'],['italic','{$lang_italic_img}','lang_italic_desc','Italic'],['underline','{$lang_underline_img}','lang_underline_desc','Underline'],['strikethrough'...
tinyMCE.importPluginLanguagePack('advimage','en,tr,de,sv,zh_cn,cs,fa,fr_ca,fr,pl,pt_br,nl,he,nb,ru,ru_KOI8-R,ru_UTF-8,nn,cy,es,is,zh_tw,zh_tw_utf8,sk,da');var TinyMCE_AdvancedImagePlugin={getInfo:function(){return{longname:'Advanced image',author:'Moxiecode Systems',authorurl:'http:
tinyMCE.importPluginLanguagePack('advimage');var TinyMCE_AdvancedImagePlugin={getInfo:function(){return{longname:'Advanced image',author:'Moxiecode Systems AB',authorurl:'http:
tinyMCE.importPluginLanguagePack('advimage','en,tr,de,sv,zh_cn,cs,fa,fr_ca,fr,pl,pt_br,nl,he,nb,ru,ru_KOI8-R,ru_UTF-8,nn,cy,es,is,zh_tw,zh_tw_utf8,sk,da');var TinyMCE_AdvancedImagePlugin={getInfo:function(){return{longname:'Advanced image',author:'Moxiecode Systems',authorurl:'http://tinymce.moxiecode.com',infourl:'htt...
if (sn && sn.nextSibling && sn.nextSibling.nodeName == "BR") {
if (sn && sn.nextSibling && sn.nextSibling.nodeName == "BR" && sn.parentNode.nodeName != "BODY") {
_handleBackSpace : function(inst) { var r = inst.getRng(), sn = r.startContainer, nv, s = false; if (sn && sn.nextSibling && sn.nextSibling.nodeName == "BR") { nv = sn.nodeValue; // Handle if a backspace is pressed after a space character #bug 1466054 if (nv != null && nv.length >= r.startOffset && nv.charAt(r...
if (nv != null && nv.length >= r.startOffset && nv.charAt(r.startOffset - 1) == ' ') s = true;
_handleBackSpace : function(inst) { var r = inst.getRng(), sn = r.startContainer, nv, s = false; if (sn && sn.nextSibling && sn.nextSibling.nodeName == "BR") { nv = sn.nodeValue; // Handle if a backspace is pressed after a space character #bug 1466054 if (nv != null && nv.length >= r.startOffset && nv.charAt(r...
if (inst.settings.auto_resize) inst.resizeToContent();
_handleBackSpace : function(inst) { var r = inst.getRng(), sn = r.startContainer, nv, s = false; if (sn && sn.nextSibling && sn.nextSibling.nodeName == "BR") { nv = sn.nodeValue; // Handle if a backspace is pressed after a space character #bug 1466054 if (nv != null && nv.length >= r.startOffset && nv.charAt(r...
this.commandError(msg);
return this.commandError(msg);
_handleCommandError : function(e) { if (!e.isSeleniumError) { LOG.exception(e); var msg = "Selenium failure. Please report to selenium-dev@openqa.org, with error details from the log window."; if (e.message) { msg += " The error message is: " + e.message; ...
this.commandError(e.message);
return this.commandError(e.message);
_handleCommandError : function(e) { if (!e.isSeleniumError) { LOG.exception(e); var msg = "Selenium failure. Please report to selenium-dev@openqa.org, with error details from the log window."; if (e.message) { msg += " The error message is: " + e.message; ...
setTimeout(this.continueTestAtCurrentCommand.bind(this), 2000);
setTimeout(fnBind(this.continueTestAtCurrentCommand, this), 2000);
_HandleHttpResponse : function() { if (this.xmlHttpForCommandsAndResults.readyState == 4) { if (this.xmlHttpForCommandsAndResults.status == 200) { var command = this._extractCommand(this.xmlHttpForCommandsAndResults); this.currentCommand = command; this...
new OpenLayers.Pixel(tileoffsetx, tileoffsety)
new OpenLayers.Pixel(tileoffsetx - parseInt(this.map.layerContainerDiv.style.left), tileoffsety - parseInt(this.map.layerContainerDiv.style.top))
_initTiles:function() { //first of all, clear out the main div this.div.innerHTML = ""; //now clear out the old grid and start a new one this.clearGrid(); this.grid = new Array(); var viewSize = this.map.getSize(); var bounds = this.map.getExtent(); var extent...
this.div.innerHTML = ""; this.clearGrid(); this.grid = new Array();
_initTiles:function() { //first of all, clear out the main div this.div.innerHTML = ""; //now clear out the old grid and start a new one this.clearGrid(); this.grid = new Array(); var viewSize = this.map.getSize(); var bounds = this.map.getExtent(); var extent...
var row = new Array(); this.grid.push(row);
var row; row = this.grid[rowidx++]; if (!row) { row = new Array(); this.grid.push(row); }
_initTiles:function() { //first of all, clear out the main div this.div.innerHTML = ""; //now clear out the old grid and start a new one this.clearGrid(); this.grid = new Array(); var viewSize = this.map.getSize(); var bounds = this.map.getExtent(); var extent...
var tile = this.addTile(tileBounds, new OpenLayers.Pixel(tileoffsetx - parseInt(this.map.layerContainerDiv.style.left), tileoffsety - parseInt(this.map.layerContainerDiv.style.top)) ); tile.draw(); row.push(tile);
var x = tileoffsetx; x -= parseInt(this.map.layerContainerDiv.style.left); var y = tileoffsety; y -= parseInt(this.map.layerContainerDiv.style.top); var px = new OpenLayers.Pixel(x, y); var tile; tile = row[colidx++]; if (!tile) { tile = this.addTile(tileBounds, px); tile.draw(); row.push(tile); } else { tile.moveTo...
_initTiles:function() { //first of all, clear out the main div this.div.innerHTML = ""; //now clear out the old grid and start a new one this.clearGrid(); this.grid = new Array(); var viewSize = this.map.getSize(); var bounds = this.map.getExtent(); var extent...
} while (tileoffsetlon < bounds.right)
} while (tileoffsetlon <= bounds.right + tilelon * this.buffer)
_initTiles:function() { //first of all, clear out the main div this.div.innerHTML = ""; //now clear out the old grid and start a new one this.clearGrid(); this.grid = new Array(); var viewSize = this.map.getSize(); var bounds = this.map.getExtent(); var extent...