Changeset 25072 for trunk/tests/tests/dependencies/jquery.php
- Timestamp:
- 08/21/2013 03:40:35 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/tests/dependencies/jquery.php
r25002 r25072 8 8 9 9 function test_location_of_jquery() { 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 }21 10 $scripts = new WP_Scripts; 22 11 wp_default_scripts( $scripts ); 12 13 $jquery_scripts = array( 14 'jquery-core' => '/wp-includes/js/jquery/jquery.js', 15 ); 16 if ( SCRIPT_DEBUG ) 17 $jquery_scripts['jquery-migrate'] = '/wp-includes/js/jquery/jquery-migrate.js'; 18 else 19 $jquery_scripts['jquery-migrate'] = '/wp-includes/js/jquery/jquery-migrate.min.js'; 20 23 21 $object = $scripts->query( 'jquery', 'registered' ); 24 22 $this->assertInstanceOf( '_WP_Dependency', $object ); … … 60 58 set_current_screen( 'front' ); 61 59 } 60 61 /** 62 * @ticket 24994 63 */ 64 function test_exclusion_of_sourcemaps() { 65 $contents = trim( file_get_contents( ABSPATH . WPINC . '/js/jquery/jquery.js' ) ); 66 $this->assertFalse( strpos( $contents, 'sourceMappingURL' ), 'Presence of sourceMappingURL' ); 67 } 62 68 }
Note: See TracChangeset
for help on using the changeset viewer.