Make WordPress Core

Changeset 41620


Ignore:
Timestamp:
09/27/2017 04:21:24 PM (7 years ago)
Author:
azaozz
Message:

TinyMCE: disable the tests for wptextpatterns plugin in PhantomJS.

See #42009

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/qunit/wp-includes/js/tinymce/plugins/wptextpattern/plugin.js

    r39150 r41620  
    33        count = 0;
    44
    5     if ( tinymce.Env.ie && tinymce.Env.ie < 9 ) {
     5    // Temporarily disadle these tests in PhantomJS.
     6    // Seems editor.selection.getRng() in mceType() fails there, but works properly in the browsers.
     7    if ( /PhantomJS/.test( navigator.userAgent ) ) {
     8        return;
     9    }
     10
     11    if ( tinymce.Env.ie && tinymce.Env.ie < 11 ) {
    612        return;
    713    }
Note: See TracChangeset for help on using the changeset viewer.