You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tests: Update scripts tests to use semantic HTML comparison.
This aims to make the tests more robust.
Follow-up to [50167], [60295], [61391], [61392].
Props jonsurrell.
See #64225.
git-svn-id: https://develop.svn.wordpress.org/trunk@61394 602fd350-edb4-49c9-b593-d223f7449a82
$this->assertSame( $expected, $output, 'Scripts registered with a "blocking" strategy, and who have no dependencies, should have no loading strategy attributes printed.' );
1599
+
$this->assertEqualHTML( $expected, $output, '<body>', 'Scripts registered with a "blocking" strategy, and who have no dependencies, should have no loading strategy attributes printed.' );
$this->assertSame( $expected, $output, 'Scripts registered with no strategy assigned, and who have no dependencies, should have no loading strategy attributes printed.' );
1605
+
$this->assertEqualHTML( $expected, $output, '<body>', 'Scripts registered with no strategy assigned, and who have no dependencies, should have no loading strategy attributes printed.' );
1570
1606
}
1571
1607
1572
1608
/**
@@ -2616,14 +2652,6 @@ public function test_wp_add_inline_script_customize_dependency() {
0 commit comments