зеркало из https://github.com/mozilla/gecko-dev.git
a5d4bac990
I tried to create automated tests for nsITableEditor::NormalizeTable(). However, this method cannot normalize any broken table element. The method always returns error after calling HTMLEditor::FixBadRowSpan(). The reason is that HTMLEditor::FixBadRowSpan() scans all cells in each row with a for loop, and then, when it fails to find a cell element, it returns error even though this method needs to fix the odd situation. According to the history of editor changes, each important point hasn't been changed since first implementation. So, perhaps, table layout API behavior was changed but no automated tests couldn't detect the regression since we really don't have enough tests for editor. Anyway, this patch makes most part of nsITableEditor::NormalizeTable() with non-virtual method, HTMLEditor::NormalizeTable(). Differential Revision: https://phabricator.services.mozilla.com/D5633 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
composer | ||
libeditor | ||
reftests | ||
spellchecker | ||
txmgr | ||
AsyncSpellCheckTestHelper.jsm | ||
moz.build | ||
nsIDocumentStateListener.idl | ||
nsIEditActionListener.idl | ||
nsIEditor.idl | ||
nsIEditorBlobListener.idl | ||
nsIEditorMailSupport.idl | ||
nsIEditorObserver.idl | ||
nsIEditorSpellCheck.idl | ||
nsIEditorStyleSheets.idl | ||
nsIHTMLAbsPosEditor.idl | ||
nsIHTMLEditor.idl | ||
nsIHTMLInlineTableEditor.idl | ||
nsIHTMLObjectResizer.idl | ||
nsIPlaintextEditor.idl | ||
nsITableEditor.idl | ||
nsIURIRefObject.idl |