Index: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/iso-latin1-header-iframe.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/iso-latin1-header-iframe.html b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/iso-latin1-header-iframe.html |
index 56f26c4f15e0cd7b0a507119adfa4484125f8d31..f076f180c8b8e2c4325b2aa19686ab707813b9ce 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/iso-latin1-header-iframe.html |
+++ b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/iso-latin1-header-iframe.html |
@@ -9,7 +9,7 @@ function xhr_send(method, data) { |
resolve(); |
}; |
xhr.onerror = function() { |
- reject('XHR must fail.'); |
+ reject('XHR must succeed.'); |
}; |
xhr.responseType = 'text'; |
xhr.open(method, './dummy?test', true); |
@@ -17,11 +17,11 @@ function xhr_send(method, data) { |
}); |
} |
- |
window.addEventListener('message', function(evt) { |
var port = evt.ports[0]; |
xhr_send('POST', 'test string') |
.then(function() { port.postMessage({results: 'finish'}); }) |
.catch(function(e) { port.postMessage({results: 'failure:' + e}); }); |
}); |
+ |
</script> |