Changeset 45458 for trunk/tests/phpunit/tests/dependencies/scripts.php
- Timestamp:
- 05/28/2019 04:18:53 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/dependencies/scripts.php
r44744 r45458 119 119 120 120 $ver = get_bloginfo( 'version' ); 121 $expected = "<script type='text/javascript' src='/wp-admin/load-scripts.php?c=0&load%5B %5D=one,two,three&ver={$ver}'></script>\n";121 $expected = "<script type='text/javascript' src='/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=one,two,three&ver={$ver}'></script>\n"; 122 122 123 123 $this->assertEquals( $expected, $print_scripts ); … … 563 563 564 564 $ver = get_bloginfo( 'version' ); 565 $expected = "<script type='text/javascript' src='/wp-admin/load-scripts.php?c=0&load%5B %5D=one&ver={$ver}'></script>\n";565 $expected = "<script type='text/javascript' src='/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=one&ver={$ver}'></script>\n"; 566 566 $expected .= "<script type='text/javascript' src='/directory/two.js?ver={$ver}'></script>\n"; 567 567 $expected .= "<script type='text/javascript'>\nconsole.log(\"after two\");\n</script>\n"; … … 615 615 616 616 $ver = get_bloginfo( 'version' ); 617 $expected = "<script type='text/javascript' src='/wp-admin/load-scripts.php?c=0&load%5B %5D=jquery-core,jquery-migrate&ver={$ver}'></script>\n";617 $expected = "<script type='text/javascript' src='/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate&ver={$ver}'></script>\n"; 618 618 $expected .= "<script type='text/javascript' src='http://example.com'></script>\n"; 619 619 $expected .= "<script type='text/javascript'>\nconsole.log(\"after\");\n</script>\n"; … … 640 640 641 641 $ver = get_bloginfo( 'version' ); 642 $expected = "<script type='text/javascript' src='/wp-admin/load-scripts.php?c=0&load%5B %5D=jquery-core,jquery-migrate&ver={$ver}'></script>\n";642 $expected = "<script type='text/javascript' src='/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate&ver={$ver}'></script>\n"; 643 643 $expected .= "<!--[if gte IE 9]>\n"; 644 644 $expected .= "<script type='text/javascript' src='http://example.com'></script>\n"; … … 668 668 669 669 $ver = get_bloginfo( 'version' ); 670 $expected = "<script type='text/javascript' src='/wp-admin/load-scripts.php?c=0&load%5B %5D=jquery-core,jquery-migrate&ver={$ver}'></script>\n";670 $expected = "<script type='text/javascript' src='/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate&ver={$ver}'></script>\n"; 671 671 $expected .= "<script type='text/javascript'>\nconsole.log(\"before\");\n</script>\n"; 672 672 $expected .= "<script type='text/javascript' src='http://example.com'></script>\n"; … … 693 693 694 694 $ver = get_bloginfo( 'version' ); 695 $expected = "<script type='text/javascript' src='/wp-admin/load-scripts.php?c=0&load%5B %5D=jquery-core,jquery-migrate,wp-a11y&ver={$ver}'></script>\n";695 $expected = "<script type='text/javascript' src='/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,wp-a11y&ver={$ver}'></script>\n"; 696 696 $expected .= "<script type='text/javascript'>\nconsole.log(\"before\");\n</script>\n"; 697 697 $expected .= "<script type='text/javascript' src='http://example.com'></script>\n"; … … 779 779 780 780 $ver = get_bloginfo( 'version' ); 781 $expected = "<script type='text/javascript' src='/wp-admin/load-scripts.php?c=0&load%5B %5D=one,two&ver={$ver}'></script>\n";781 $expected = "<script type='text/javascript' src='/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=one,two&ver={$ver}'></script>\n"; 782 782 $expected .= "<script type='text/javascript'>\nconsole.log(\"before three\");\n</script>\n"; 783 783 $expected .= "<script type='text/javascript' src='/wp-includes/js/script3.js?ver={$ver}'></script>\n";
Note: See TracChangeset
for help on using the changeset viewer.