Index: test/rule_test.dart |
diff --git a/test/rule_test.dart b/test/rule_test.dart |
index aeace1606548607d944a270e4b8c84a2da5594cf..5ccc256273d3a6d0080eeb438d32453956e787c5 100644 |
--- a/test/rule_test.dart |
+++ b/test/rule_test.dart |
@@ -188,15 +188,7 @@ defineRuleUnitTests() { |
]; |
testEach(good, isLowerCaseUnderScoreWithDots, isTrue); |
- var bad = [ |
- 'Foo', |
- 'fooBar.', |
- '.foo_Bar', |
- '_f', |
- 'F_B', |
- 'JS', |
- 'JSON' |
- ]; |
+ var bad = ['Foo', 'fooBar.', '.foo_Bar', '_f', 'F_B', 'JS', 'JSON']; |
testEach(bad, isLowerCaseUnderScoreWithDots, isFalse); |
}); |
group('lowerCamelCase', () { |
@@ -286,6 +278,15 @@ defineSanityTests() { |
throwsA(new isInstanceOf<TestFailure>())); |
}); |
}); |
+ |
+ group('reporting', () { |
+ //https://github.com/dart-lang/linter/issues/193 |
+ group('ignore synthetic nodes', () { |
+ String path = p.join('test', '_data', 'synthetic', 'synthetic.dart'); |
+ File file = new File(path); |
+ testRule('non_constant_identifier_names', file); |
+ }); |
+ }); |
} |
/// Handy for debugging. |