WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/24/2014 05:59:45 AM (8 years ago)
Author:
azaozz
Message:

Update the TinyMCE tests.

In 4.0.20 all tests were reworked. The 'testrunner' was removed and the PhantomJS Runner QUnit plugin was added making it possible to run the tests from cli. However it is still necessary to run the tests in all supported browsers to test the fixes for all browser quirks and normalization. Also all tests are loaded in one html file.

See #27014

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/qunit/editor/index.html

    r27155 r27679  
    22<html>
    33<head>
    4 <meta charset="UTF-8" />
    5 <title>Test Runner</title>
    6 <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    7 <link rel="stylesheet" href="js/qunit/testrunner.css" type="text/css" />
    8 <script src="js/qunit/testrunner.js"></script>
    9 <script>
    10 TestRunner.addSuites([
    11     "tinymce/tests.js",
    12     "tinymce/dom/tests.js",
    13     "tinymce/html/tests.js",
    14     "tinymce/ui/tests.js",
    15     "tinymce/util/tests.js",
    16     "plugins/tests.js"
    17 ]);
    18 </script>
     4    <meta charset="UTF-8" />
     5    <title>TinyMCE QUnit tests</title>
     6    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
     7    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0" />
     8    <title>QUnit tests</title>
     9    <link rel="stylesheet" href="js/qunit/qunit.css" type="text/css" />
     10    <link rel="stylesheet" href="../../../src/wp-includes/js/tinymce/skins/lightgray/skin.min.css" type="text/css" />
     11    <link rel="stylesheet" href="tinymce/ui/css/ui-overrides.css" type="text/css" />
     12    <style>
     13        #qunit-modulefilter-container { float: none; }
     14    </style>
    1915</head>
    2016<body>
     17    <div id="qunit"></div>
     18    <div id="qunit-fixture"></div>
     19    <div id="view" style="position: absolute; right: 0; top: 0"></div>
     20
     21    <script src="http://www.google.com/jsapi"></script>
     22    <script>google.load("jquery", "1");</script>
     23    <script src="js/qunit/qunit.js"></script>
     24    <script src="../../../src/wp-includes/js/tinymce/tinymce.min.js"></script>
     25<!--<script src="../js/tinymce/classes/jquery.tinymce.js"></script> -->
     26    <script src="js/utils.js"></script>
     27    <script src="js/init.js"></script>
     28
     29    <!-- tinymce.dom.* -->
     30    <script src="tinymce/dom/DOMUtils.js"></script>
     31    <script src="tinymce/dom/EventUtils.js"></script>
     32    <script src="tinymce/dom/Range.js"></script>
     33    <script src="tinymce/dom/Selection.js"></script>
     34    <script src="tinymce/dom/Serializer.js"></script>
     35    <script src="tinymce/dom/TridentSelection.js"></script>
     36
     37    <!-- tinymce.html.* -->
     38    <script src="tinymce/html/DomParser.js"></script>
     39    <script src="tinymce/html/Entities.js"></script>
     40    <script src="tinymce/html/Node.js"></script>
     41    <script src="tinymce/html/SaxParser.js"></script>
     42    <script src="tinymce/html/Schema.js"></script>
     43    <script src="tinymce/html/Obsolete.js"></script>
     44    <script src="tinymce/html/Styles.js"></script>
     45    <script src="tinymce/html/Writer.js"></script>
     46
     47    <!-- tnymce.ui.* -->
     48    <script src="tinymce/ui/AbsoluteLayout.js"></script>
     49    <script src="tinymce/ui/Button.js"></script>
     50    <script src="tinymce/ui/Collection.js"></script>
     51    <script src="tinymce/ui/ColorButton.js"></script>
     52    <script src="tinymce/ui/Control.js"></script>
     53    <script src="tinymce/ui/FitLayout.js"></script>
     54    <script src="tinymce/ui/FlexLayout.js"></script>
     55    <script src="tinymce/ui/GridLayout.js"></script>
     56    <script src="tinymce/ui/MenuButton.js"></script>
     57    <script src="tinymce/ui/Panel.js"></script>
     58    <script src="tinymce/ui/Selector.js"></script>
     59    <script src="tinymce/ui/SplitButton.js"></script>
     60    <script src="tinymce/ui/TabPanel.js"></script>
     61    <script src="tinymce/ui/TextBox.js"></script>
     62    <script src="tinymce/ui/Window.js"></script>
     63
     64    <!-- tinymce.util.* -->
     65    <script src="tinymce/util/JSON.js"></script>
     66    <script src="tinymce/util/JSONRequest.js"></script>
     67    <script src="tinymce/util/LocalStorage.js"></script>
     68    <script src="tinymce/util/Quirks_webkit.js"></script>
     69    <script src="tinymce/util/URI.js"></script>
     70    <script src="tinymce/util/XHR.js"></script>
     71
     72    <!-- tinymce.* -->
     73    <script src="tinymce/Editor.js"></script>
     74    <script src="tinymce/EditorCommands.js"></script>
     75    <script src="tinymce/EnterKey.js"></script>
     76    <script src="tinymce/ForceBlocks.js"></script>
     77    <script src="tinymce/Formatter_apply.js"></script>
     78    <script src="tinymce/Formatter_check.js"></script>
     79    <script src="tinymce/Formatter_remove.js"></script>
     80    <script src="tinymce/UndoManager.js"></script>
     81
     82    <!-- tinymce.plugins.* -->
     83<!--<script src="plugins/autosave.js"></script>
     84    <script src="plugins/fullpage.js"></script>
     85    <script src="plugins/jquery_plugin.js"></script>
     86    <script src="plugins/legacyoutput.js"></script>
     87    <script src="plugins/lists.js"></script> -->
     88    <script src="plugins/media.js"></script>
     89<!--<script src="plugins/noneditable.js"></script> -->
     90    <script src="plugins/paste.js"></script>
     91<!--<script src="plugins/searchreplace.js"></script>
     92    <script src="plugins/spellchecker.js"></script>
     93    <script src="plugins/table.js"></script>
     94    <script src="plugins/wordcount.js"></script> -->
    2195</body>
    2296</html>
Note: See TracChangeset for help on using the changeset viewer.