Docs: Fix typos in comments in `tests/dependencies/jquery.php`.

Props hareesh-pillai.
See #49572.

git-svn-id: https://develop.svn.wordpress.org/trunk@48325 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2020-07-05 20:27:52 +00:00
parent 1c8ebd5da6
commit 5c41e3af90
1 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ class Tests_Dependencies_jQuery extends WP_UnitTestCase {
$this->assertInstanceOf( '_WP_Dependency', $object ); $this->assertInstanceOf( '_WP_Dependency', $object );
// As of 5.5 jQuery 1.12.4 is loaded without Migrate 1.4.1. // As of 5.5 jQuery 1.12.4 is loaded without Migrate 1.4.1.
// Disable, but keep the followint test for 5.6 when jQuery would be updated to 3.5.1+ and // Disable, but keep the following test for 5.6 when jQuery would be updated to 3.5.1+ and
// the latest Migrate will be used. // the latest Migrate will be used.
/* /*
$this->assertEqualSets( $object->deps, array_keys( $jquery_scripts ) ); $this->assertEqualSets( $object->deps, array_keys( $jquery_scripts ) );
@ -119,8 +119,8 @@ class Tests_Dependencies_jQuery extends WP_UnitTestCase {
$scripts->add_data( $dep, 'group', 1 ); $scripts->add_data( $dep, 'group', 1 );
} }
// Match only one script tag fopr 5.5, revert to `{2}` for 5.6. // Match only one script tag for 5.5, revert to `{2}` for 5.6.
$this->expectOutputRegex( '/^(?:<script[^>]+><\/script>\\n)$/' ); $this->expectOutputRegex( '/^(?:<script[^>]+><\/script>\\n){1}$/' );
$scripts->do_items( false, 0 ); $scripts->do_items( false, 0 );
$this->assertNotContains( 'jquery', $scripts->done ); $this->assertNotContains( 'jquery', $scripts->done );