Skip to content

Commit ec3903d

Browse files
author
sgrekhov
committed
Fixes #1308. Make UriData tests case-insensitive
1 parent d9527f1 commit ec3903d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

LibTest/core/Uri/Uri.dataFromBytes_A01_t02.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ check(List<int> data, String mType) {
3333
Uri uri = new Uri.dataFromBytes(data, mimeType: mType);
3434

3535
Expect.equals(base64.encode(data), uri.data?.contentText);
36-
Expect.equals(mType, uri.data?.mimeType);
36+
Expect.equals(mType.toLowerCase(), uri.data?.mimeType);
3737

3838
Expect.equals("data", uri.scheme);
3939
Expect.equals("", uri.userInfo);

LibTest/core/UriData/UriData.fromBytes_A01_t02.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ check(List<int> bytes, String mType) {
2323
UriData uriData = new UriData.fromBytes(bytes, mimeType: mType);
2424

2525
Expect.equals(base64.encode(bytes), uriData.contentText);
26-
Expect.equals(mType, uriData.mimeType);
26+
Expect.equals(mType.toLowerCase(), uriData.mimeType);
2727
}
2828

2929
main() {

0 commit comments

Comments
 (0)