[wp-trac] [WordPress Trac] #51446: CORS issues with QUnit while running tests

WordPress Trac noreply at wordpress.org
Wed Oct 7 23:56:01 UTC 2020


#51446: CORS issues with QUnit while running tests
-------------------------------------------------+-------------------------
 Reporter:  garrett-eclipse                      |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Build/Test Tools                     |     Version:  trunk
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing dev-         |     Focuses:  javascript
  feedback has-unit-tests needs-refresh          |
-------------------------------------------------+-------------------------
Changes (by garrett-eclipse):

 * version:   => trunk


Comment:

 Hmm, this may be due to [49101]/#50564 recently committed by @azaozz but
 now on a clean trunk running the qunit tests my CORS issue and that
 `Failed to load resource` issue are gone and in their place several
 `jQuery` and `JQMIGRATE` messages;
 {{{
 Running "qunit:files" (qunit) task
 Testing tests/qunit/compiled.html JQMIGRATE: Migrate is installed, version
 3.3.1
 .........................................................................................................................................................................................................OK
 Testing tests/qunit/index.html JQMIGRATE: Migrate is installed with
 logging active, version 3.3.1
 JQMIGRATE: jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos
 console.trace
 JQMIGRATE: jQuery.isArray is deprecated; use Array.isArray
 console.trace
 JQMIGRATE: jQuery.isFunction() is deprecated
 console.trace
 JQMIGRATE: jQuery.trim is deprecated; use String.prototype.trim
 console.trace
 JQMIGRATE: jQuery.fn.click() event shorthand is deprecated
 console.trace
 JQMIGRATE: jQuery.fn.bind() is deprecated
 console.trace
 JQMIGRATE: jQuery.unique is deprecated; use jQuery.uniqueSort
 console.trace
 JQMIGRATE: jQuery.fn.keydown() event shorthand is deprecated
 console.trace
 JQMIGRATE: jQuery.fn.scroll() event shorthand is deprecated
 console.trace
 JQMIGRATE: jQuery.fn.focus() event shorthand is deprecated
 console.trace
 .........................................................................................................................................................................................................OK
 >> 402 tests completed with 0 failed, 0 skipped, and 0 todo.
 >> 1002 assertions (in 7800ms), passed: 1002, failed: 0
 }}}
 Note these are also present in the inspect console if you open the qunit
 files directly;
 [[Image(https://core.trac.wordpress.org/raw-
 attachment/ticket/51446/Screen%20Shot%202020-10-07%20at%204.53.42%20PM.png)]]

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


More information about the wp-trac mailing list