Skip to content

Commit 02a26ac

Browse files
authored
Fix fuzzy arrow warnings since they will become errors before too long. (#719)
* Fix fuzzy arrow warnings since they will become errors before too long. * Keep type on _onMessage() parameter.
1 parent ec1b576 commit 02a26ac

File tree

5 files changed

+4
-6
lines changed

5 files changed

+4
-6
lines changed

lib/src/runner/browser/browser_manager.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ class BrowserManager {
188188
}));
189189

190190
_environment = _loadBrowserEnvironment();
191-
_channel.stream.listen(_onMessage, onDone: close);
191+
_channel.stream.listen((message) => _onMessage(message), onDone: close);
192192
}
193193

194194
/// Loads [_BrowserEnvironment].

lib/src/runner/configuration/load.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,8 @@ class _ConfigurationLoader {
286286

287287
var paths = _getList("paths", (pathNode) {
288288
_validate(pathNode, "Paths must be strings.", (value) => value is String);
289-
_validate(pathNode, "Paths must be relative.", p.url.isRelative);
289+
_validate(pathNode, "Paths must be relative.",
290+
(value) => p.url.isRelative(value));
290291

291292
return _parseNode(pathNode, "path", p.fromUri);
292293
});

lib/src/runner/loader.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import '../backend/group.dart';
1515
import '../backend/invoker.dart';
1616
import '../backend/test_platform.dart';
1717
import '../util/io.dart';
18-
import '../utils.dart';
1918
import 'browser/platform.dart';
2019
import 'configuration.dart';
2120
import 'configuration/suite.dart';

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: test
2-
version: 0.12.27
2+
version: 0.12.27+1
33
author: Dart Team <[email protected]>
44
description: A library for writing dart unit tests.
55
homepage: https://github.com/dart-lang/test

test/frontend/add_tear_down_test.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ import 'dart:async';
77
import 'package:async/async.dart';
88
import 'package:test/test.dart';
99

10-
import 'package:test/src/backend/declarer.dart';
11-
1210
import '../utils.dart';
1311

1412
void main() {

0 commit comments

Comments
 (0)