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

Unified Diff: editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/internal/text/SemanticHighlightingTest.java

Issue 11418186: Issue 5359. Highlight 'on' in try-catch statement. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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.tools.ui_test/src/com/google/dart/tools/ui/internal/text/SemanticHighlightingTest.java
diff --git a/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/internal/text/SemanticHighlightingTest.java b/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/internal/text/SemanticHighlightingTest.java
index 47df3b31c7ef442e132af04bd335a1bc58af152e..01b95d0afed321e8543b8eecf27c222430454e1e 100644
--- a/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/internal/text/SemanticHighlightingTest.java
+++ b/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/internal/text/SemanticHighlightingTest.java
@@ -200,6 +200,21 @@ public class SemanticHighlightingTest extends AbstractDartTest {
assertNoWordPosition(SemanticHighlightings.BUILT_IN, "implements = 0;");
}
+ public void test_builtIn_on() throws Exception {
+ preparePositions(
+ "// filler filler filler filler filler filler filler filler filler filler",
+ "class E1 {}",
+ "class E2 {}",
+ "main() {",
+ " try {",
+ " } on E1 catch (e) {",
+ " } on E2 catch (e) {",
+ " }",
+ "");
+ assertHasWordPosition(SemanticHighlightings.BUILT_IN, "on E1");
+ assertHasWordPosition(SemanticHighlightings.BUILT_IN, "on E2");
+ }
+
public void test_builtIn_operator_method() throws Exception {
preparePositions(
"// filler filler filler filler filler filler filler filler filler filler",
« no previous file with comments | « editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/SemanticHighlightings.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698