- Timestamp:
- 01/23/2026 05:02:27 PM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/dependencies/wpSanitizeScriptAttributes.php
r61415 r61518 11 11 12 12 public function test_sanitize_script_attributes_type_set() { 13 $this->setExpectedDeprecated( 'wp_sanitize_script_attributes' ); 13 14 $this->assertSame( 14 15 ' type="application/javascript" src="https://DOMAIN.TLD/PATH/FILE.js" nomodule', … … 25 26 26 27 public function test_sanitize_script_attributes_type_not_set() { 28 $this->setExpectedDeprecated( 'wp_sanitize_script_attributes' ); 27 29 $this->assertSame( 28 30 ' src="https://DOMAIN.TLD/PATH/FILE.js" nomodule', … … 39 41 40 42 public function test_sanitize_script_attributes_no_attributes() { 43 $this->setExpectedDeprecated( 'wp_sanitize_script_attributes' ); 41 44 $this->assertSame( 42 45 '', … … 46 49 47 50 public function test_sanitize_script_attributes_relative_src() { 51 $this->setExpectedDeprecated( 'wp_sanitize_script_attributes' ); 48 52 $this->assertSame( 49 53 ' src="PATH/FILE.js" nomodule', … … 60 64 61 65 public function test_sanitize_script_attributes_only_false_boolean_attributes() { 66 $this->setExpectedDeprecated( 'wp_sanitize_script_attributes' ); 62 67 $this->assertSame( 63 68 '', … … 72 77 73 78 public function test_sanitize_script_attributes_only_true_boolean_attributes() { 79 $this->setExpectedDeprecated( 'wp_sanitize_script_attributes' ); 74 80 $this->assertSame( 75 81 ' async nomodule',
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)