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

Side by Side Diff: pkg/analysis_server/test/completion_test.dart

Issue 1465143003: (TBR) update completion test to expect pass now that this is fixed #23001 (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library test.completion.support; 5 library test.completion.support;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 9
10 import 'package:unittest/unittest.dart'; 10 import 'package:unittest/unittest.dart';
(...skipping 2101 matching lines...) Expand 10 before | Expand all | Expand 10 after
2112 import 'dart:math' as math show PI; 2112 import 'dart:math' as math show PI;
2113 main() { 2113 main() {
2114 math.!1 2114 math.!1
2115 }''', 2115 }''',
2116 <String>["1+PI", "1-LN10"], 2116 <String>["1+PI", "1-LN10"],
2117 failingTests: '1'); 2117 failingTests: '1');
2118 2118
2119 sources.clear(); 2119 sources.clear();
2120 sources["/lib.dart"] = ''' 2120 sources["/lib.dart"] = '''
2121 library lib 2121 library lib
2122 class _A 2122 class _A
2123 foo() {} 2123 foo() {}
2124 2124
2125 class A extends _A { 2125 class A extends _A {
2126 }'''; 2126 }''';
2127 buildTests( 2127 buildTests(
2128 'test_memberOfPrivateClass_otherLibrary', 2128 'test_memberOfPrivateClass_otherLibrary',
2129 ''' 2129 '''
2130 import 'lib.dart'; 2130 import 'lib.dart';
2131 main(A a) { 2131 main(A a) {
2132 a.!1 2132 a.!1
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
2844 test() { 2844 test() {
2845 topvar.!1top(); 2845 topvar.!1top();
2846 field.!2top(); 2846 field.!2top();
2847 } 2847 }
2848 }''', 2848 }''',
2849 <String>["1+top", "2+top"], 2849 <String>["1+top", "2+top"],
2850 failingTests: '12'); 2850 failingTests: '12');
2851 2851
2852 // test analysis of untyped fields and top-level vars 2852 // test analysis of untyped fields and top-level vars
2853 buildTests('test035', '''class Y {final x='hi';mth() {x.!1length;}}''', 2853 buildTests('test035', '''class Y {final x='hi';mth() {x.!1length;}}''',
2854 <String>["1+length"], failingTests: '1'); 2854 <String>["1+length"]);
2855 2855
2856 // TODO(scheglov) decide what to do with Type for untyped field (not 2856 // TODO(scheglov) decide what to do with Type for untyped field (not
2857 // supported by the new store) 2857 // supported by the new store)
2858 // test analysis of untyped fields and top-level vars 2858 // test analysis of untyped fields and top-level vars
2859 buildTests( 2859 buildTests(
2860 'test036', 2860 'test036',
2861 ''' 2861 '''
2862 class A1 { 2862 class A1 {
2863 var field; 2863 var field;
2864 A1() : field = 0; 2864 A1() : field = 0;
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
2992 } else { 2992 } else {
2993 ++expectedPassCount; 2993 ++expectedPassCount;
2994 tester(testName, () { 2994 tester(testName, () {
2995 CompletionTestCase test = new CompletionTestCase(); 2995 CompletionTestCase test = new CompletionTestCase();
2996 return test.runTest(spec, extraFiles); 2996 return test.runTest(spec, extraFiles);
2997 }); 2997 });
2998 } 2998 }
2999 } 2999 }
3000 } 3000 }
3001 } 3001 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698