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

Unified Diff: frog/tests/frog/native_named_constructors1_frog_test.dart

Issue 10548047: Remove frog from the repository. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Move test and update apidoc.gyp. Created 8 years, 6 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: frog/tests/frog/native_named_constructors1_frog_test.dart
diff --git a/frog/tests/frog/native_named_constructors1_frog_test.dart b/frog/tests/frog/native_named_constructors1_frog_test.dart
deleted file mode 100644
index 30c47acb61f12600fe932b789a1401d499d14502..0000000000000000000000000000000000000000
--- a/frog/tests/frog/native_named_constructors1_frog_test.dart
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
-// 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('X');
-#native('native_named_constructors1_frog_test.js'); // Defines JS constructor 'A'.
-
-// The native class has several constructors which partition the behaviour of
-// the JS constructor function into several well-typed Dart constructors.
-
-class A native "A" {
-
- // factory constructors allow us to do computation ahead of the allocation.
- factory A(int len) { return _construct(len); }
-
- factory A.fromString(String s) {
- return _construct(s.length); // convert string to int.
- }
-
- // Helper that does the actual allocation and construction.
- static A _construct(v) native @'return new A(v);';
-
- foo() native 'return this._x;';
-}
-
-main() {
- var a1 = new A(100);
- var a2 = new A.fromString('Hello');
-
- Expect.equals(100, a1.foo());
- Expect.equals(5, a2.foo());
-}
« no previous file with comments | « frog/tests/frog/native_class_is_check2_frog_test.dart ('k') | frog/tests/frog/native_named_constructors1_frog_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698