Make WordPress Core


Ignore:
Timestamp:
03/27/2020 12:16:58 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Build/Test Tools: Update QUnit and Sinon to the latest versions.

Update JS tests per the QUnit 2.x Upgrade Guide.

Fixes #37117.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/qunit/index.html

    r47233 r47512  
    5757
    5858        <!-- QUnit -->
    59         <link rel="stylesheet" href="vendor/qunit.css" type="text/css" media="screen" />
    60         <script src="vendor/qunit.js"></script>
    61         <script src="vendor/sinon.js"></script>
    62         <script src="vendor/sinon-qunit.js"></script>
    63         <script>QUnit.config.hidepassed = false;</script>
     59        <link rel="stylesheet" href="../../node_modules/qunit/qunit/qunit.css" type="text/css" media="screen" />
     60        <script src="../../node_modules/qunit/qunit/qunit.js"></script>
     61        <script src="../../node_modules/sinon/pkg/sinon.js"></script>
     62        <script src="../../node_modules/sinon-test/dist/sinon-test.js"></script>
     63        <script>
     64            var qTest = QUnit.test, sTest = sinonTest( sinon );
     65
     66            QUnit.config.hidepassed = false;
     67
     68            QUnit.test = function( testName, callback ) {
     69                return qTest( testName, sTest(callback) );
     70            };
     71        </script>
    6472    </head>
    6573    <body>
Note: See TracChangeset for help on using the changeset viewer.