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

Side by Side Diff: pkg/analyzer/test/generated/all_the_rest_test.dart

Issue 2627083003: Replace reset() arguments with resetWith() invocation. (Closed)
Patch Set: Remove commented code. Created 3 years, 11 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 unified diff | Download patch
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/compile_time_error_code_test.dart » ('j') | 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 analyzer.test.generated.all_the_rest_test; 5 library analyzer.test.generated.all_the_rest_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analyzer/dart/ast/ast.dart'; 9 import 'package:analyzer/dart/ast/ast.dart';
10 import 'package:analyzer/dart/ast/token.dart'; 10 import 'package:analyzer/dart/ast/token.dart';
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 class ElementLocatorTest extends ResolverTestCase { 355 class ElementLocatorTest extends ResolverTestCase {
356 void fail_locate_Identifier_partOfDirective() { 356 void fail_locate_Identifier_partOfDirective() {
357 // Can't resolve the library element without the library declaration. 357 // Can't resolve the library element without the library declaration.
358 // AstNode id = findNodeIn("foo", "part of foo.bar;"); 358 // AstNode id = findNodeIn("foo", "part of foo.bar;");
359 // Element element = ElementLocator.locate(id); 359 // Element element = ElementLocator.locate(id);
360 // assertInstanceOf(LibraryElement.class, element); 360 // assertInstanceOf(LibraryElement.class, element);
361 fail("Test this case"); 361 fail("Test this case");
362 } 362 }
363 363
364 @override 364 @override
365 void reset({List<List<String>> packages}) { 365 void reset() {
366 AnalysisOptionsImpl analysisOptions = new AnalysisOptionsImpl(); 366 AnalysisOptionsImpl analysisOptions = new AnalysisOptionsImpl();
367 analysisOptions.hint = false; 367 analysisOptions.hint = false;
368 resetWithOptions(analysisOptions); 368 resetWith(options: analysisOptions);
369 } 369 }
370 370
371 test_locate_AssignmentExpression() async { 371 test_locate_AssignmentExpression() async {
372 AstNode id = await _findNodeIn( 372 AstNode id = await _findNodeIn(
373 "+=", 373 "+=",
374 r''' 374 r'''
375 int x = 0; 375 int x = 0;
376 void main() { 376 void main() {
377 x += 1; 377 x += 1;
378 }'''); 378 }''');
(...skipping 1893 matching lines...) Expand 10 before | Expand all | Expand 10 after
2272 expect(UriKind.fromEncoding(0x70), same(UriKind.PACKAGE_URI)); 2272 expect(UriKind.fromEncoding(0x70), same(UriKind.PACKAGE_URI));
2273 expect(UriKind.fromEncoding(0x58), same(null)); 2273 expect(UriKind.fromEncoding(0x58), same(null));
2274 } 2274 }
2275 2275
2276 test_getEncoding() async { 2276 test_getEncoding() async {
2277 expect(UriKind.DART_URI.encoding, 0x64); 2277 expect(UriKind.DART_URI.encoding, 0x64);
2278 expect(UriKind.FILE_URI.encoding, 0x66); 2278 expect(UriKind.FILE_URI.encoding, 0x66);
2279 expect(UriKind.PACKAGE_URI.encoding, 0x70); 2279 expect(UriKind.PACKAGE_URI.encoding, 0x70);
2280 } 2280 }
2281 } 2281 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/compile_time_error_code_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698