Make WordPress Core


Ignore:
Timestamp:
07/16/2012 05:24:25 PM (13 years ago)
Author:
ryan
Message:

Pinking shears

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/test_includes_wp-scripts.php

    r896 r903  
    4242        $this->assertEquals("", get_echo('wp_print_scripts'));
    4343    }
    44    
     44
    4545    /**
    4646     * Test the different protocol references in wp_enqueue_script
     
    6363        wp_enqueue_script( 'jquery-https', 'https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js' );
    6464        $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
    6666        // Try with an automatic protocol reference (//)
    6767        wp_enqueue_script( 'jquery-doubleslash', '//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js' );
     
    7676        wp_enqueue_script( 'jquery-ftp', 'ftp://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js' );
    7777        $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
    7979        // Go!
    8080        $this->assertEquals( $expected, get_echo( 'wp_print_scripts' ) );
Note: See TracChangeset for help on using the changeset viewer.