Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
change loadRequest escapes # correctly test to text/html
  • Loading branch information
FlafyDev committed Jun 18, 2022
commit 95fd76b2d93227737183ffdbc8d346745d3d676b
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ void main() {
);
final MockHttpRequest mockHttpRequest = MockHttpRequest();
when(mockHttpRequest.getResponseHeader('content-type'))
.thenReturn('text/plain');
.thenReturn('text/html');
when(mockHttpRequest.responseText).thenReturn('#');
final MockHttpRequestFactory mockHttpRequestFactory =
MockHttpRequestFactory();
Expand All @@ -172,7 +172,7 @@ void main() {
headers: <String, String>{'Foo': 'Bar'}),
);
// Verify
verify(mockElement.src = 'data:text/plain;charset=utf-8,%23');
verify(mockElement.src = 'data:text/html;charset=utf-8,%23');
});
});
});
Expand Down