diff --git a/core/modules/filter/src/Tests/FilterUnitTest.php b/core/modules/filter/src/Tests/FilterUnitTest.php index 00977ab..e5edaeb 100644 --- a/core/modules/filter/src/Tests/FilterUnitTest.php +++ b/core/modules/filter/src/Tests/FilterUnitTest.php @@ -118,7 +118,7 @@ function testCaptionFilter() { // Data-caption attribute. $input = ''; - $expected = '
Loquacious llama!
'; + $expected = '
Loquacious llama!
'; $output = $test($input); $this->assertIdentical($expected, $output->getProcessedText()); $this->assertIdentical($attached_library, $output->getAssets()); @@ -130,14 +130,14 @@ function testCaptionFilter() { // HTML entities in the caption. $input = ''; - $expected = '
“Loquacious llama!”
'; + $expected = '
“Loquacious llama!”
'; $output = $test($input); $this->assertIdentical($expected, $output->getProcessedText()); $this->assertIdentical($attached_library, $output->getAssets()); // HTML encoded as HTML entities in data-caption attribute. $input = ''; - $expected = '
Loquacious llama!
'; + $expected = '
Loquacious llama!
'; $output = $test($input); $this->assertIdentical($expected, $output->getProcessedText()); $this->assertIdentical($attached_library, $output->getAssets()); @@ -146,33 +146,33 @@ function testCaptionFilter() { // not allowed by the HTML spec, but may happen when people manually write // HTML, so we explicitly support it. $input = ''; - $expected = '
Loquacious llama!
'; + $expected = '
Loquacious llama!
'; $output = $test($input); $this->assertIdentical($expected, $output->getProcessedText()); $this->assertIdentical($attached_library, $output->getAssets()); // Security test: attempt an XSS. $input = ''; - $expected = '
alert(\'Loquacious llama!\')
'; + $expected = '
alert(\'Loquacious llama!\')
'; $output = $test($input); $this->assertIdentical($expected, $output->getProcessedText()); $this->assertIdentical($attached_library, $output->getAssets()); // Ensure the filter also works with uncommon yet valid attribute quoting. $input = ''; - $expected = '
Loquacious llama!
'; + $expected = '
Loquacious llama!
'; $output = $test($input); $this->assertIdentical($expected, $output->getProcessedText()); $this->assertIdentical($attached_library, $output->getAssets()); // Finally, ensure that this also works on any other tag. $input = '