WordPress.org

Make WordPress Core

Changeset 31344


Ignore:
Timestamp:
02/05/2015 08:35:02 PM (7 years ago)
Author:
boonebgorges
Message:

Use minified jquery-ui-core file during qunit:compiled Grunt task.

[30989] made jQuery UI Core a dependency for QUnit tests. This change did not
account for the fact that jQuery JS assets are minimized (and non-minimized
versions unavailable) when grunt copy populates the /build directory. To
ensure that QUnit tests pass when run during grunt qunit:compiled, we
manually fix the asset path to read 'core.min.js'.

See #25781.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Gruntfile.js

    r30298 r31344  
    110110                options: {
    111111                    processContent: function( src ) {
    112                         return src.replace( /([^\.])*\.\.\/src/ig , '/../build' );
     112                        src = src.replace( /([^\.])*\.\.\/src/ig , '/../build' );
     113                        src = src.replace( '/jquery/ui/core.js', '/jquery/ui/core.min.js' );
     114                        return src;
    113115                    }
    114116                }
Note: See TracChangeset for help on using the changeset viewer.