From 60516115ed92fdc7080a104b624604d76307bc1f Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Tue, 10 Nov 2020 09:16:53 +0000 Subject: [PATCH] Tests QUnit: Remove restriction on running the TinyMCE Textpattern WP plugin tests in PhantomJS. Props @desrosj. Fixes #42009. git-svn-id: https://develop.svn.wordpress.org/trunk@49556 602fd350-edb4-49c9-b593-d223f7449a82 --- .../wp-includes/js/tinymce/plugins/wptextpattern/plugin.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tests/qunit/wp-includes/js/tinymce/plugins/wptextpattern/plugin.js b/tests/qunit/wp-includes/js/tinymce/plugins/wptextpattern/plugin.js index 7ad7a861f2..801ab1bd0c 100644 --- a/tests/qunit/wp-includes/js/tinymce/plugins/wptextpattern/plugin.js +++ b/tests/qunit/wp-includes/js/tinymce/plugins/wptextpattern/plugin.js @@ -2,12 +2,6 @@ var editor, count = 0; - // 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; }