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

Side by Side Diff: test/plugin_impl_test.dart

Issue 2320213003: Convert from unittest to test (Closed)
Patch Set: Created 4 years, 3 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 | « pubspec.yaml ('k') | 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) 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.operation; 5 library test.operation;
6 6
7 import 'package:plugin/plugin.dart'; 7 import 'package:plugin/plugin.dart';
8 import 'package:plugin/src/plugin_impl.dart'; 8 import 'package:plugin/src/plugin_impl.dart';
9 import 'package:unittest/unittest.dart'; 9 import 'package:test/test.dart';
10 10
11 main() { 11 main() {
12 groupSep = ' | ';
13
14 group('ExtensionManager', () { 12 group('ExtensionManager', () {
15 test('processPlugins', () { 13 test('processPlugins', () {
16 TestPlugin plugin1 = new TestPlugin('plugin1'); 14 TestPlugin plugin1 = new TestPlugin('plugin1');
17 TestPlugin plugin2 = new TestPlugin('plugin1'); 15 TestPlugin plugin2 = new TestPlugin('plugin1');
18 ExtensionManagerImpl manager = new ExtensionManagerImpl(); 16 ExtensionManagerImpl manager = new ExtensionManagerImpl();
19 manager.processPlugins([plugin1, plugin2]); 17 manager.processPlugins([plugin1, plugin2]);
20 expect(plugin1.extensionPointsRegistered, true); 18 expect(plugin1.extensionPointsRegistered, true);
21 expect(plugin1.extensionsRegistered, true); 19 expect(plugin1.extensionsRegistered, true);
22 expect(plugin2.extensionPointsRegistered, true); 20 expect(plugin2.extensionPointsRegistered, true);
23 expect(plugin2.extensionsRegistered, true); 21 expect(plugin2.extensionsRegistered, true);
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 @override 167 @override
170 void registerExtensionPoints(RegisterExtensionPoint register) { 168 void registerExtensionPoints(RegisterExtensionPoint register) {
171 extensionPointsRegistered = true; 169 extensionPointsRegistered = true;
172 } 170 }
173 171
174 @override 172 @override
175 void registerExtensions(RegisterExtension register) { 173 void registerExtensions(RegisterExtension register) {
176 extensionsRegistered = true; 174 extensionsRegistered = true;
177 } 175 }
178 } 176 }
OLDNEW
« no previous file with comments | « pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698