feat(http): xhr error listener invokes onError#2667
Closed
PatrickJS wants to merge 1 commit intoangular:masterfrom
Closed
feat(http): xhr error listener invokes onError#2667PatrickJS wants to merge 1 commit intoangular:masterfrom
PatrickJS wants to merge 1 commit intoangular:masterfrom
Conversation
Contributor
PatrickJS
commented
Jun 21, 2015
8f1d040 to
7db005d
Compare
Contributor
|
This looks good, but we need a test... |
ba6793c to
5446c6f
Compare
Contributor
Author
|
alright I rebased, refactored, and added a test. |
Contributor
Author
|
oops I was cleaning up old branches and accidently deleted this |
Contributor
There was a problem hiding this comment.
By setting the type to ResponseTypes.Error on this ResponseOptions object, you're setting the default type to be Error, which is bad for the test, since we want to test that XHRBackend is smart enough to set the type as error based on the xhr erroring or getting a status that is considered an error.
Contributor
|
@jeffbcross ping... |
Contributor
|
@gdi2290 finally scheduled this to be merged, thanks! https://github.com/angular/angular/tree/presubmit-jeffbcross-pr-2667 |
Contributor
Author
|
thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.