mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Incorporate the TinyMCE tests into our JS tests:
- Modified the original tests so TinyMCE can be loaded from /src/wp-includes/js/tinymce. - Added "WP" option to the UI to select only tests relevant to our integration (excludes most of the default plugins tests). - Added tests for obsolete HTML elements and attributes (html4 back-compat). See #27014. git-svn-id: https://develop.svn.wordpress.org/trunk@27155 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
43
tests/qunit/editor/tinymce/ui/StackLayout.html
Normal file
43
tests/qunit/editor/tinymce/ui/StackLayout.html
Normal file
@@ -0,0 +1,43 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>ui.StackLayout Test Suite</title>
|
||||
<link type="text/css" rel="stylesheet" href="../../../../../src/wp-includes/js/tinymce/skins/lightgray/skin.min.css" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
|
||||
<link rel="stylesheet" href="css/ui-overrides.css" type="text/css" />
|
||||
<link rel="stylesheet" href="http://code.jquery.com/qunit/qunit-git.css" type="text/css" />
|
||||
<script src="http://code.jquery.com/qunit/qunit-git.js"></script>
|
||||
<script src="../../js/qunit/reporter.js"></script>
|
||||
<script src="../../js/utils.js"></script>
|
||||
<script src="../../js/tinymce_loader.js"></script>
|
||||
<script type="text/javascript">
|
||||
var panel;
|
||||
|
||||
QUnit.config.autostart = false;
|
||||
QUnit.config.reorder = false;
|
||||
|
||||
module("ui.StackLayout", {
|
||||
setup: function() {
|
||||
document.getElementById('view').innerHTML = '';
|
||||
},
|
||||
|
||||
teardown: function() {
|
||||
//document.getElementById('view').innerHTML = '';
|
||||
}
|
||||
});
|
||||
|
||||
window.onload = function() {
|
||||
QUnit.start();
|
||||
};
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="qunit-header">ui.StackLayout Test Suite</h1>
|
||||
<h2 id="qunit-banner"></h2>
|
||||
<h2 id="qunit-userAgent"></h2>
|
||||
<ol id="qunit-tests">
|
||||
</ol>
|
||||
<div id="view" style="position: absolute; right: 0; top: 0"></div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user