Bug 1491173 - Remove dumpContentTree, debugDumpContent and debugUnitTests from SeaMonkey Debug and QA UI. r=IanN
authorFrank-Rainer Grahl <frgrahl@gmx.net>
Sat, 27 Oct 2018 23:21:58 +0200
changeset 33599 5ea8d388a319d4956614fd9833e4ac0c7791ca0c
parent 33598 bb81266621e3ebdf81a0b849952ddd4f9dc82320
child 33600 c7094bcea32faad13d115526ddc05991d989bd5e
push id388
push userclokep@gmail.com
push dateMon, 28 Jan 2019 20:54:56 +0000
reviewersIanN
bugs1491173, 1485890
Bug 1491173 - Remove dumpContentTree, debugDumpContent and debugUnitTests from SeaMonkey Debug and QA UI. r=IanN See Bug 1485890 [Remove dumpContentTree, debugDumpContent and debugUnitTests from nsIEditor].
suite/extensions/debugQA/content/debugQAEditorOverlay.js
suite/extensions/debugQA/content/debugQAEditorOverlay.xul
suite/extensions/debugQA/locales/en-US/debugQAEditorOverlay.dtd
--- a/suite/extensions/debugQA/content/debugQAEditorOverlay.js
+++ b/suite/extensions/debugQA/content/debugQAEditorOverlay.js
@@ -21,22 +21,16 @@ function EditorGetHTML()
 {
   try {
     dump("Getting HTML\n");
     var  outputHTML = GetCurrentEditor().outputToString("text/html", kOutputEncodeW3CEntities);
     dump(outputHTML + "\n");
   } catch (e) {}
 }
 
-function EditorDumpContent()
-{
-  dump("==============  Content Tree: ================\n");
-  GetCurrentEditor().dumpContentTree();
-}
-
 function EditorInsertText(textToInsert)
 {
   GetCurrentEditor().insertText(textToInsert);
 }
 
 function EditorTestSelection()
 {
   dump("Testing selection\n");
@@ -210,24 +204,16 @@ function EditorTestTableLayout()
     }
   }
   dump("Counted during scan: Number of rows="+rowCount+" Number of Columns="+maxColCount+"\n");
   rowCount = editor.getTableRowCount(table);
   maxColCount = editor.getTableColumnCount(table);
   dump("From nsITableLayout: Number of rows="+rowCount+" Number of Columns="+maxColCount+"\n****** End of Table Layout Test *****\n\n");
 }
 
-function EditorUnitTests()
-{
-  dump("Running Unit Tests\n");
-  var numTests       = { value:0 };
-  var numTestsFailed = { value:0 };
-  GetCurrentEditor().debugUnitTests(numTests, numTestsFailed);
-}
-
 function EditorTestDocument()
 {
   dump("Getting document\n");
   var theDoc = GetCurrentEditor().document;
   if (theDoc)
   {
     dump("Got the doc\n");
     dump("Document name:" + theDoc.nodeName + "\n");
--- a/suite/extensions/debugQA/content/debugQAEditorOverlay.xul
+++ b/suite/extensions/debugQA/content/debugQAEditorOverlay.xul
@@ -64,22 +64,18 @@
             <menuitem accesskey="&insertIsIndexCmd.accesskey;"
                       command="cmd_isindex" label="&insertIsIndexCmd.label;"/>
           </menupopup>
         </menu>
         <menuitem label="&testSelectionCmd.label;"
                   oncommand="EditorTestSelection()"/>
         <menuitem label="&testTableLayoutCmd.label;"
                   oncommand="EditorTestTableLayout()"/>
-        <menuitem label="&dumpContentCmd.label;"
-                  oncommand="EditorDumpContent()"/>
         <menuitem label="&testDocumentCmd.label;"
                   oncommand="EditorTestDocument()"/>
-        <menuitem label="&runUnitTestsCmd.label;"
-                  oncommand="EditorUnitTests()"/>
         <menuseparator/>
         <menuitem label="&dumpUndoStack.label;"
                   oncommand="DumpUndoStack()"/>
         <menuitem label="&dumpRedoStack.label;"
                   oncommand="DumpRedoStack()"/>
         <menuitem label="&executeJSTransactionViaTxmgr.label;"
                   oncommand="ExecuteJSTransactionViaTxmgr()"/>
         <menuitem label="&executeJSTransactionViaEditor.label;"
--- a/suite/extensions/debugQA/locales/en-US/debugQAEditorOverlay.dtd
+++ b/suite/extensions/debugQA/locales/en-US/debugQAEditorOverlay.dtd
@@ -12,18 +12,16 @@
 <!ENTITY newEditorTestPage.label "Composer with Test Page">
 <!ENTITY textEditorCmd.label "Plaintext Editor">
 <!ENTITY outputTextCmd.label "Output Text">
 <!ENTITY outputHTMLCmd.label "Output HTML">
 <!ENTITY insertTextCmd.label "Insert Text">
 <!ENTITY testSelectionCmd.label "Test Selection">
 <!ENTITY testTableLayoutCmd.label "Test Table Layout">
 <!ENTITY testDocumentCmd.label "Test Document">
-<!ENTITY dumpContentCmd.label "Dump Content Tree">
-<!ENTITY runUnitTestsCmd.label "Run Unit Tests">
 <!ENTITY dumpUndoStack.label "Dump Undo Stack">
 <!ENTITY dumpRedoStack.label "Dump Redo Stack">
 <!ENTITY executeJSTransactionViaTxmgr.label "Execute JS Transaction Via Transaction Manager">
 <!ENTITY executeJSTransactionViaEditor.label "Execute JS Transaction Via Editor">
 <!ENTITY startLogCmd.label "Start Log">
 <!ENTITY stopLogCmd.label "Stop Log">
 <!ENTITY runLogCmd.label "Run Log">
 <!ENTITY setFocusCmd.label "Set Focus">