ce2dcccf86
- 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
18 lines
466 B
JavaScript
18 lines
466 B
JavaScript
// Edited for WordPress
|
|
(function() {
|
|
var baseURL;
|
|
|
|
// Get base where the tinymce script is located
|
|
var scripts = document.getElementsByTagName('script');
|
|
for ( var i = 0; i < scripts.length; i++ ) {
|
|
var src = scripts[i].src;
|
|
|
|
if ( /tinymce_loader\.js/.test( src ) ) {
|
|
baseURL = src.substring( 0, src.indexOf('/tests/qunit/') );
|
|
break;
|
|
}
|
|
}
|
|
|
|
document.write('<script src="' + baseURL + '/src/wp-includes/js/tinymce/tinymce.min.js"></script>');
|
|
})();
|