[wp-trac] [WordPress Trac] #27014: Incorporate the TinyMCE tests into our JS tests

WordPress Trac noreply at wordpress.org
Sat Feb 15 22:02:01 UTC 2014


#27014: Incorporate the TinyMCE tests into our JS tests
------------------------------+-------------------------
 Reporter:  azaozz            |       Owner:
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  3.9
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:                    |     Focuses:  javascript
------------------------------+-------------------------

Comment (by azaozz):

 Running the TinyMCE tests from Grunt automatically together with the core
 tests won't work.

 - PhantomJS (used for core) cannot run TinyMCE properly. The reason is
 that a large part of TinyMCE deals with browser specific quirks and
 normalization. PhantomJS is WebKit based but is neither Chrome nor Safari.
 It works very well for "pure" JS but doesn't (and shouldn't) emulate
 browser specific quirks/problems with contenteditable, the DOM, etc.

 - Even if there is a JavaScript "runner" that emulates different browsers,
 don't think it will work well. We would be testing the quality of
 emulation together with the functionality in TinyMCE, and we need it for
 IE 7,8,9,10,11, latest Firefox, Chrome, Safari, iOS, Android, etc.

 In that terms the best option is to run the TinyMCE tests by hand in all
 browsers. In Grunt we could [https://github.com/jjrdn/node-open launch the
 browser] from Node.js and run the tests. Not sure if we want to go there
 though.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27014#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list