Make WordPress Core

Changeset 1319 in tests for trunk/tests/dependencies/jquery.php


Ignore:
Timestamp:
07/28/2013 08:03:44 PM (9 years ago)
Author:
bpetty
Message:

Properly handle the test_location_of_jquery() test when SCRIPT_DEBUG is off.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/dependencies/jquery.php

    r1223 r1319  
    88
    99    function test_location_of_jquery() {
    10         $jquery_scripts = array(
    11             'jquery-core'    => '/wp-includes/js/jquery/jquery.js',
    12             'jquery-migrate' => '/wp-includes/js/jquery/jquery-migrate.js'
    13         );
     10        if ( SCRIPT_DEBUG ) {
     11            $jquery_scripts = array(
     12                'jquery-core'    => '/wp-includes/js/jquery/jquery.js',
     13                'jquery-migrate' => '/wp-includes/js/jquery/jquery-migrate.min.js'
     14            );
     15        } else {
     16            $jquery_scripts = array(
     17                'jquery-core'    => '/wp-includes/js/jquery/jquery.js',
     18                'jquery-migrate' => '/wp-includes/js/jquery/jquery-migrate.js'
     19            );
     20        }
    1421        $scripts = new WP_Scripts;
    1522        wp_default_scripts( $scripts );
Note: See TracChangeset for help on using the changeset viewer.