From 77aebc6d71b36608337c0500cdc30279c46faeef Mon Sep 17 00:00:00 2001 From: boonebgorges Date: Thu, 5 Feb 2015 20:35:02 +0000 Subject: [PATCH] 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 --- Gruntfile.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index bcfdd7523e..26b1ea5c6a 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -109,7 +109,9 @@ module.exports = function(grunt) { dest: 'tests/qunit/compiled.html', options: { 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; } } }