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

Side by Side Diff: pkg/analyzer/test/src/summary/summary_test.dart

Issue 1468623002: Revert "Fix test failures on the bots" (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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.src.serialization.elements_test; 5 library test.src.serialization.elements_test;
6 6
7 import 'dart:typed_data'; 7 import 'dart:typed_data';
8 8
9 import 'package:analyzer/src/generated/element.dart'; 9 import 'package:analyzer/src/generated/element.dart';
10 import 'package:analyzer/src/generated/engine.dart'; 10 import 'package:analyzer/src/generated/engine.dart';
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 if (!allowErrors) { 60 if (!allowErrors) {
61 assertNoErrors(source); 61 assertNoErrors(source);
62 } 62 }
63 serializeLibraryElement(library); 63 serializeLibraryElement(library);
64 expect(unlinked.imports.length, lib.importDependencies.length); 64 expect(unlinked.imports.length, lib.importDependencies.length);
65 expect(unlinked.references.length, lib.references.length); 65 expect(unlinked.references.length, lib.references.length);
66 } 66 }
67 67
68 @override 68 @override
69 void setUp() { 69 void setUp() {
70 super.setUp();
71 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); 70 AnalysisOptionsImpl options = new AnalysisOptionsImpl();
72 options.enableGenericMethods = true; 71 options.enableGenericMethods = true;
73 resetWithOptions(options); 72 resetWithOptions(options);
74 } 73 }
75 74
76 test_class_no_superclass() { 75 test_class_no_superclass() {
77 UnlinkedClass cls = serializeClassElement(typeProvider.objectType.element); 76 UnlinkedClass cls = serializeClassElement(typeProvider.objectType.element);
78 expect(cls.supertype, isNull); 77 expect(cls.supertype, isNull);
79 } 78 }
80 } 79 }
(...skipping 1764 matching lines...) Expand 10 before | Expand all | Expand 10 after
1845 serializeClassText('class C { static int i; }').fields[0]; 1844 serializeClassText('class C { static int i; }').fields[0];
1846 expect(variable.isStatic, isTrue); 1845 expect(variable.isStatic, isTrue);
1847 } 1846 }
1848 1847
1849 test_variable_type() { 1848 test_variable_type() {
1850 UnlinkedVariable variable = 1849 UnlinkedVariable variable =
1851 serializeVariableText('int i;', variableName: 'i'); 1850 serializeVariableText('int i;', variableName: 'i');
1852 checkTypeRef(variable.type, 'dart:core', 'dart:core', 'int'); 1851 checkTypeRef(variable.type, 'dart:core', 'dart:core', 'int');
1853 } 1852 }
1854 } 1853 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/src/context/abstract_context.dart ('k') | pkg/analyzer/test/src/task/strong/strong_test_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698