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

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

Issue 2623253003: Extract x_Driver tests that time out on Windows bots. (Closed)
Patch Set: 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
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.static_warning_code_test; 5 library analyzer.test.generated.static_warning_code_test;
6 6
7 import 'package:analyzer/error/error.dart'; 7 import 'package:analyzer/error/error.dart';
8 import 'package:analyzer/src/error/codes.dart'; 8 import 'package:analyzer/src/error/codes.dart';
9 import 'package:analyzer/src/generated/engine.dart'; 9 import 'package:analyzer/src/generated/engine.dart';
10 import 'package:analyzer/src/generated/source_io.dart'; 10 import 'package:analyzer/src/generated/source_io.dart';
11 import 'package:test/test.dart'; 11 import 'package:test/test.dart';
12 import 'package:test_reflective_loader/test_reflective_loader.dart'; 12 import 'package:test_reflective_loader/test_reflective_loader.dart';
13 13
14 import 'resolver_test_case.dart'; 14 import 'resolver_test_case.dart';
15 15
16 main() { 16 main() {
17 defineReflectiveSuite(() { 17 defineReflectiveSuite(() {
18 defineReflectiveTests(StaticWarningCodeTest); 18 defineReflectiveTests(StaticWarningCodeTest);
19 defineReflectiveTests(StaticWarningCodeTest_Driver);
20 }); 19 });
21 } 20 }
22 21
23 @reflectiveTest 22 @reflectiveTest
24 class StaticWarningCodeTest extends ResolverTestCase { 23 class StaticWarningCodeTest extends ResolverTestCase {
25 fail_argumentTypeNotAssignable_tearOff_required() async { 24 fail_argumentTypeNotAssignable_tearOff_required() async {
26 Source source = addSource(r''' 25 Source source = addSource(r'''
27 class C { 26 class C {
28 Object/*=T*/ f/*<T>*/(Object/*=T*/ x) => x; 27 Object/*=T*/ f/*<T>*/(Object/*=T*/ x) => x;
29 } 28 }
(...skipping 3677 matching lines...) Expand 10 before | Expand all | Expand 10 after
3707 3706
3708 test_voidReturnForGetter() async { 3707 test_voidReturnForGetter() async {
3709 Source source = addSource(r''' 3708 Source source = addSource(r'''
3710 class S { 3709 class S {
3711 void get value {} 3710 void get value {}
3712 }'''); 3711 }''');
3713 await computeAnalysisResult(source); 3712 await computeAnalysisResult(source);
3714 assertErrors(source, [StaticWarningCode.VOID_RETURN_FOR_GETTER]); 3713 assertErrors(source, [StaticWarningCode.VOID_RETURN_FOR_GETTER]);
3715 } 3714 }
3716 } 3715 }
3717
3718 @reflectiveTest
3719 class StaticWarningCodeTest_Driver extends StaticWarningCodeTest {
3720 @override
3721 bool get enableNewAnalysisDriver => true;
3722
3723 @failingTest
3724 @override
3725 test_argumentTypeNotAssignable_ambiguousClassName() {
3726 return super.test_argumentTypeNotAssignable_ambiguousClassName();
3727 }
3728
3729 @failingTest
3730 @override
3731 test_importOfNonLibrary() {
3732 return super.test_importOfNonLibrary();
3733 }
3734 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/generated/static_warning_code_driver_test.dart ('k') | pkg/analyzer/test/generated/test_all.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698