Skip to content

Commit 6f20a29

Browse files
committed
WICKET-7177: made test work on all platforms, and switched to jQuery 4.0.0.
1 parent aff05c1 commit 6f20a29

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

testing/wicket-js-tests/Gruntfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ module.exports = function(grunt) {
121121
"xml-replacement": {
122122
options: {
123123
urls: [
124-
'http://localhost:38887/test/js/xml-replacement.html?3.7.1'
124+
'http://localhost:38887/test/js/xml-replacement.html?4.0.0'
125125
]
126126
}
127127
}

wicket-core/src/test/js/xml-replacement.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,11 @@ jQuery(document).ready(function() {
110110
function () {
111111
done();
112112
var complexXml = jQuery('#complexXml');
113-
assert.equal(complexXml.html().trim(), '<mrow>\n' +
113+
assert.equal(complexXml.html()
114+
.trim()
115+
.replaceAll('\r\n', '\n')
116+
.replaceAll('\r', '\n'),
117+
'<mrow>\n' +
114118
'<mn>2</mn>\n' +
115119
'<mo>⁢</mo>\n' +
116120
'<mn>3</mn>\n' +

0 commit comments

Comments
 (0)