Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

$httpBackend cannot mock binary blob responses at IE11 (InvalidStateError) #9669

Closed
@yneves

Description

@yneves

I found this issue running tests with karma at IE11 / Win8.1.

When i try to mock a blob response with $httpBackend.expect, i got InvalidStateError.

I dig and found that this happens because of the angular.copy which clones fake response data.

If i hack angular.copy with something like this the error stops.

if (isBlob(source)) {
    destination = new Blob([source]);
} else if (isArray(source)) {

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions