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

Unified Diff: tests/compiler/dart2js_native/native_exceptions1_frog_test.dart

Issue 421483002: Remove old frog-style dummy bodies from dart2js native class tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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: tests/compiler/dart2js_native/native_exceptions1_frog_test.dart
diff --git a/tests/compiler/dart2js_native/native_exceptions1_frog_test.dart b/tests/compiler/dart2js_native/native_exceptions1_frog_test.dart
index aa3c3d66e882f1b6f4bb43a64be35a060cf47bdb..222894f667785545f119845e754245f5bd8e0a24 100644
--- a/tests/compiler/dart2js_native/native_exceptions1_frog_test.dart
+++ b/tests/compiler/dart2js_native/native_exceptions1_frog_test.dart
@@ -28,10 +28,10 @@ class E {
// Type with exception-throwing methods.
@Native("A")
class A {
- op(int x) native {
- // Fake body calls constructor to mark the exception class (E) as used.
- throw new E._used();
- }
+ // Exception class E is created.
+ @Creates("E")
+ @Returns('int')
+ op(int x) native;
}
// This class is here just so that a dynamic context is polymorphic.

Powered by Google App Engine
This is Rietveld 408576698