TinyMCE: disable the tests for `wptextpatterns` plugin in PhantomJS.

See #42009

git-svn-id: https://develop.svn.wordpress.org/trunk@41620 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2017-09-27 16:21:24 +00:00
parent cc4c7757c9
commit 35ebd35801
1 changed files with 7 additions and 1 deletions

View File

@ -2,7 +2,13 @@
var editor,
count = 0;
if ( tinymce.Env.ie && tinymce.Env.ie < 9 ) {
// Temporarily disadle these tests in PhantomJS.
// Seems editor.selection.getRng() in mceType() fails there, but works properly in the browsers.
if ( /PhantomJS/.test( navigator.userAgent ) ) {
return;
}
if ( tinymce.Env.ie && tinymce.Env.ie < 11 ) {
return;
}