Skip to content

Commit

Permalink
a few more small tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tarrinneal committed May 23, 2023
1 parent 34a83bc commit 06a99b3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -908,6 +908,7 @@ void main() {
'maxHeight': null,
'imageQuality': null,
'requestFullMetadata': true,
'allowMultiple': true
}),
],
);
Expand Down Expand Up @@ -966,42 +967,49 @@ void main() {
'maxHeight': null,
'imageQuality': null,
'requestFullMetadata': true,
'allowMultiple': true
}),
const _LoggedMethodCall('pickMedia', arguments: <String, dynamic>{
'maxWidth': 10.0,
'maxHeight': null,
'imageQuality': null,
'requestFullMetadata': true,
'allowMultiple': true
}),
const _LoggedMethodCall('pickMedia', arguments: <String, dynamic>{
'maxWidth': null,
'maxHeight': 10.0,
'imageQuality': null,
'requestFullMetadata': true,
'allowMultiple': true
}),
const _LoggedMethodCall('pickMedia', arguments: <String, dynamic>{
'maxWidth': 10.0,
'maxHeight': 20.0,
'imageQuality': null,
'requestFullMetadata': true,
'allowMultiple': true
}),
const _LoggedMethodCall('pickMedia', arguments: <String, dynamic>{
'maxWidth': 10.0,
'maxHeight': null,
'imageQuality': 70,
'requestFullMetadata': true,
'allowMultiple': true
}),
const _LoggedMethodCall('pickMedia', arguments: <String, dynamic>{
'maxWidth': null,
'maxHeight': 10.0,
'imageQuality': 70,
'requestFullMetadata': true,
'allowMultiple': true
}),
const _LoggedMethodCall('pickMedia', arguments: <String, dynamic>{
'maxWidth': 10.0,
'maxHeight': 20.0,
'imageQuality': 70,
'requestFullMetadata': true,
'allowMultiple': true
}),
],
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ class MethodChannelImagePicker extends ImagePickerPlatform {
'maxImageWidth': maxImageWidth,
'maxImageHeight': maxImageHeight,
'imageQuality': imageQuality,
'allowMultiple': options.allowMultiple,
};
List<String>? paths;
paths = await _channel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -884,10 +884,7 @@ void main() {
'maxImageWidth': null,
'maxImageHeight': null,
'imageQuality': null,
'types': <String>[
'image',
'video',
],
'allowMultiple': true,
}),
],
);
Expand Down Expand Up @@ -928,37 +925,25 @@ void main() {
'maxImageWidth': null,
'maxImageHeight': null,
'imageQuality': null,
'types': <String>[
'image',
'video',
],
'allowMultiple': true,
}),
isMethodCall('pickMedia', arguments: <String, dynamic>{
'maxImageWidth': 10.0,
'maxImageHeight': null,
'imageQuality': null,
'types': <String>[
'image',
'video',
],
'allowMultiple': true,
}),
isMethodCall('pickMedia', arguments: <String, dynamic>{
'maxImageWidth': null,
'maxImageHeight': 10.0,
'imageQuality': null,
'types': <String>[
'image',
'video',
],
'allowMultiple': true,
}),
isMethodCall('pickMedia', arguments: <String, dynamic>{
'maxImageWidth': null,
'maxImageHeight': null,
'imageQuality': 70,
'types': <String>[
'image',
'video',
],
'allowMultiple': true,
}),
],
);
Expand Down

0 comments on commit 06a99b3

Please sign in to comment.