# HG changeset patch # User Masayuki Nakano # Date 1476459522 -32400 # Sat Oct 15 00:38:42 2016 +0900 # Node ID 6607a9b04b110e95a70e7e635926de0f3547a705 # Parent 0191c2f3a6e8c0a241bc440cb61a8f15d061bc38 Bug 1309413 part.0 Add automated test to test SetDocumentTitleTransaction::SetDomTitle() r?ehsan For detecting regressions, SetDocumentTitleTransaction::SetDomTitle() should be tested. The transaction is created only when nsIHTMLEditor::setDocumentTitle(). Therefore, it needs to be a chrome mochitest. MozReview-Commit-ID: 4UjAJ8zNPBP diff --git a/editor/libeditor/tests/chrome.ini b/editor/libeditor/tests/chrome.ini --- a/editor/libeditor/tests/chrome.ini +++ b/editor/libeditor/tests/chrome.ini @@ -37,10 +37,11 @@ subsuite = clipboard [test_bug1250010.html] [test_bug1257363.html] [test_composition_event_created_in_chrome.html] [test_contenteditable_text_input_handling.html] [test_dragdrop.html] skip-if = buildapp == 'mulet' [test_htmleditor_keyevent_handling.html] [test_selection_move_commands.xul] +[test_set_document_title_transaction.html] [test_texteditor_keyevent_handling.html] skip-if = (debug && os=='win') || (os == 'linux') # Bug 1116205, leaks on windows debug, fails delete key on linux diff --git a/editor/libeditor/tests/test_set_document_title_transaction.html b/editor/libeditor/tests/test_set_document_title_transaction.html new file mode 100644 --- /dev/null +++ b/editor/libeditor/tests/test_set_document_title_transaction.html @@ -0,0 +1,79 @@ + + + + Test for SetDocumentTitleTransaction + + + + +
+ +
+ +
+
+ + + + +