Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(374)

Unified Diff: LayoutTests/http/tests/xmlhttprequest/response-stream-cancel.html

Issue 1001233002: Streams Implementation Update: Reader name and Stream methods (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/xmlhttprequest/response-stream-cancel.html
diff --git a/LayoutTests/http/tests/xmlhttprequest/response-stream-cancel.html b/LayoutTests/http/tests/xmlhttprequest/response-stream-cancel.html
index 6aaa183eb1e14b0777182d56a6692204804745d0..61539b3aedbe68b8239c5fe993f7fe01718633f5 100644
--- a/LayoutTests/http/tests/xmlhttprequest/response-stream-cancel.html
+++ b/LayoutTests/http/tests/xmlhttprequest/response-stream-cancel.html
@@ -35,7 +35,6 @@ test.step(function()
assert_true(stream instanceof ReadableStream,
'xhr.response should be ReadableStream during LOADING');
stream.cancel('canceled via ReadableStream.cancel');
- assert_equals(stream.state, 'closed', 'stream.state after cancel');
// Check that we saw all states.
assert_array_equals(seenStates,
@@ -43,12 +42,12 @@ test.step(function()
assert_equals(xhr.readyState, xhr.UNSENT, 'xhr.readyState after cancel');
assert_equals(xhr.response, null, 'xhr.response after cancel');
- stream.closed.then(test.step_func(function(value) {
+ stream.closed.then(function(value) {
assert_equals(value, undefined,
'stream.closed should be resolved with undefined');
test.done();
- }), test.step_func(function() {
- assert_unreached('stream.closed should not be rejected');
+ }).catch(test.step_func(function(e) {
+ assert_unreached('stream.closed should not be rejected: ' + e);
}));
case xhr.DONE:

Powered by Google App Engine
This is Rietveld 408576698