From 64f75399efce50ed663406e219f0b558647889ad Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Mon, 21 Sep 2015 10:49:19 -0700 Subject: [PATCH] Some cleanup of the Sky analyzer script * If no source path is provided, then run the analyzer on the Sky unit tests * Fix the filter for errors found in pub cache packages * Generalize the filter for the analyzer's "xx errors/warnings/hints found" status message Also fix a test that caused a warning in the analyzer. --- packages/unit/.analysis_options | 3 --- packages/unit/test/engine/append_child_test.dart | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) delete mode 100644 packages/unit/.analysis_options diff --git a/packages/unit/.analysis_options b/packages/unit/.analysis_options deleted file mode 100644 index 5b682d4d29..0000000000 --- a/packages/unit/.analysis_options +++ /dev/null @@ -1,3 +0,0 @@ -analyzer: - exclude: - - 'test/engine/append_child_test.dart' diff --git a/packages/unit/test/engine/append_child_test.dart b/packages/unit/test/engine/append_child_test.dart index 2fc1e41f4b..e6c614c329 100644 --- a/packages/unit/test/engine/append_child_test.dart +++ b/packages/unit/test/engine/append_child_test.dart @@ -10,7 +10,7 @@ void main() { test("should throw with invalid arguments", () { var parent = document.createElement("div"); expect(() { - parent.appendChild(); + Function.apply(parent.appendChild, []); }, throws); expect(() { parent.appendChild(null);