rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
testcases[tc++] = new TestCase( | new TestCase( | function EvalTest() { MY_EVAL( "RESULT = EXPECT" ); testcases[tc++] = new TestCase( SECTION, "Call eval indirectly", EXPECT, RESULT );} |
testcases[tc++] = new TestCase( SECTION, "Call eval indirectly", EXPECT, RESULT ); | new TestCase( SECTION, "Call eval indirectly", EXPECT, RESULT ); | function EvalTest() { with( this ) { MY_EVAL( "RESULT = h(-1, 1)" ); EXPECT = 1; //The base e to the power (-1 + 1), i.e. the power 0, equals 1 .... testcases[tc++] = new TestCase( SECTION, "Call eval indirectly", EXPECT, RESULT ); }} |
"<html>\n" + "<head>\n" + "<title>"+calendarStringBundle.GetStringFromName( "HTMLTitle" )+"</title>\n" + | "<html>\n" + "<head>\n" + "<title>"+gCalendarBundle.getString( "HTMLTitle" )+"</title>\n" + | function eventArrayToHTML( calendarEventArray ){ sHTMLHeader = "<html>\n" + "<head>\n" + "<title>"+calendarStringBundle.GetStringFromName( "HTMLTitle" )+"</title>\n" + "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n" + "</head>\n"+ "<body bgcolor=\"#FFFFFF\" text=\"#000000\"... |
sHTMLText += "<B>"+calendarStringBundle.GetStringFromName( "eventTitle" )+"</B>\t" + calendarEvent.title + "<BR>\n"; sHTMLText += "<B>"+calendarStringBundle.GetStringFromName( "eventDescription" )+"</B>\t" + calendarEvent.description + "<BR>\n"; sHTMLText += "<B>"+calendarStringBundle.GetStringFromName( "eventWhen" )+"... | sHTMLText += "<B>"+gCalendarBundle.getString( "eventTitle" )+"</B>\t" + calendarEvent.title + "<BR>\n"; sHTMLText += "<B>"+gCalendarBundle.getString( "eventDescription" )+"</B>\t" + calendarEvent.description + "<BR>\n"; sHTMLText += "<B>"+gCalendarBundle.getString( "eventWhen" )+"</B>" + formatDateTimeInterval(calendar... | function eventArrayToHTML( calendarEventArray ){ sHTMLHeader = "<html>\n" + "<head>\n" + "<title>"+calendarStringBundle.GetStringFromName( "HTMLTitle" )+"</title>\n" + "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n" + "</head>\n"+ "<body bgcolor=\"#FFFFFF\" text=\"#000000\"... |
const sHTMLHeader = | sHTMLHeader = | function eventArrayToHTML( calendarEventArray ){ const sHTMLHeader = "<html>\n" + "<head>\n" + "<title>Mozilla Calendar</title>\n" + "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n" + "</head>\n"+ "<body bgcolor=\"#FFFFFF\" text=\"#000000\">\n"; const sHTMLFooter = "\n... |
const sHTMLFooter = | sHTMLFooter = | function eventArrayToHTML( calendarEventArray ){ const sHTMLHeader = "<html>\n" + "<head>\n" + "<title>Mozilla Calendar</title>\n" + "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n" + "</head>\n"+ "<body bgcolor=\"#FFFFFF\" text=\"#000000\">\n"; const sHTMLFooter = "\n... |
"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\n" + | "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n" + | function eventArrayToHTML( calendarEventArray ){ sHTMLHeader = "<html>\n" + "<head>\n" + "<title>Mozilla Calendar</title>\n" + "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\n" + "</head>\n"+ "<body bgcolor=\"#FFFFFF\" text=\"#000000\">\n"; sHTMLFooter = "\n</body... |
var calendarObject = calendarEventArray[ eventArrayIndex ].clone(); | var calendarEvent = calendarEventArray[ eventArrayIndex ].clone(); | function eventArrayToICalString( calendarEventArray, doPatchForExport ){ if( !calendarEventArray) calendarEventArray = gCalendarWindow.EventSelection.selectedEvents; var sTextiCalendar = ""; for( var eventArrayIndex = 0; eventArrayIndex < calendarEventArray.length; ++eventArrayIndex ) { var calend... |
if( isEvent(calendarObject) && calendarObject.allDay != true ) convertLocalToZulu( calendarObject ); | if(calendarEvent.allDay != true) convertLocalToZulu( calendarEvent ); | function eventArrayToICalString( calendarEventArray, doPatchForExport ){ if( !calendarEventArray) calendarEventArray = gCalendarWindow.EventSelection.selectedEvents; var sTextiCalendar = ""; for( var eventArrayIndex = 0; eventArrayIndex < calendarEventArray.length; ++eventArrayIndex ) { var calend... |
if( calendarObject.method == 0 ) calendarObject.method = calendarObject.ICAL_METHOD_PUBLISH; if( calendarObject.stamp.year == 0 ) calendarObject.stamp.setTime( new Date() ); | if( calendarEvent.method == 0 ) calendarEvent.method = calendarEvent.ICAL_METHOD_PUBLISH; if( calendarEvent.stamp.year == 0 ) calendarEvent.stamp.setTime( new Date() ); | function eventArrayToICalString( calendarEventArray, doPatchForExport ){ if( !calendarEventArray) calendarEventArray = gCalendarWindow.EventSelection.selectedEvents; var sTextiCalendar = ""; for( var eventArrayIndex = 0; eventArrayIndex < calendarEventArray.length; ++eventArrayIndex ) { var calend... |
if ( isEvent(calendarObject) && doPatchForExport ) sTextiCalendar += patchICalStringForExport( calendarObject.getIcalString() ); | if ( doPatchForExport ) sTextiCalendar += patchICalStringForExport( calendarEvent.getIcalString() ); | function eventArrayToICalString( calendarEventArray, doPatchForExport ){ if( !calendarEventArray) calendarEventArray = gCalendarWindow.EventSelection.selectedEvents; var sTextiCalendar = ""; for( var eventArrayIndex = 0; eventArrayIndex < calendarEventArray.length; ++eventArrayIndex ) { var calend... |
{ if( isEvent(calendarObject) ) sTextiCalendar += calendarObject.getIcalString(); else sTextiCalendar += calendarObject.getTodoIcalString(); } | sTextiCalendar += calendarEvent.getIcalString() ; | function eventArrayToICalString( calendarEventArray, doPatchForExport ){ if( !calendarEventArray) calendarEventArray = gCalendarWindow.EventSelection.selectedEvents; var sTextiCalendar = ""; for( var eventArrayIndex = 0; eventArrayIndex < calendarEventArray.length; ++eventArrayIndex ) { var calend... |
var calendarEvent = calendarEventArray[ eventArrayIndex ]; | var calendarEvent = calendarEventArray[ eventArrayIndex ].clone(); | function eventArrayToICalString( calendarEventArray, doPatchForExport ){ if( !calendarEventArray) calendarEventArray = gCalendarWindow.EventSelection.selectedEvents; var sTextiCalendar = ""; for( var eventArrayIndex = 0; eventArrayIndex < calendarEventArray.length; ++eventArrayIndex ) { var calend... |
if( calendarEvent.method == 0 ) calendarEvent.method = calendarEvent.ICAL_METHOD_PUBLISH; if( calendarEvent.stamp.year == 0 ) calendarEvent.stamp.setTime( new Date() ); | function eventArrayToICalString( calendarEventArray, doPatchForExport ){ if( !calendarEventArray) calendarEventArray = gCalendarWindow.EventSelection.selectedEvents; var sTextiCalendar = ""; for( var eventArrayIndex = 0; eventArrayIndex < calendarEventArray.length; ++eventArrayIndex ) { var calend... | |
if(calendarEvent.allDay != true) | function eventArrayToICalString( calendarEventArray, doPatchForExport ){ if( !calendarEventArray) calendarEventArray = gCalendarWindow.EventSelection.selectedEvents; var sTextiCalendar = ""; for( var eventArrayIndex = 0; eventArrayIndex < calendarEventArray.length; ++eventArrayIndex ) { var calend... | |
sRTFText += "\\b\\f0\\fs20 " + calendarStringBundle.GetStringFromName( "eventTitle" ) + "\\b0\\tab " + calendarEvent.title + "\\par\n"; sRTFText += "\\b\\f0\\fs20 " + calendarStringBundle.GetStringFromName( "eventDescription" ) + "\\b0\\tab " + calendarEvent.description + "\\par\n"; | sRTFText += "\\b\\f0\\fs20 " + gCalendarBundle.getString( "eventTitle" ) + "\\b0\\tab " + calendarEvent.title + "\\par\n"; sRTFText += "\\b\\f0\\fs20 " + gCalendarBundle.getString( "eventDescription" ) + "\\b0\\tab " + calendarEvent.description + "\\par\n"; | function eventArrayToRTF( calendarEventArray ){ sRTFHeader = "{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fswiss\\fcharset0 Arial;}{\\f1\\fmodern\\fcharset0 Courier New;}}" + "{\\colortbl ;\\red0\\green0\\blue0;}" + "\\viewkind4\\uc1\\pard\\fi-1800\\li1800\\tx1800\\cf1"; sRTFFoote... |
var x = 0; var y = 0; var errorMessage; var reason = ""; var passed = true; | var b = a.slice(x,y); var c = mySlice(a,x,y); | function exhaustiveSliceTest(testname, a) { var x = 0; var y = 0; var errorMessage; var reason = ""; var passed = true; for (x = -(2 + a.length); x <= (2 + a.length); x++) for (y = (2 + a.length); y >= -(2 + a.length); y--) { var b = a.slice(x,y); var c... |
for (x = -(2 + a.length); x <= (2 + a.length); x++) for (y = (2 + a.length); y >= -(2 + a.length); y--) { var b = a.slice(x,y); var c = mySlice(a,x,y); if (String(b) != String(c)) { errorMessage = "ERROR: 'TEST FAILED' ERROR: 'TEST FAILED' ERROR: 'TEST FAILED'\n" + " test: " + "a.slice(" + x + "," + y + ")... | if (String(b) != String(c)) { errorMessage = "ERROR: 'TEST FAILED' ERROR: 'TEST FAILED' ERROR: 'TEST FAILED'\n" + " test: " + "a.slice(" + x + "," + y + ")\n" + " a: " + String(a) + "\n" + " actual result: " + String(b) + "\n" + " expected result: " + String(c) + "\n"; writeHeaderToLog(errorM... | function exhaustiveSliceTest(testname, a) { var x = 0; var y = 0; var errorMessage; var reason = ""; var passed = true; for (x = -(2 + a.length); x <= (2 + a.length); x++) for (y = (2 + a.length); y >= -(2 + a.length); y--) { var b = a.slice(x,y); var c... |
var testCase = new TestCase(SECTION, testname, true, passed); if (passed == false) testCase.reason = reason; return testCase; } | function exhaustiveSliceTest(testname, a) { var x = 0; var y = 0; var errorMessage; var reason = ""; var passed = true; for (x = -(2 + a.length); x <= (2 + a.length); x++) for (y = (2 + a.length); y >= -(2 + a.length); y--) { var b = a.slice(x,y); var c... | |
var errorMessage; var passed = true; var reason = ""; | actualSpliced = []; expectedSpliced = []; | function exhaustiveSpliceTest(testname, testArray) { var errorMessage; var passed = true; var reason = ""; for (var first = -(testArray.length+2); first <= 2 + testArray.length; first++) { var actualSpliced = []; var expectedSpliced = []; var actualRemoved = []; ... |
for (var first = -(testArray.length+2); first <= 2 + testArray.length; first++) | for (var i = 0; i < testArray.length; ++i) actualSpliced.push(testArray[i]); actualRemoved = actualSpliced.splice(first,len); expectedRemoved = mySplice(testArray,expectedSpliced,first,len,[]); var adjustedFirst = first; if (adjustedFirst < 0) adjustedFirst = testArray.length + first; if (adjustedFirst < 0) adjuste... | function exhaustiveSpliceTest(testname, testArray) { var errorMessage; var passed = true; var reason = ""; for (var first = -(testArray.length+2); first <= 2 + testArray.length; first++) { var actualSpliced = []; var expectedSpliced = []; var actualRemoved = []; ... |
var actualSpliced = []; var expectedSpliced = []; var actualRemoved = []; var expectedRemoved = []; | if ( (String(actualSpliced) == String(expectedSpliced)) &&(String(actualRemoved) != String(expectedRemoved)) ) { if ( (expectedRemoved.length == 1) &&(String(actualRemoved) == String(expectedRemoved[0]))) continue; if ( expectedRemoved.length == 0 && actualRemoved == void 0) continue; } | function exhaustiveSpliceTest(testname, testArray) { var errorMessage; var passed = true; var reason = ""; for (var first = -(testArray.length+2); first <= 2 + testArray.length; first++) { var actualSpliced = []; var expectedSpliced = []; var actualRemoved = []; ... |
for (var len = 0; len < testArray.length + 2; len++) { actualSpliced = []; expectedSpliced = []; for (var i = 0; i < testArray.length; ++i) actualSpliced.push(testArray[i]); actualRemoved = actualSpliced.splice(first,len); expectedRemoved = mySplice(testArray,expectedSpliced,first,len,[]); var adjustedFirst = fi... | errorMessage = "ERROR: 'TEST FAILED'\n" + " test: " + "a.splice(" + first + "," + len + ",-97,new String('test arg'),[],9.8)\n" + " a: " + String(testArray) + "\n" + " actual spliced: " + String(actualSpliced) + "\n" + " expected spliced: " + String(expectedSpliced) + "\n" + " actual remo... | function exhaustiveSpliceTest(testname, testArray) { var errorMessage; var passed = true; var reason = ""; for (var first = -(testArray.length+2); first <= 2 + testArray.length; first++) { var actualSpliced = []; var expectedSpliced = []; var actualRemoved = []; ... |
var testcase = new TestCase( SECTION, testname, true, passed); if (!passed) testcase.reason = reason; return testcase; | function exhaustiveSpliceTest(testname, testArray) { var errorMessage; var passed = true; var reason = ""; for (var first = -(testArray.length+2); first <= 2 + testArray.length; first++) { var actualSpliced = []; var expectedSpliced = []; var actualRemoved = []; ... | |
} var testcase = new TestCase( SECTION, testname, true, passed); if (!passed) testcase.reason = reason; return testcase; } | function exhaustiveSpliceTest(testname, testArray) { var errorMessage; var passed = true; var reason = ""; for (var first = -(testArray.length+2); first <= 2 + testArray.length; first++) { var actualSpliced = []; var expectedSpliced = []; var actualRemoved = []; ... | |
var passed = true; var errorMessage; var reason = ""; for (var first = -(testArray.length+2); first <= 2 + testArray.length; first++) { var actualSpliced = []; var expectedSpliced = []; var actualRemoved = []; var expectedRemoved = []; | actualSpliced = []; expectedSpliced = []; | function exhaustiveSpliceTestWithArgs(testname, testArray) { var passed = true; var errorMessage; var reason = ""; for (var first = -(testArray.length+2); first <= 2 + testArray.length; first++) { var actualSpliced = []; var expectedSpliced = []; var actualRemoved = []; ... |
for (var len = 0; len < testArray.length + 2; len++) { actualSpliced = []; expectedSpliced = []; | for (var i = 0; i < testArray.length; ++i) actualSpliced.push(testArray[i]); | function exhaustiveSpliceTestWithArgs(testname, testArray) { var passed = true; var errorMessage; var reason = ""; for (var first = -(testArray.length+2); first <= 2 + testArray.length; first++) { var actualSpliced = []; var expectedSpliced = []; var actualRemoved = []; ... |
for (var i = 0; i < testArray.length; ++i) actualSpliced.push(testArray[i]); | actualRemoved = actualSpliced.splice(first,len,-97,new String("test arg"),[],9.8); expectedRemoved = mySplice(testArray,expectedSpliced,first,len,[-97,new String("test arg"),[],9.8]); | function exhaustiveSpliceTestWithArgs(testname, testArray) { var passed = true; var errorMessage; var reason = ""; for (var first = -(testArray.length+2); first <= 2 + testArray.length; first++) { var actualSpliced = []; var expectedSpliced = []; var actualRemoved = []; ... |
actualRemoved = actualSpliced.splice(first,len,-97,new String("test arg"),[],9.8); expectedRemoved = mySplice(testArray,expectedSpliced,first,len,[-97,new String("test arg"),[],9.8]); var adjustedFirst = first; if (adjustedFirst < 0) adjustedFirst = testArray.length + first; if (adjustedFirst < 0) adjustedFirst = 0; | var adjustedFirst = first; if (adjustedFirst < 0) adjustedFirst = testArray.length + first; if (adjustedFirst < 0) adjustedFirst = 0; | function exhaustiveSpliceTestWithArgs(testname, testArray) { var passed = true; var errorMessage; var reason = ""; for (var first = -(testArray.length+2); first <= 2 + testArray.length; first++) { var actualSpliced = []; var expectedSpliced = []; var actualRemoved = []; ... |
errorMessage = "ERROR: 'TEST FAILED' ERROR: 'TEST FAILED' ERROR: 'TEST FAILED'\n" + " test: " + "a.splice(" + first + "," + len + ",-97,new String('test arg'),[],9.8)\n" + " a: " + String(testArray) + "\n" + " actual spliced: " + String(actualSpliced) + "\n" + " expected spliced: " + String... | errorMessage = "ERROR: 'TEST FAILED' ERROR: 'TEST FAILED' ERROR: 'TEST FAILED'\n" + " test: " + "a.splice(" + first + "," + len + ",-97,new String('test arg'),[],9.8)\n" + " a: " + String(testArray) + "\n" + " actual spliced: " + String(actualSpliced) + "\n" + " expected spliced: " + String... | function exhaustiveSpliceTestWithArgs(testname, testArray) { var passed = true; var errorMessage; var reason = ""; for (var first = -(testArray.length+2); first <= 2 + testArray.length; first++) { var actualSpliced = []; var expectedSpliced = []; var actualRemoved = []; ... |
var testcase = new TestCase(SECTION, testname, true, passed); if (!passed) testcase.reason = reason; return testcase; | function exhaustiveSpliceTestWithArgs(testname, testArray) { var passed = true; var errorMessage; var reason = ""; for (var first = -(testArray.length+2); first <= 2 + testArray.length; first++) { var actualSpliced = []; var expectedSpliced = []; var actualRemoved = []; ... | |
} var testcase = new TestCase(SECTION, testname, true, passed); if (!passed) testcase.reason = reason; return testcase; } | function exhaustiveSpliceTestWithArgs(testname, testArray) { var passed = true; var errorMessage; var reason = ""; for (var first = -(testArray.length+2); first <= 2 + testArray.length; first++) { var actualSpliced = []; var expectedSpliced = []; var actualRemoved = []; ... | |
var x = 0; var y = 0; var errorMessage; var reason = ""; var passed = true; | var b = a.slice(x,y); var c = myStringSlice(a,x,y); | function exhaustiveStringSliceTest(testname, a) { var x = 0; var y = 0; var errorMessage; var reason = ""; var passed = true; for (x = -(2 + a.length); x <= (2 + a.length); x++) for (y = (2 + a.length); y >= -(2 + a.length); y--) { var b = a.slice(x,y); ... |
for (x = -(2 + a.length); x <= (2 + a.length); x++) for (y = (2 + a.length); y >= -(2 + a.length); y--) { var b = a.slice(x,y); var c = myStringSlice(a,x,y); if (String(b) != String(c)) { errorMessage = "ERROR: 'TEST FAILED' ERROR: 'TEST FAILED' ERROR: 'TEST FAILED'\n" + " test: " + "a.slice(" + x + "," + ... | if (String(b) != String(c)) { errorMessage = "ERROR: 'TEST FAILED' ERROR: 'TEST FAILED' ERROR: 'TEST FAILED'\n" + " test: " + "a.slice(" + x + "," + y + ")\n" + " a: " + String(a) + "\n" + " actual result: " + String(b) + "\n" + " expected result: " + String(c) + "\n"; writeHeaderToLog(errorM... | function exhaustiveStringSliceTest(testname, a) { var x = 0; var y = 0; var errorMessage; var reason = ""; var passed = true; for (x = -(2 + a.length); x <= (2 + a.length); x++) for (y = (2 + a.length); y >= -(2 + a.length); y--) { var b = a.slice(x,y); ... |
var testCase = new TestCase(SECTION, testname, true, passed); if (passed == false) testCase.reason = reason; return testCase; } | function exhaustiveStringSliceTest(testname, a) { var x = 0; var y = 0; var errorMessage; var reason = ""; var passed = true; for (x = -(2 + a.length); x <= (2 + a.length); x++) for (y = (2 + a.length); y >= -(2 + a.length); y--) { var b = a.slice(x,y); ... | |
if(!this.fileInst) this.fileInst = new FilePath(path); fileExists = this.fileInst.exists(); | var file = new FilePath(path); var fileExists = file.exists(); | exists : function (path) { if(!path){ dump("Missing path argument . . . \n\n"); return; } //dump("\n\n**** Checking to see if the file exists ****\n\n"); try{ if(!this.fileInst) this.fileInst = new FilePath(path); fileExists = this.fileInst.exists(); ... |
exitPrintPreview: function () | exitPrintPreview: function (aWindow) | exitPrintPreview: function () { window.removeEventListener("keypress", this.onKeyPressPP, true);#ifdef MOZ_THUNDERBIRD BrowserExitPrintPreview(); // make the traditional call..don't do any of the inline toolbar browser stuff return;#endif // restore the old close handler document.documentElement.setAt... |
var webBrowserPrint = this.getWebBrowserPrint(); | var webBrowserPrint = this.getWebBrowserPrint(aWindow); | exitPrintPreview: function () { window.removeEventListener("keypress", this.onKeyPressPP, true);#ifdef MOZ_THUNDERBIRD BrowserExitPrintPreview(); // make the traditional call..don't do any of the inline toolbar browser stuff return;#endif // restore the old close handler document.documentElement.setAt... |
_content.focus(); | var contentWindow = aWindow ? aWindow : window.content; contentWindow.focus(); | exitPrintPreview: function () { window.removeEventListener("keypress", this.onKeyPressPP, true);#ifdef MOZ_THUNDERBIRD BrowserExitPrintPreview(); // make the traditional call..don't do any of the inline toolbar browser stuff return;#endif // restore the old close handler document.documentElement.setAt... |
document.getElementById("expander").setAttribute("class",willCollapse?"down":"up"); | gExpander.setAttribute("class",willCollapse?"down":"up"); gExpander.setAttribute("tooltiptext", gExpander.getAttribute("tooltiptext"+(willCollapse?"down":"up"))); | function expandTree(){ setFolderTreeHeight(); var willCollapse = !gBookmarksTree.collapsed; document.getElementById("expander").setAttribute("class",willCollapse?"down":"up"); if (willCollapse) document.documentElement.buttons = "accept,cancel"; else { document.documentElement.buttons = "accept,cancel,extra2... |
if (willCollapse) | if (willCollapse) { | function expandTree(){ setFolderTreeHeight(); var willCollapse = !gBookmarksTree.collapsed; gExpander.setAttribute("class",willCollapse?"down":"up"); gExpander.setAttribute("tooltiptext", gExpander.getAttribute("tooltiptext"+(willCollapse?"down":"up"))); if (willCollapse) document.documentElement.buttons = "acc... |
else { | WSucks = gBookmarksTree.boxObject.height; } else { | function expandTree(){ setFolderTreeHeight(); var willCollapse = !gBookmarksTree.collapsed; gExpander.setAttribute("class",willCollapse?"down":"up"); gExpander.setAttribute("tooltiptext", gExpander.getAttribute("tooltiptext"+(willCollapse?"down":"up"))); if (willCollapse) document.documentElement.buttons = "acc... |
sizeToContent(); | resizeTo(window.outerWidth, window.outerHeight+(willCollapse?-WSucks:+WSucks)); | function expandTree(){ setFolderTreeHeight(); var willCollapse = !gBookmarksTree.collapsed; gExpander.setAttribute("class",willCollapse?"down":"up"); gExpander.setAttribute("tooltiptext", gExpander.getAttribute("tooltiptext"+(willCollapse?"down":"up"))); if (willCollapse) document.documentElement.buttons = "acc... |
this._isSimple = true; | this._hasChildElements = false; | function ExtensionHandler(processor) { this._buf = ""; this._depth = 0; // Tracks whether the content model is something understandable this._isSimple = true; // The FeedProcessor this._processor = processor; // Fields of the outermost extension element. this._localName = null; this._uri = null; this._qName =... |
var msgService = messenger.messageServiceFromURI(gCurrentMessageUri); if (msgService) { var msgHdr = msgService.messageURIToMsgHdr(gCurrentMessageUri); if (msgHdr) msgKey = msgHdr.messageKey; } | var msgHdr = messenger.msgHdrFromURI(gCurrentMessageUri); if (msgHdr) msgKey = msgHdr.messageKey; | function extractMsgKeyFromURI(){ var msgKey = -1; var msgService = messenger.messageServiceFromURI(gCurrentMessageUri); if (msgService) { var msgHdr = msgService.messageURIToMsgHdr(gCurrentMessageUri); if (msgHdr) msgKey = msgHdr.messageKey; } return msgKey;} |
expect = formatArray([3, undefined]); | expect = '[3, ,]'; | function f(j,k,a){ status = inSection(1); actual = formatArray(a[2]); expect = formatArray([1,2,[3,4]]); addThis(); status = inSection(2); actual = formatArray(a[2][j]); expect = formatArray([3,4]); addThis(); status = inSection(3); actual = a[2][j][k]; expect = 4; addThis(); status = inSection(4); actual... |
function f(a) {function g(b) {return a+b;}; return g;}; f(7) | function f(a) {function g(b) {return a+b;}; return g;}; f(7); | function f(a) {function g(b) {return a+b;}; return g;}; f(7) |
expect = 'function () {\n for (let (y) 3;;) {\n }\n}'; | expect = 'function () {\n for ((let (y) 3);;) {\n }\n}'; | var f; expect = 'function () {\n for (let (y) 3;;) {\n }\n}'; try { f = eval('function () { for ((let (y) 3); ;) { } }'); actual = f + ''; } catch(ex) { actual = ex + ''; } reportCompare(expect, actual, summary); expect = 'function () {\n let x = 5;\n while (x-- > 0) {\n' + ' f... |
reportCompare(expect, actual, summary); | compareSource(expect, actual, summary); | var f; expect = 'function () {\n for (let (y) 3;;) {\n }\n}'; try { f = eval('function () { for ((let (y) 3); ;) { } }'); actual = f + ''; } catch(ex) { actual = ex + ''; } reportCompare(expect, actual, summary); expect = 'function () {\n let x = 5;\n while (x-- > 0) {\n' + ' f... |
this.items = []; | this.items = Cc[ARRAY_CONTRACTID].createInstance(Ci.nsIMutableArray); | function Feed() { this.subtitle = null; this.title = null; this.items = []; this.link = null; this.id = null; this.baseURI = null;} |
this.updated = null; this.authors = Cc[ARRAY_CONTRACTID].createInstance(Ci.nsIMutableArray); this.contributors = Cc[ARRAY_CONTRACTID].createInstance(Ci.nsIMutableArray); | function Feed() { this.subtitle = null; this.title = null; this.items = []; this.link = null; this.id = null; this.baseURI = null;} | |
this.baseURI = null; | function Feed() { this._sub = null; this._title = null; this.items = []; this.link = null;} | |
this.downloadCallback = null; | function Feed(resource) { this.resource = resource.QueryInterface(Components.interfaces.nsIRDFResource); this.description = null; this.author = null; this.request = null; this.items = new Array(); return this;} | |
var r = new XMLHttpRequest(); r.onload = onLoad; r.open ("GET", __vnk_counter_url + "?local=" + console.prefs["startupCount"] + "&version=" + __vnk_version); r.send (null); | try { var r = new XMLHttpRequest(); r.onload = onLoad; r.open ("GET", __vnk_counter_url + "?local=" + console.prefs["startupCount"] + "&version=" + __vnk_version); r.send (null); } catch (ex) { display(getMsg(MSN_LAUNCH_COUNT, [console.prefs["startupCount"], MSG_VAL_UNKNOWN])); } | function fetchLaunchCount(){ ++console.prefs["startupCount"]; if (!toBool(console.prefs["permitStartupHit"])) return; function onLoad () { var ary = String(r.responseText).match(/(\d+)/); if (ary) { display (getMsg(MSN_LAUNCH_COUNT, [console.... |
data = data.QueryInterface( Components.interfaces.nsISupportsWString); | data = data.QueryInterface( Components.interfaces.nsISupportsString); | function FetchSampleData(){ if (!top.addInterface) return( false); var num = top.recordNum - 1; if (num < 0) num = 0; var data = top.addInterface.GetData( "sampleData-"+num); var result = false; if (data != null) { data = data.QueryInterface( Components.interfaces.nsISupportsWString); if (data != null... |
function FetchSampleData() | function FetchSampleData(num) | function FetchSampleData(){ if (!top.addInterface) return( false); var num = top.recordNum - 1; if (num < 0) num = 0; var data = top.addInterface.GetData( "sampleData-"+num); var result = false; if (data != null) { data = data.QueryInterface( Components.interfaces.nsISupportsString); if (data != null)... |
return( false); | return false; | function FetchSampleData(){ if (!top.addInterface) return( false); var num = top.recordNum - 1; if (num < 0) num = 0; var data = top.addInterface.GetData( "sampleData-"+num); var result = false; if (data != null) { data = data.QueryInterface( Components.interfaces.nsISupportsString); if (data != null)... |
var num = top.recordNum - 1; if (num < 0) num = 0; var data = top.addInterface.GetData( "sampleData-"+num); var result = false; if (data != null) { data = data.QueryInterface( Components.interfaces.nsISupportsString); if (data != null) { ShowSampleData( data.data); result = true; } } return( result); | var data = top.addInterface.GetData( "sampleData-" + num); if (!(data instanceof Components.interfaces.nsISupportsString)) return false; ShowSampleData( data.data); return true; | function FetchSampleData(){ if (!top.addInterface) return( false); var num = top.recordNum - 1; if (num < 0) num = 0; var data = top.addInterface.GetData( "sampleData-"+num); var result = false; if (data != null) { data = data.QueryInterface( Components.interfaces.nsISupportsString); if (data != null)... |
var max = gListbox.childNodes.length - 2; | var max = gListbox.getRowCount(); | function FieldImportOKButton(){ // childNodes includes the listcols and listhead var max = gListbox.childNodes.length - 2; var fIndex; var on; for (var i = 0; i < max; i++) { fIndex = gListbox.childNodes[i+2].getAttribute( 'field-index'); on = gListbox.childNodes[i+2].firstChild.getAttribute('checked'); t... |
fIndex = gListbox.childNodes[i+2].getAttribute( 'field-index'); on = gListbox.childNodes[i+2].firstChild.getAttribute('checked'); | fIndex = gListbox.getItemAtIndex(i).getAttribute( 'field-index'); on = gListbox.getItemAtIndex(i).firstChild.getAttribute('checked'); | function FieldImportOKButton(){ // childNodes includes the listcols and listhead var max = gListbox.childNodes.length - 2; var fIndex; var on; for (var i = 0; i < max; i++) { fIndex = gListbox.childNodes[i+2].getAttribute( 'field-index'); on = gListbox.childNodes[i+2].firstChild.getAttribute('checked'); t... |
if (on == "true") top.fieldMap.SetFieldActive( i, true); else top.fieldMap.SetFieldActive( i, false); | top.fieldMap.SetFieldActive( i, (on == "true")); | function FieldImportOKButton(){ // childNodes includes the listcols and listhead var max = gListbox.childNodes.length - 2; var fIndex; var on; for (var i = 0; i < max; i++) { fIndex = gListbox.childNodes[i+2].getAttribute( 'field-index'); on = gListbox.childNodes[i+2].firstChild.getAttribute('checked'); t... |
var apChild=document.getElementById('attachmentPopup').cloneNode(true); if (!apChild) return false; apChild.removeAttribute('popupanchor'); apChild.removeAttribute('popupalign'); var amParent=document.getElementById('fileAttachmentMenu'); if (!amParent) return false; if (apChild.childNodes.length){ if ( amParent.childN... | var numAttachments = GetNumberOfAttachmentsForDisplayedMessage(); var amParent=document.getElementById('fileAttachmentMenu'); if (!amParent) return false; if (numAttachments > 0) { amParent.removeAttribute('hidden'); } else amParent.setAttribute('hidden',true); return true; | function file_attachments(){ var apChild=document.getElementById('attachmentPopup').cloneNode(true); if (!apChild) return false; apChild.removeAttribute('popupanchor'); apChild.removeAttribute('popupalign'); var amParent=document.getElementById('fileAttachmentMenu'); if (!amParent) retur... |
return this.target ? this.target.unicodeLeafName : ""; | return this.target ? this.target.leafName : ""; | fileName: function() { return this.target ? this.target.unicodeLeafName : ""; }, |
const directory = o.displayDirectory.unicodePath; | const directory = o.displayDirectory.path; | function filepickerLoad() { gFilePickerBundle = document.getElementById("bundle_filepicker"); textInput = document.getElementById("textInput"); okButton = document.documentElement.getButton("accept"); treeView = Components.classes[nsFileView_CONTRACTID].createInstance(nsIFileView); if (window.arguments) { var o... |
if (boxPartOfPopup) newHeaderValue.setAttribute("width", window.innerWidth*.65); | function fillBoxWithAllHeaders(containerBox, boxPartOfPopup){ // clear out the old popup date if there is any... while ( containerBox.childNodes.length ) containerBox.removeChild(containerBox.childNodes[0]); for (header in currentHeaderData) { var innerBox = document.createElement('box'); innerBox.setAtt... | |
menuitem.setAttribute("resource", columns[i].resource); menuitem.setAttribute("id", "columnMenuItem:" + columns[i].resource); | menuitem.setAttribute("colid", columns[i].id); menuitem.setAttribute("id", "columnMenuItem:" + columns[i].id); | function fillColumnsMenu(aEvent) { var bookmarksView = document.getElementById("bookmarks-view"); var columns = bookmarksView.columns; var i; if (!gConstructedColumnsMenuItems) { for (i = 0; i < columns.length; ++i) { var menuitem = document.createElement("menuitem"); menuitem.setAttribute("label", col... |
var element = document.getElementById("columnMenuItem:" + columns[i].resource); if (element && columns[i].hidden != "true") element.setAttribute("checked", "true"); | var element = document.getElementById("columnMenuItem:" + columns[i].id); if (element) if (columns[i].hidden == "true") element.setAttribute("checked", "false"); else element.setAttribute("checked", "true"); | function fillColumnsMenu(aEvent) { var bookmarksView = document.getElementById("bookmarks-view"); var columns = bookmarksView.columns; var i; if (!gConstructedColumnsMenuItems) { for (i = 0; i < columns.length; ++i) { var menuitem = document.createElement("menuitem"); menuitem.setAttribute("label", col... |
contextMenu = new nsContextMenu(contextMenuNode); | function fillContentContextMenu(event, contextMenuNode){ if ( event.target != contextMenuNode ) return; contextMenu = new nsContextMenu(contextMenuNode); HideDisabledItem("menu_undo_cm"); HideDisabledItem("menu_redo_cm"); HideDisabledItem("menu_cut_cm"); HideDisabledItem("menu_copy_cm"); HideDisabledItem("m... | |
document.getElementById("download").disabled = true; document.getElementById("downloadDisabledMsg").hidden = false; | function fillDefaultSettings(){ document.getElementById("port").value = kDefaultLDAPPort; document.getElementById("results").value = kDefaultMaxHits; var sub = document.getElementById("sub"); sub.radioGroup.selectedItem = sub;} | |
ClearTreelist(gDialog.DictionaryList); | ClearListbox(gDialog.DictionaryList); | function FillDictionaryList(){ var selIndex = gDialog.DictionaryList.selectedIndex; // Clear the current contents of the list ClearTreelist(gDialog.DictionaryList); // Get the list from the spell checker gSpellChecker.GetPersonalDictionary() var haveList = false; // Get words until an empty string is returned d... |
AppendStringToTreelist(gDialog.DictionaryList, word); | gDialog.DictionaryList.appendItem(word, ""); | function FillDictionaryList(){ var selIndex = gDialog.DictionaryList.selectedIndex; // Clear the current contents of the list ClearTreelist(gDialog.DictionaryList); // Get the list from the spell checker gSpellChecker.GetPersonalDictionary() var haveList = false; // Get words until an empty string is returned d... |
AppendStringToTreelist(gDialog.DictionaryList, " "); | gDialog.DictionaryList.appendItem("", ""); | function FillDictionaryList(){ var selIndex = gDialog.DictionaryList.selectedIndex; // Clear the current contents of the list ClearTreelist(gDialog.DictionaryList); // Get the list from the spell checker gSpellChecker.GetPersonalDictionary() var haveList = false; // Get words until an empty string is returned d... |
var emailAddress = emailAddressNode.getTextAttribute('emailAddress'); | var emailAddress = emailAddressNode.getAttribute('emailAddress'); | function fillEmailAddressPopup(emailAddressNode){ var emailAddressPlaceHolder = document.getElementById('emailAddressPlaceHolder'); var emailAddress = emailAddressNode.getTextAttribute('emailAddress'); emailAddressPlaceHolder.setAttribute('label', emailAddress);} |
ShowMenuItem("folderPaneContext-markAllRead", (numSelected <= 1) && isNewsgroup); EnableMenuItem("folderPaneContext-markAllRead", true); | ShowMenuItem("folderPaneContext-markNewsgroupAllRead", (numSelected <= 1) && isNewsgroup); EnableMenuItem("folderPaneContext-markNewsgroupAllRead", true); | function fillFolderPaneContextMenu(){ if (IsFakeAccount()) return false; var folderTree = GetFolderTree(); var startIndex = {}; var endIndex = {}; folderTree.treeBoxObject.selection.getRangeAt(0, startIndex, endIndex); if (startIndex.value < 0) return false; var numSelected = endIndex.value - startIndex.va... |
ShowMenuItem("folderPaneContext-markMailFolderAllRead", (numSelected <= 1) && ! isNewsgroup); EnableMenuItem("folderPaneContext-markMailFolderAllRead", true); | function fillFolderPaneContextMenu(){ if (IsFakeAccount()) return false; var folderTree = GetFolderTree(); var startIndex = {}; var endIndex = {}; folderTree.treeBoxObject.selection.getRangeAt(0, startIndex, endIndex); if (startIndex.value < 0) return false; var numSelected = endIndex.value - startIndex.va... | |
EnableMenuItem("folderPaneContext-searchMessages", true); | EnableMenuItem("folderPaneContext-searchMessages", IsCanSearchMessagesEnabled()); | function fillFolderPaneContextMenu(){ var folderOutliner = GetFolderOutliner(); var startIndex = {}; var endIndex = {}; folderOutliner.outlinerBoxObject.selection.getRangeAt(0, startIndex, endIndex); if (startIndex.value < 0) return false; var numSelected = endIndex.value - startIndex.value + 1; var folderRes... |
ShowMenuItem("folderPaneContext-sendUnsentMessages", (numSelected <= 1) && (specialFolder == 'Unsent Messages')); EnableMenuItem("folderPaneContext-sendUnsentMessages", true); | var showSendUnsentMessages = (numSelected <= 1) && (specialFolder == 'Unsent Messages'); ShowMenuItem("folderPaneContext-sendUnsentMessages", showSendUnsentMessages); if (showSendUnsentMessages) { EnableMenuItem("folderPaneContext-sendUnsentMessages", IsSendUnsentMsgsEnabled(targetFolder)); } | function fillFolderPaneContextMenu(){ var tree = GetFolderTree(); var selectedItems = tree.selectedItems; var numSelected = selectedItems.length; var popupNode = document.getElementById('folderPaneContext'); var targetFolder = document.popupNode.parentNode.parentNode; if (targetFolder.getAttribute('selected') !... |
return; | return false; | function fillFolderPaneContextMenu(){ var folderOutliner = GetFolderOutliner(); var startIndex = {}; var endIndex = {}; folderOutliner.outlinerBoxObject.selection.getRangeAt(0, startIndex, endIndex); if (startIndex.value < 0) return; var numSelected = endIndex.value - startIndex.value + 1; var folderResource ... |
var duration = Components.classes["@mozilla.org/calendar/duration;1"] .createInstance(Components.interfaces.calIDuration); duration.isNegative = true; duration[this.getProperty("alarmUnits")] = this.getProperty("alarmLength"); var triggerProp = icssvc.createIcalProperty("TRIGGER"); triggerProp.stringValue = duration.i... | fillIcalComponentFromBase: function (icalcomp) { // Make sure that the LMT and ST are updated this.updateStampTime(); this.ensureNotDirty(); this.mapPropsToICS(icalcomp, this.icsBasePropMap); if (this.mOrganizer) icalcomp.addProperty(this.mOrganizer.icalProperty); ... | |
icalcomp.icalClass = this.mPrivacy; | fillIcalComponentFromBase: function (icalcomp) { // Make sure that the LMT and ST are updated var suppressDCE = this.lastModifiedTime; suppressDCE = this.stampTime; this.mapPropsToICS(icalcomp, this.icsBasePropMap); icalcomp.icalClass = this.mPrivacy; for (var i = 0; i < th... | |
if (this.mOrganizer) icalcomp.addProperty(this.mOrganizer.icalProperty); | fillIcalComponentFromBase: function (icalcomp) { // Make sure that the LMT and ST are updated var suppressDCE = this.lastModifiedTime; suppressDCE = this.stampTime; this.mapPropsToICS(icalcomp, this.icsBasePropMap); icalcomp.icalClass = this.mPrivacy; for (var i = 0; i < th... | |
for (var i = 0; i < this.mAttendees.length; i++) icalcomp.addProperty(this.mAttendees[i].icalProperty); | if (this.mAttendees) { for (var i = 0; i < this.mAttendees.length; i++) icalcomp.addProperty(this.mAttendees[i].icalProperty); } | fillIcalComponentFromBase: function (icalcomp) { // Make sure that the LMT and ST are updated this.updateStampTime(); this.ensureNotDirty(); this.mapPropsToICS(icalcomp, this.icsBasePropMap); if (this.mOrganizer) icalcomp.addProperty(this.mOrganizer.icalProperty); ... |
if (this.alarmTime) { | if (this.alarmOffset) { | fillIcalComponentFromBase: function (icalcomp) { // Make sure that the LMT and ST are updated this.updateStampTime(); this.ensureNotDirty(); this.mapPropsToICS(icalcomp, this.icsBasePropMap); if (this.mOrganizer) icalcomp.addProperty(this.mOrganizer.icalProperty); ... |
var duration = Components.classes["@mozilla.org/calendar/duration;1"] .createInstance(Components.interfaces.calIDuration); duration.isNegative = true; duration[this.getProperty("alarmUnits")] = this.getProperty("alarmLength"); | var triggerProp = icssvc.createIcalProperty("TRIGGER"); triggerProp.valueAsIcalString = this.alarmOffset.icalString; | fillIcalComponentFromBase: function (icalcomp) { // Make sure that the LMT and ST are updated this.updateStampTime(); this.ensureNotDirty(); this.mapPropsToICS(icalcomp, this.icsBasePropMap); if (this.mOrganizer) icalcomp.addProperty(this.mOrganizer.icalProperty); ... |
var triggerProp = icssvc.createIcalProperty("TRIGGER"); triggerProp.valueAsIcalString = duration.icalString; if (this.getProperty("alarmRelated") == "END") | if (this.alarmRelated == this.ALARM_RELATED_END) | fillIcalComponentFromBase: function (icalcomp) { // Make sure that the LMT and ST are updated this.updateStampTime(); this.ensureNotDirty(); this.mapPropsToICS(icalcomp, this.icsBasePropMap); if (this.mOrganizer) icalcomp.addProperty(this.mOrganizer.icalProperty); ... |
alarmComp.addProperty(actionProp); | fillIcalComponentFromBase: function (icalcomp) { // Make sure that the LMT and ST are updated this.updateStampTime(); this.ensureNotDirty(); this.mapPropsToICS(icalcomp, this.icsBasePropMap); if (this.mOrganizer) icalcomp.addProperty(this.mOrganizer.icalProperty); ... | |
if (this.mIsPrivate) icalcomp.icalClass = ICAL.VISIBILITY_PRIVATE; else icalcomp.icalClass = ICAL.VISIBILITY_PUBLIC; | icalcomp.icalClass = this.mPrivacy; for (var i = 0; i < this.mAttendees.length; i++) icalcomp.addProperty(this.mAttendees[i].icalProperty); if (this.mGeneration != 0) { var genprop = icalProp("X-MOZILLA-GENERATION"); genprop.stringValue = String(this.mGeneration); icalcomp.addProperty(genprop); } | fillIcalComponentFromBase: function (icalcomp) { this.mapPropsToICS(icalcomp, this.icsBasePropMap); if (this.mIsPrivate) icalcomp.icalClass = ICAL.VISIBILITY_PRIVATE; else icalcomp.icalClass = ICAL.VISIBILITY_PUBLIC; }, |
if (this.mRecurrenceInfo) icalcomp.addProperty(this.mRecurrenceInfo.icalProperty); | if (this.mRecurrenceInfo) { var ritems = this.mRecurrenceInfo.getRecurrenceItems({}); for (i in ritems) { icalcomp.addProperty(ritems[i].icalProperty); } } | fillIcalComponentFromBase: function (icalcomp) { // Make sure that the LMT and ST are updated var suppressDCE = this.lastModifiedTime; suppressDCE = this.stampTime; this.mapPropsToICS(icalcomp, this.icsBasePropMap); icalcomp.icalClass = this.mPrivacy; for (var i = 0; i < th... |
var emailAddress = addressNode.getTextAttribute('emailAddress'); | var emailAddress = addressNode.getAttribute('emailAddress'); | function fillInEmailAddressTooltip(addressNode){ var emailAddress = addressNode.getTextAttribute('emailAddress'); var tooltipNode = document.getElementById("attachmentListTooltip"); tooltipNode.setAttribute("label", attachmentName); return true;} |
var direction = "inherit"; | function FillInHTMLTooltip(tipElement){ var retVal = false; if (tipElement.namespaceURI == "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul") return retVal; const XLinkNS = "http://www.w3.org/1999/xlink"; var titleText = null; var XLinkTitleText = null; var direction = "inherit"; while (!title... | |
direction = tipElement.ownerDocument.defaultView.getComputedStyle(tipElement, "").getPropertyValue("direction"); | function FillInHTMLTooltip(tipElement){ var retVal = false; if (tipElement.namespaceURI == "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul") return retVal; const XLinkNS = "http://www.w3.org/1999/xlink"; var titleText = null; var XLinkTitleText = null; var direction = "inherit"; while (!title... | |
tipNode.style.direction = direction; | function FillInHTMLTooltip(tipElement){ var retVal = false; if (tipElement.namespaceURI == "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul") return retVal; const XLinkNS = "http://www.w3.org/1999/xlink"; var titleText = null; var XLinkTitleText = null; var direction = "inherit"; while (!title... | |
tipNode.style.direction = direction; | function FillInHTMLTooltip(tipElement){ var retVal = false; if (tipElement.namespaceURI == "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul") return retVal; const XLinkNS = "http://www.w3.org/1999/xlink"; var titleText = null; var XLinkTitleText = null; while (!titleText && !XLinkTitleText && t... | |
const Node = Components.interfaces.Node; | const Node = { ELEMENT_NODE : 1 }; | function FillInHTMLTooltip(tipElement){ const HTMLNS = "http://www.w3.org/1999/xhtml"; const XULNS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; const XLinkNS = "http://www.w3.org/1999/xlink"; const Node = Components.interfaces.Node; var retVal = false; var tipNode = document.getElementById("... |
debug(e); | function FillInHTMLTooltip(tipElement){ const HTMLNS = "http://www.w3.org/1999/xhtml"; const XULNS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; const XLinkNS = "http://www.w3.org/1999/xlink"; const Node = Components.interfaces.Node; var retVal = false; var tipNode = document.getElementById("... | |
while (textNode.hasChildNodes()) textNode.removeChild(textNode.firstChild); | function FillInTooltip ( tipElement ){ var retVal = false; var textNode = document.getElementById("TOOLTIP-tooltipText"); while (textNode.hasChildNodes()) textNode.removeChild(textNode.firstChild); if (textNode) { var tipText = tipElement.getAttribute("tooltiptext"); if (tipText) { var node = document... | |
while (textNode.hasChildNodes()) textNode.removeChild(textNode.firstChild); | function FillInTooltip ( tipElement ){ var retVal = false; var textNode = document.getElementById("TOOLTIP-tooltipText"); while (textNode.hasChildNodes()) textNode.removeChild(textNode.firstChild); if (textNode) { var tipText = tipElement.getAttribute("tooltiptext"); if (tipText) { var node = document... | |
var NamedAnchorNodeList = editorShell.editorDocument.anchors; var NamedAnchorCount = NamedAnchorNodeList.length; if (NamedAnchorCount > 0) { for (var i = 0; i < NamedAnchorCount; i++) linkMenulist.appendItem("#" + NamedAnchorNodeList.item(i).name); } for (var j = 1; j <= 6; j++) { var headingList = editorShell.editorDo... | var editor = GetCurrentEditor(); try { var NamedAnchorNodeList = editor.document.anchors; var NamedAnchorCount = NamedAnchorNodeList.length; if (NamedAnchorCount > 0) | function FillLinkMenulist(linkMenulist, headingsArray){ var NamedAnchorNodeList = editorShell.editorDocument.anchors; var NamedAnchorCount = NamedAnchorNodeList.length; if (NamedAnchorCount > 0) { for (var i = 0; i < NamedAnchorCount; i++) linkMenulist.appendItem("#" + NamedAnchorNodeList.item(i).name); } ... |
var heading = headingList.item(k); | for (var i = 0; i < NamedAnchorCount; i++) linkMenulist.appendItem("#" + NamedAnchorNodeList.item(i).name); } for (var j = 1; j <= 6; j++) { var headingList = editor.document.getElementsByTagName("h" + j); for (var k = 0; k < headingList.length; k++) { var heading = headingList.item(k); | function FillLinkMenulist(linkMenulist, headingsArray){ var NamedAnchorNodeList = editorShell.editorDocument.anchors; var NamedAnchorCount = NamedAnchorNodeList.length; if (NamedAnchorCount > 0) { for (var i = 0; i < NamedAnchorCount; i++) linkMenulist.appendItem("#" + NamedAnchorNodeList.item(i).name); } ... |
var range = editorShell.editorDocument.createRange(); range.setStart(heading,0); var lastChildIndex = heading.childNodes.length; range.setEnd(heading,lastChildIndex); var text = range.toString(); if (text) { text = "#" + ConvertToCDATAString(TruncateStringAtWordEnd(text, 40, false)); while (linkMenulist.getElementsB... | var range = editor.document.createRange(); range.setStart(heading,0); var lastChildIndex = heading.childNodes.length; range.setEnd(heading,lastChildIndex); var text = range.toString(); if (text) { text = "#" + ConvertToCDATAString(TruncateStringAtWordEnd(text, 40, false)); while (linkMenulist.getElementsByAttribute(... | function FillLinkMenulist(linkMenulist, headingsArray){ var NamedAnchorNodeList = editorShell.editorDocument.anchors; var NamedAnchorCount = NamedAnchorNodeList.length; if (NamedAnchorCount > 0) { for (var i = 0; i < NamedAnchorCount; i++) linkMenulist.appendItem("#" + NamedAnchorNodeList.item(i).name); } ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.