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

Unified Diff: pkg/analyzer/test/generated/element_test.dart

Issue 285423002: New analyzer snapshot (with CaughtException). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Replace AnalysisException with CaughtException Created 6 years, 7 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
« no previous file with comments | « pkg/analyzer/test/generated/ast_test.dart ('k') | pkg/analyzer/test/generated/resolver_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/generated/element_test.dart
diff --git a/pkg/analyzer/test/generated/element_test.dart b/pkg/analyzer/test/generated/element_test.dart
index b53ce4c471e2ed387508fd4afbd9dcdfdfad5a78..9cbb1e664719b927b15ac34feb64c15456901797 100644
--- a/pkg/analyzer/test/generated/element_test.dart
+++ b/pkg/analyzer/test/generated/element_test.dart
@@ -1078,6 +1078,15 @@ class ElementLocationImplTest extends EngineTestCase {
JUnitTestCase.assertEquals(encoding, location.encoding);
}
+ /**
+ * For example unnamed constructor.
+ */
+ void test_create_encoding_emptyLast() {
+ String encoding = "a;b;c;";
+ ElementLocationImpl location = new ElementLocationImpl.con2(encoding);
+ JUnitTestCase.assertEquals(encoding, location.encoding);
+ }
+
void test_equals_equal() {
String encoding = "a;b;c";
ElementLocationImpl first = new ElementLocationImpl.con2(encoding);
@@ -1143,6 +1152,10 @@ class ElementLocationImplTest extends EngineTestCase {
final __test = new ElementLocationImplTest();
runJUnitTest(__test, __test.test_create_encoding);
});
+ _ut.test('test_create_encoding_emptyLast', () {
+ final __test = new ElementLocationImplTest();
+ runJUnitTest(__test, __test.test_create_encoding_emptyLast);
+ });
_ut.test('test_equals_equal', () {
final __test = new ElementLocationImplTest();
runJUnitTest(__test, __test.test_equals_equal);
« no previous file with comments | « pkg/analyzer/test/generated/ast_test.dart ('k') | pkg/analyzer/test/generated/resolver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698