Fix additional strong-mode warnings. (#419)
Looks like we hadn't run the analyzer against all the top-level
libraries.
diff --git a/.analysis_options b/.analysis_options
new file mode 100644
index 0000000..a10d4c5
--- /dev/null
+++ b/.analysis_options
@@ -0,0 +1,2 @@
+analyzer:
+ strong-mode: true
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1b243c2..70a58ea 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,8 @@
+##0.11.6+4
+
+* Fix some strong mode warnings we missed in the `vm_config.dart` and
+ `html_config.dart` libraries.
+
##0.11.6+3
* Fix a bug introduced in 0.11.6+2 in which operator matchers broke when taking
diff --git a/lib/html_config.dart b/lib/html_config.dart
index c472d58..dc866a0 100644
--- a/lib/html_config.dart
+++ b/lib/html_config.dart
@@ -140,7 +140,7 @@
void onInit() {
// For Dart internal tests, we want to turn off stack frame
// filtering, which we do with this meta-header.
- var meta = querySelector('meta[name="dart.unittest"]');
+ MetaElement meta = querySelector('meta[name="dart.unittest"]');
filterStacks =
meta == null ? true : !meta.content.contains('full-stack-traces');
_installHandlers();
diff --git a/lib/vm_config.dart b/lib/vm_config.dart
index 77e91e3..de214f3 100644
--- a/lib/vm_config.dart
+++ b/lib/vm_config.dart
@@ -20,8 +20,8 @@
bool useColor;
VMConfiguration()
- : super(),
- useColor = stdioType(stdout) == StdioType.TERMINAL;
+ : useColor = stdioType(stdout) == StdioType.TERMINAL,
+ super();
String formatResult(TestCase testCase) {
String result = super.formatResult(testCase);
diff --git a/pubspec.yaml b/pubspec.yaml
index 825056b..e1f2d4d 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,5 +1,5 @@
name: unittest
-version: 0.11.6+3
+version: 0.11.6+4
author: Dart Team <misc@dartlang.org>
description: A library for writing dart unit tests.
homepage: https://github.com/dart-lang/old_unittest