diff --git a/html/infrastructure/urls/resolving-urls/query-encoding/resources/resolve-url.js b/html/infrastructure/urls/resolving-urls/query-encoding/resources/resolve-url.js
index c126da48b85ee1..1c4a77705e57fc 100644
--- a/html/infrastructure/urls/resolving-urls/query-encoding/resources/resolve-url.js
+++ b/html/infrastructure/urls/resolving-urls/query-encoding/resources/resolve-url.js
@@ -499,7 +499,7 @@ onload = function() {
var xhr = new XMLHttpRequest();
xhr.open('GET', input_url_html);
xhr.onload = this.step_func_done(function() {
- assert_equals(xhr.response, expected_utf8);
+ assert_equals(xhr.response, expected_current);
});
xhr.send();
}, 'XMLHttpRequest#open()');