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

Side by Side Diff: pkg/analysis_server/test/integration/server/shutdown_test.dart

Issue 2564863003: Get all integration tests running with the new driver (Closed)
Patch Set: Created 4 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
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.integration.server.shutdown;
6
7 import 'dart:async'; 5 import 'dart:async';
8 6
9 import 'package:test/test.dart'; 7 import 'package:test/test.dart';
10 import 'package:test_reflective_loader/test_reflective_loader.dart'; 8 import 'package:test_reflective_loader/test_reflective_loader.dart';
11 9
12 import '../integration_tests.dart'; 10 import '../integration_tests.dart';
13 11
14 main() { 12 main() {
15 defineReflectiveSuite(() { 13 defineReflectiveSuite(() {
16 defineReflectiveTests(Test); 14 defineReflectiveTests(ShutdownTest);
15 defineReflectiveTests(ShutdownTest_Driver);
17 }); 16 });
18 } 17 }
19 18
20 @reflectiveTest 19 class AbstractShutdownTest extends AbstractAnalysisServerIntegrationTest {
21 class Test extends AbstractAnalysisServerIntegrationTest {
22 test_shutdown() { 20 test_shutdown() {
23 return sendServerShutdown().then((_) { 21 return sendServerShutdown().then((_) {
24 return new Future.delayed(new Duration(seconds: 1)).then((_) { 22 return new Future.delayed(new Duration(seconds: 1)).then((_) {
25 sendServerGetVersion().then((_) { 23 sendServerGetVersion().then((_) {
26 fail('Server still alive after server.shutdown'); 24 fail('Server still alive after server.shutdown');
27 }); 25 });
28 // Give the server time to respond before terminating the test. 26 // Give the server time to respond before terminating the test.
29 return new Future.delayed(new Duration(seconds: 1)); 27 return new Future.delayed(new Duration(seconds: 1));
30 }); 28 });
31 }); 29 });
32 } 30 }
33 } 31 }
32
33 @reflectiveTest
34 class ShutdownTest extends AbstractShutdownTest {}
35
36 @reflectiveTest
37 class ShutdownTest_Driver extends AbstractShutdownTest {
38 @override
39 bool get enableNewAnalysisDriver => true;
40 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698