Enable more web tests; use blacklist to filter them out (#41922)

Add more web tests;use blacklist instead of whitelist
This commit is contained in:
Yegor
2019-10-07 15:05:24 -07:00
committed by GitHub
parent cf0d4979c7
commit ebfe6020b8
4 changed files with 27 additions and 21 deletions

View File

@@ -1026,8 +1026,8 @@ double _sizeDistance(Size a, Size b) {
/// The distance is computed by a [DistanceFunction].
///
/// If `distanceFunction` is null, a standard distance function is used for the
/// `runtimeType` of the `from` argument. Standard functions are defined for
/// the following types:
/// `T` generic argument. Standard functions are defined for the following
/// types:
///
/// * [Color], whose distance is the maximum component-wise delta.
/// * [Offset], whose distance is the Euclidean distance computed using the
@@ -1050,7 +1050,7 @@ Matcher within<T>({
@required T from,
DistanceFunction<T> distanceFunction,
}) {
distanceFunction ??= _kStandardDistanceFunctions[from.runtimeType];
distanceFunction ??= _kStandardDistanceFunctions[T];
if (distanceFunction == null) {
throw ArgumentError(