-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Aborting fetch #6484
Aborting fetch #6484
Changes from 1 commit
f6426f7
dafbd68
b076f77
fdf63fc
568ae5d
c1000fc
ee16ec3
3c232fc
c2741a5
e9f1003
3e36e5e
2951a23
b7e0b64
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,4 +20,4 @@ | |
})(); | ||
</script> | ||
</body> | ||
</html> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,4 @@ | |
} | ||
</script> | ||
</body> | ||
</html> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -464,6 +464,6 @@ test(t => { | |
}); | ||
|
||
assert_true(!!cancelReason, 'Cancel called sync'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This test makes sense. Can we not assert anything more specific about cancelReason than that it's truthy? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Doh, that's supposed to be the next two lines. Copy & paste error. |
||
assert_equals(err.constructor, DOMException); | ||
assert_equals(err.name, 'AbortError'); | ||
assert_equals(cancelReason.constructor, DOMException); | ||
assert_equals(cancelReason.name, 'AbortError'); | ||
}, contextualTestName("Readable stream synchronously cancels with AbortError if aborted before reading")); |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,4 +99,4 @@ | |
}, "Stream errors once aborted."); | ||
</script> | ||
</body> | ||
</html> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
<!DOCTYPE html> | ||
<!DOCTYPE html> | ||
<!-- | ||
Duplicating this resource to make service worker scoping simpler in | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "Duplicating /common/blank.html..." |
||
serviceworker-intercepted.https.html | ||
--> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW I found generating multiple tests with a wrapper simpler than contextualTestName: see https://github.com/w3c/web-platform-tests/tree/master/streams readme and https://github.com/w3c/web-platform-tests/blob/master/streams/generate-test-wrappers.js