Changeset 48324 for trunk/tests/phpunit/tests/dependencies/jquery.php
- Timestamp:
- 07/05/2020 07:22:24 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/dependencies/jquery.php
r46586 r48324 22 22 $object = $scripts->query( 'jquery', 'registered' ); 23 23 $this->assertInstanceOf( '_WP_Dependency', $object ); 24 25 // As of 5.5 jQuery 1.12.4 is loaded without Migrate 1.4.1. 26 // Disable, but keep the followint test for 5.6 when jQuery would be updated to 3.5.1+ and 27 // the latest Migrate will be used. 28 /* 24 29 $this->assertEqualSets( $object->deps, array_keys( $jquery_scripts ) ); 25 30 foreach ( $object->deps as $dep ) { … … 29 34 $this->assertEquals( $jquery_scripts[ $dep ], $o->src ); 30 35 } 36 */ 31 37 } 32 38 … … 114 120 } 115 121 116 $this->expectOutputRegex( '/^(?:<script[^>]+><\/script>\\n){2}$/' ); 122 // Match only one script tag fopr 5.5, revert to `{2}` for 5.6. 123 $this->expectOutputRegex( '/^(?:<script[^>]+><\/script>\\n)$/' ); 117 124 118 125 $scripts->do_items( false, 0 ); … … 123 130 $scripts->do_items( false, 1 ); 124 131 $this->assertContains( 'jquery', $scripts->done ); 132 133 // Disable for 5.5 but keep for use in 5.6. See test_location_of_jquery() above. 134 /* 125 135 $this->assertContains( 'jquery-core', $scripts->done, 'jquery-core in footer' ); 126 136 $this->assertContains( 'jquery-migrate', $scripts->done, 'jquery-migrate in footer' ); 137 */ 127 138 } 128 139 }
Note: See TracChangeset
for help on using the changeset viewer.