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

Unified Diff: pkg/analysis_server/test/protocol_server_test.dart

Issue 662013002: update protocol server getter test (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge Created 6 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
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/test_support.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/protocol_server_test.dart
diff --git a/pkg/analysis_server/test/protocol_server_test.dart b/pkg/analysis_server/test/protocol_server_test.dart
index 7b704ca3acea342c723fd68178a46c5e717a4e4a..ca6198de47655e9687751a2bafbb41ca7baed8b1 100644
--- a/pkg/analysis_server/test/protocol_server_test.dart
+++ b/pkg/analysis_server/test/protocol_server_test.dart
@@ -243,6 +243,7 @@ abstract class _MyClass {}''');
expect(location.startLine, 2);
expect(location.startColumn, 16);
}
+ expect(element.parameters, isNull);
expect(
element.flags,
Element.FLAG_ABSTRACT | Element.FLAG_DEPRECATED | Element.FLAG_PRIVATE);
@@ -300,7 +301,7 @@ class A {
void test_fromElement_GETTER() {
engine.Source source = addSource('/test.dart', '''
class A {
- String myGetter => 42;
+ String get myGetter => 42;
}''');
engine.CompilationUnit unit = resolveLibraryUnit(source);
engine.PropertyAccessorElement engineElement =
@@ -312,10 +313,10 @@ class A {
{
Location location = element.location;
expect(location.file, '/test.dart');
- expect(location.offset, 19);
+ expect(location.offset, 23);
expect(location.length, 'myGetter'.length);
expect(location.startLine, 2);
- expect(location.startColumn, 10);
+ expect(location.startColumn, 14);
}
expect(element.parameters, '()');
expect(element.returnType, 'String');
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/test_support.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698