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

Unified Diff: dart/tests/compiler/dart2js/patch_test.dart

Issue 11348037: A method or accessor with empty body is implicitly abstract. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Changes to make unit tests pass Created 8 years, 2 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
« no previous file with comments | « dart/tests/co19/co19-dart2js.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tests/compiler/dart2js/patch_test.dart
diff --git a/dart/tests/compiler/dart2js/patch_test.dart b/dart/tests/compiler/dart2js/patch_test.dart
index a727f7890204829ae4c69fc9243d5c96a98b0e18..9770b3f955b328e348df9eda111ba88038be2862 100644
--- a/dart/tests/compiler/dart2js/patch_test.dart
+++ b/dart/tests/compiler/dart2js/patch_test.dart
@@ -34,11 +34,7 @@ void expectHasBody(compiler, Element element) {
void expectHasNoBody(compiler, Element element) {
var node = element.parseNode(compiler);
Expect.isNotNull(node, "Element isn't parseable, when a body was expected");
- Expect.isNotNull(node.body);
- // If the element has no body it is a Block with identical begin and end
- // tokens (the semicolon).
- Expect.isTrue(node.body is Block);
- Expect.identical(node.body.getBeginToken(), node.body.getEndToken());
+ Expect.isFalse(node.hasBody());
}
Element ensure(compiler,
« no previous file with comments | « dart/tests/co19/co19-dart2js.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698