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

Unified Diff: pkg/analysis_server/test/services/completion/dart/optype_test.dart

Issue 2884233004: Remove some more library directives (Closed)
Patch Set: Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analysis_server/test/services/completion/dart/optype_test.dart
diff --git a/pkg/analysis_server/test/services/completion/dart/optype_test.dart b/pkg/analysis_server/test/services/completion/dart/optype_test.dart
index 8ecdeb73fb5d6277fc4bf0aa2e5a67dc3a65f199..86aba6208b991f5188dfcfd0b82b5ca85d6724a0 100644
--- a/pkg/analysis_server/test/services/completion/dart/optype_test.dart
+++ b/pkg/analysis_server/test/services/completion/dart/optype_test.dart
@@ -2,9 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-library test.services.completion.contributor.dart.optype;
-
import 'dart:async';
+
import 'package:analysis_server/src/protocol_server.dart';
import 'package:analysis_server/src/provisional/completion/dart/completion_target.dart';
import 'package:analysis_server/src/services/completion/dart/optype.dart';
@@ -436,46 +435,6 @@ class OpTypeTest extends AbstractContextTest {
await assertOpType(returnValue: true, typeNames: true, voidReturn: true);
}
- test_catch_4a1() async {
- addTestSource('main() {try {} ^ on SomeException {}}');
- await assertOpType();
- }
-
- test_catch_4a2() async {
- addTestSource('main() {try {} c^ on SomeException {}}');
- await assertOpType();
- }
-
- test_catch_4b1() async {
- addTestSource('main() {try {} ^ catch (e) {}}');
- await assertOpType();
- }
-
- test_catch_4b2() async {
- addTestSource('main() {try {} c^ catch (e) {}}');
- await assertOpType();
- }
-
- test_catch_4c1() async {
- addTestSource('main() {try {} ^ finally {}}');
- await assertOpType();
- }
-
- test_catch_4c2() async {
- addTestSource('main() {try {} c^ finally {}}');
- await assertOpType();
- }
-
- test_catch_5a() async {
- addTestSource('main() {try {} on ^ finally {}}');
- await assertOpType(typeNames: true);
- }
-
- test_catch_5b() async {
- addTestSource('main() {try {} on E^ finally {}}');
- await assertOpType(typeNames: true);
- }
-
test_Block_empty() async {
// Block BlockFunctionBody MethodDeclaration ClassDeclaration
addTestSource('class A extends E implements I with M {a() {^}}');
@@ -570,6 +529,46 @@ class OpTypeTest extends AbstractContextTest {
await assertOpType(returnValue: true, typeNames: true, voidReturn: true);
}
+ test_catch_4a1() async {
+ addTestSource('main() {try {} ^ on SomeException {}}');
+ await assertOpType();
+ }
+
+ test_catch_4a2() async {
+ addTestSource('main() {try {} c^ on SomeException {}}');
+ await assertOpType();
+ }
+
+ test_catch_4b1() async {
+ addTestSource('main() {try {} ^ catch (e) {}}');
+ await assertOpType();
+ }
+
+ test_catch_4b2() async {
+ addTestSource('main() {try {} c^ catch (e) {}}');
+ await assertOpType();
+ }
+
+ test_catch_4c1() async {
+ addTestSource('main() {try {} ^ finally {}}');
+ await assertOpType();
+ }
+
+ test_catch_4c2() async {
+ addTestSource('main() {try {} c^ finally {}}');
+ await assertOpType();
+ }
+
+ test_catch_5a() async {
+ addTestSource('main() {try {} on ^ finally {}}');
+ await assertOpType(typeNames: true);
+ }
+
+ test_catch_5b() async {
+ addTestSource('main() {try {} on E^ finally {}}');
+ await assertOpType(typeNames: true);
+ }
+
test_CatchClause_onType() async {
// TypeName CatchClause TryStatement
addTestSource('class A {a() {try{var x;} on ^ {}}}');

Powered by Google App Engine
This is Rietveld 408576698