From d37198f240de9d420bbed06fe49e2c10b324efde Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Sun, 9 Apr 2017 23:10:15 +0000 Subject: [PATCH] TinyMCE: update the tests for version 4.5.6. Remove default plugins tests, it is quite pointless to keep repeating them at this point. See #40305. git-svn-id: https://develop.svn.wordpress.org/trunk@40399 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/qunit/editor/index.html | 39 +- tests/qunit/editor/js/init.js | 6 +- tests/qunit/editor/js/qunit/qunit.js | 5 + tests/qunit/editor/js/tinymce_loader.js | 2 + tests/qunit/editor/plugins/autolink.js | 80 - tests/qunit/editor/plugins/autosave.js | 74 - tests/qunit/editor/plugins/charmap.js | 91 - tests/qunit/editor/plugins/fullpage.js | 125 - tests/qunit/editor/plugins/image.js | 641 ---- tests/qunit/editor/plugins/importcss.js | 350 --- .../editor/plugins/jquery_initialization.js | 40 - tests/qunit/editor/plugins/jquery_plugin.js | 96 - tests/qunit/editor/plugins/legacyoutput.js | 93 - tests/qunit/editor/plugins/link.js | 182 -- tests/qunit/editor/plugins/lists.js | 2608 ----------------- tests/qunit/editor/plugins/media.js | 205 -- tests/qunit/editor/plugins/noneditable.js | 45 - tests/qunit/editor/plugins/paste.js | 796 ----- tests/qunit/editor/plugins/paste_images.js | 188 -- tests/qunit/editor/plugins/paste_smart.js | 88 - tests/qunit/editor/plugins/searchreplace.js | 122 - tests/qunit/editor/plugins/spellchecker.js | 95 - tests/qunit/editor/plugins/table.js | 1738 ----------- tests/qunit/editor/plugins/textpattern.js | 126 - tests/qunit/editor/plugins/wordcount.js | 81 - tests/qunit/editor/tinymce/Editor.js | 31 +- tests/qunit/editor/tinymce/EditorCommands.js | 45 + .../qunit/editor/tinymce/EditorCustomTheme.js | 43 + tests/qunit/editor/tinymce/EditorManager.js | 15 +- tests/qunit/editor/tinymce/EditorUpload.js | 3 +- tests/qunit/editor/tinymce/EnterKey.js | 21 + tests/qunit/editor/tinymce/FocusManager.js | 46 + tests/qunit/editor/tinymce/Formatter_apply.js | 161 +- tests/qunit/editor/tinymce/Formatter_check.js | 5 - .../tinymce/InsertContentForcedRootFalse.js | 47 + .../editor/tinymce/NotificationManager.js | 109 + .../editor/tinymce/SelectionOverrides.js | 32 +- tests/qunit/editor/tinymce/UndoManager.js | 40 +- .../editor/tinymce/caret/CaretContainer.js | 16 + tests/qunit/editor/tinymce/caret/FakeCaret.js | 4 +- .../editor/tinymce/content/LinkTargets.js | 104 + tests/qunit/editor/tinymce/dom/DOMUtils.js | 64 +- tests/qunit/editor/tinymce/dom/Selection.js | 88 +- tests/qunit/editor/tinymce/dom/Serializer.js | 35 +- .../qunit/editor/tinymce/file/ImageScanner.js | 17 +- tests/qunit/editor/tinymce/fmt/FontInfo.js | 75 + tests/qunit/editor/tinymce/fmt/Preview.js | 247 ++ tests/qunit/editor/tinymce/html/DomParser.js | 37 + tests/qunit/editor/tinymce/html/Node.js | 2 +- tests/qunit/editor/tinymce/html/SaxParser.js | 4 + tests/qunit/editor/tinymce/html/Schema.js | 37 +- tests/qunit/editor/tinymce/html/Styles.js | 25 +- tests/qunit/editor/tinymce/options.js | 94 + tests/qunit/editor/tinymce/ui/FilePicker.js | 260 ++ tests/qunit/editor/tinymce/ui/Window.js | 15 +- tests/qunit/editor/tinymce/undo/Diff.js | 17 + .../editor/tinymce/undo/ForcedRootBlock.js | 54 + tests/qunit/editor/tinymce/undo/Fragments.js | 32 + tests/qunit/editor/tinymce/undo/Levels.js | 142 + tests/qunit/editor/tinymce/util/I18n.js | 47 +- .../editor/tinymce/util/Quirks_webkit.js | 19 + 61 files changed, 1950 insertions(+), 7999 deletions(-) delete mode 100644 tests/qunit/editor/plugins/autolink.js delete mode 100644 tests/qunit/editor/plugins/autosave.js delete mode 100644 tests/qunit/editor/plugins/charmap.js delete mode 100644 tests/qunit/editor/plugins/fullpage.js delete mode 100644 tests/qunit/editor/plugins/image.js delete mode 100644 tests/qunit/editor/plugins/importcss.js delete mode 100644 tests/qunit/editor/plugins/jquery_initialization.js delete mode 100644 tests/qunit/editor/plugins/jquery_plugin.js delete mode 100644 tests/qunit/editor/plugins/legacyoutput.js delete mode 100644 tests/qunit/editor/plugins/link.js delete mode 100644 tests/qunit/editor/plugins/lists.js delete mode 100644 tests/qunit/editor/plugins/media.js delete mode 100644 tests/qunit/editor/plugins/noneditable.js delete mode 100644 tests/qunit/editor/plugins/paste.js delete mode 100644 tests/qunit/editor/plugins/paste_images.js delete mode 100644 tests/qunit/editor/plugins/paste_smart.js delete mode 100644 tests/qunit/editor/plugins/searchreplace.js delete mode 100644 tests/qunit/editor/plugins/spellchecker.js delete mode 100644 tests/qunit/editor/plugins/table.js delete mode 100644 tests/qunit/editor/plugins/textpattern.js delete mode 100644 tests/qunit/editor/plugins/wordcount.js create mode 100644 tests/qunit/editor/tinymce/EditorCustomTheme.js create mode 100644 tests/qunit/editor/tinymce/FocusManager.js create mode 100644 tests/qunit/editor/tinymce/InsertContentForcedRootFalse.js create mode 100644 tests/qunit/editor/tinymce/NotificationManager.js create mode 100644 tests/qunit/editor/tinymce/content/LinkTargets.js create mode 100644 tests/qunit/editor/tinymce/fmt/FontInfo.js create mode 100644 tests/qunit/editor/tinymce/fmt/Preview.js create mode 100644 tests/qunit/editor/tinymce/options.js create mode 100644 tests/qunit/editor/tinymce/ui/FilePicker.js create mode 100644 tests/qunit/editor/tinymce/undo/Diff.js create mode 100644 tests/qunit/editor/tinymce/undo/ForcedRootBlock.js create mode 100644 tests/qunit/editor/tinymce/undo/Fragments.js create mode 100644 tests/qunit/editor/tinymce/undo/Levels.js diff --git a/tests/qunit/editor/index.html b/tests/qunit/editor/index.html index b329d7bc89..f013b9a13c 100644 --- a/tests/qunit/editor/index.html +++ b/tests/qunit/editor/index.html @@ -40,6 +40,9 @@ + + + @@ -51,6 +54,8 @@ + + @@ -86,6 +91,7 @@ + @@ -97,6 +103,12 @@ + + + + + + @@ -115,12 +127,15 @@ + + + @@ -130,29 +145,11 @@ + + - - - - - - - - - - - - - - - - - - - - - + diff --git a/tests/qunit/editor/js/init.js b/tests/qunit/editor/js/init.js index e3ea70ffd6..0d47f0718d 100644 --- a/tests/qunit/editor/js/init.js +++ b/tests/qunit/editor/js/init.js @@ -4,7 +4,7 @@ QUnit.config.reorder = false; QUnit.config.hidepassed = true; - window.editor = window.inlineEditor = null; + window.editor = window.inlineEditor = null; var oldModule = module; @@ -23,12 +23,12 @@ // Sauce labs QUnit.testStart(function(testDetails) { - QUnit.log = function(details) { + QUnit.log(function(details) { if (!details.result) { details.name = currentModule + ':' + testDetails.name; log.push(details); } - }; + }); }); QUnit.done(function(results) { diff --git a/tests/qunit/editor/js/qunit/qunit.js b/tests/qunit/editor/js/qunit/qunit.js index 0e279fde17..3aab2bb8fc 100644 --- a/tests/qunit/editor/js/qunit/qunit.js +++ b/tests/qunit/editor/js/qunit/qunit.js @@ -571,6 +571,11 @@ if ( !defined.document || document.readyState === "complete" ) { config.autorun = true; } +if (document.location.search.indexOf('bedrock') !== -1) { + config.autorun = false; + config.autostart = false; +} + QUnit.load = function() { runLoggingCallbacks( "begin", QUnit, {} ); diff --git a/tests/qunit/editor/js/tinymce_loader.js b/tests/qunit/editor/js/tinymce_loader.js index 52eeb62855..fae4529b23 100644 --- a/tests/qunit/editor/js/tinymce_loader.js +++ b/tests/qunit/editor/js/tinymce_loader.js @@ -4,4 +4,6 @@ document.write('