diff -u b/core/tests/Drupal/FunctionalJavascriptTests/Ajax/AjaxTest.php b/core/tests/Drupal/FunctionalJavascriptTests/Ajax/AjaxTest.php
--- b/core/tests/Drupal/FunctionalJavascriptTests/Ajax/AjaxTest.php
+++ b/core/tests/Drupal/FunctionalJavascriptTests/Ajax/AjaxTest.php
@@ -173,20 +173,20 @@
// processed correctly.
$test_cases['pre_wrapped_whitespace'] = [
'pre-wrapped-whitespace',
- '
pre-wrapped-whitespace
',
+ " pre-wrapped-whitespace
\n",
];
// Test that not wrapped response data (text node) is inserted wrapped and
// all top-level node elements (context) are processed correctly.
$test_cases['not_wrapped'] = [
'not-wrapped',
- 'not-wrapped',
+ 'not-wrapped',
];
// Test that not wrapped response data (text node and comment node) is
// inserted wrapped and all top-level node elements
// (context) are processed correctly.
$test_cases['comment_string_not_wrapped'] = [
'comment-string-not-wrapped',
- 'comment-string-not-wrapped',
+ 'comment-string-not-wrapped',
];
// Test that top-level comments (which are not lead by text nodes) are
// inserted without wrapper.
@@ -198,7 +198,7 @@
// is inserted correctly.
$test_cases['mixed'] = [
'mixed',
- ' foo foo bar
additional not wrapped strings,
final string
',
+ ' foo foo bar additional not wrapped strings, final string
',
];
// Test that when the response has only top-level node elements, they
// are processed properly without extra wrapping.
@@ -210,7 +210,7 @@
// there are multiple top-level nodes.
$test_cases['top_level_only_pre_whitespace'] = [
'top-level-only-pre-whitespace',
- 'element #1
element #2
',
+ ' element #1
element #2
',
];
// Test when there are whitespaces between top-level divs.
$test_cases['top_level_only_middle_whitespace-div'] = [