Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(876)

Unified Diff: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/StaticWarningCodeTest.java

Issue 32693003: Fix issue 13575 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: second attempt Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/StaticWarningCodeTest.java
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/StaticWarningCodeTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/StaticWarningCodeTest.java
index dd14d3e2f0e5890f4dc5c54546d9182e25b2ab9c..85f3fba8cded9beb0b1c4931ccf157b075a53f1e 100644
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/StaticWarningCodeTest.java
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/StaticWarningCodeTest.java
@@ -2221,44 +2221,6 @@ public class StaticWarningCodeTest extends ResolverTestCase {
verify(source);
}
- public void test_undefinedIdentifier_hideInBlock_function() throws Exception {
- Source source = addSource(createSource(//
- "var v = 1;",
- "main() {",
- " print(v);",
- " v() {}",
- "}",
- "print(x) {}"));
- resolve(source);
- assertErrors(source, StaticWarningCode.UNDEFINED_IDENTIFIER);
- }
-
- public void test_undefinedIdentifier_hideInBlock_local() throws Exception {
- Source source = addSource(createSource(//
- "var v = 1;",
- "main() {",
- " print(v);",
- " var v = 2;",
- "}",
- "print(x) {}"));
- resolve(source);
- assertErrors(source, StaticWarningCode.UNDEFINED_IDENTIFIER);
- }
-
- public void test_undefinedIdentifier_hideInBlock_subBlock() throws Exception {
- Source source = addSource(createSource(//
- "var v = 1;",
- "main() {",
- " {",
- " print(v);",
- " }",
- " var v = 2;",
- "}",
- "print(x) {}"));
- resolve(source);
- assertErrors(source, StaticWarningCode.UNDEFINED_IDENTIFIER);
- }
-
public void test_undefinedIdentifier_initializer() throws Exception {
Source source = addSource(createSource(//
"var a = b;"));

Powered by Google App Engine
This is Rietveld 408576698