Skip to content

Commit

Permalink
More CFE tests for server
Browse files Browse the repository at this point in the history
Change-Id: I829032909ce3c9244c8b204ca12b8aeef61e997e
Reviewed-on: https://dart-review.googlesource.com/68844
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
  • Loading branch information
bwilkerson authored and commit-bot@chromium.org committed Aug 8, 2018
1 parent 6879e4c commit 19a90c2
Show file tree
Hide file tree
Showing 8 changed files with 328 additions and 170 deletions.
19 changes: 19 additions & 0 deletions pkg/analysis_server/test/plugin/protocol_dart_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import '../abstract_context.dart';
main() {
defineReflectiveSuite(() {
defineReflectiveTests(ElementTest);
defineReflectiveTests(ElementTest_UseCFE);
defineReflectiveTests(ElementKindTest);
});
}
Expand Down Expand Up @@ -511,3 +512,21 @@ class A {
expect(element.flags, 0);
}
}

@reflectiveTest
class ElementTest_UseCFE extends ElementTest {
@override
bool get useCFE => true;

@failingTest
@override
test_fromElement_ENUM() => super.test_fromElement_ENUM();

@failingTest
@override
test_fromElement_ENUM_CONSTANT() => super.test_fromElement_ENUM_CONSTANT();

@failingTest
@override
test_fromElement_LABEL() => super.test_fromElement_LABEL();
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import '../../abstract_context.dart';
main() {
defineReflectiveSuite(() {
defineReflectiveTests(ClosingLabelsComputerTest);
defineReflectiveTests(ClosingLabelsComputerTest_UseCFE);
});
}

Expand Down Expand Up @@ -406,3 +407,13 @@ void myMethod() {
return computer.compute();
}
}

@reflectiveTest
class ClosingLabelsComputerTest_UseCFE extends ClosingLabelsComputerTest {
@override
bool get useCFE => true;

@failingTest
@override
test_knownBadCode1() => super.test_knownBadCode1();
}
Loading

0 comments on commit 19a90c2

Please sign in to comment.