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. git-svn-id: https://develop.svn.wordpress.org/trunk@31344 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
cdbea14c09
commit
77aebc6d71
@ -109,7 +109,9 @@ module.exports = function(grunt) {
|
|||||||
dest: 'tests/qunit/compiled.html',
|
dest: 'tests/qunit/compiled.html',
|
||||||
options: {
|
options: {
|
||||||
processContent: function( src ) {
|
processContent: function( src ) {
|
||||||
return src.replace( /([^\.])*\.\.\/src/ig , '/../build' );
|
src = src.replace( /([^\.])*\.\.\/src/ig , '/../build' );
|
||||||
|
src = src.replace( '/jquery/ui/core.js', '/jquery/ui/core.min.js' );
|
||||||
|
return src;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user