Changeset 903 in tests for trunk/tests/test_includes_wp-scripts.php
- Timestamp:
- 07/16/2012 05:24:25 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/test_includes_wp-scripts.php
r896 r903 42 42 $this->assertEquals("", get_echo('wp_print_scripts')); 43 43 } 44 44 45 45 /** 46 46 * Test the different protocol references in wp_enqueue_script … … 63 63 wp_enqueue_script( 'jquery-https', 'https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js' ); 64 64 $expected .= "<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js?ver=$ver'></script>\n"; 65 65 66 66 // Try with an automatic protocol reference (//) 67 67 wp_enqueue_script( 'jquery-doubleslash', '//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js' ); … … 76 76 wp_enqueue_script( 'jquery-ftp', 'ftp://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js' ); 77 77 $expected .= "<script type='text/javascript' src='{$wp_scripts->base_url}ftp://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js?ver=$ver'></script>\n"; 78 78 79 79 // Go! 80 80 $this->assertEquals( $expected, get_echo( 'wp_print_scripts' ) );
Note: See TracChangeset
for help on using the changeset viewer.