| Index: dart/tests/compiler/dart2js_foreign/native_named_constructors3_test.dart
|
| diff --git a/dart/tests/compiler/dart2js_foreign/native_named_constructors3_test.dart b/dart/tests/compiler/dart2js_foreign/native_named_constructors3_test.dart
|
| deleted file mode 100644
|
| index 0921f6ecfae1566cd314611f5a9369719320bb5e..0000000000000000000000000000000000000000
|
| --- a/dart/tests/compiler/dart2js_foreign/native_named_constructors3_test.dart
|
| +++ /dev/null
|
| @@ -1,45 +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.
|
| -
|
| -// Hidden native class with factory constructors and NO static methods.
|
| -// Regression test.
|
| -
|
| -import "package:expect/expect.dart";
|
| -import 'native_metadata.dart';
|
| -
|
| -@Native("*A")
|
| -class A {
|
| -
|
| - // No static methods in this class.
|
| -
|
| - factory A(int len) => makeA(len);
|
| -
|
| - factory A.fromString(String s) => makeA(s.length);
|
| -
|
| - @Native(r'return makeA(a+b);')
|
| - factory A.nativeConstructor(int a, int b);
|
| -
|
| - @Native('return this._x;')
|
| - foo();
|
| -}
|
| -
|
| -@native makeA(v);
|
| -
|
| -@Native("""
|
| -// This code is all inside 'setup' and so not accesible from the global scope.
|
| -function A(arg) { this._x = arg; }
|
| -makeA = function(arg) { return new A(arg); }
|
| -""")
|
| -void setup();
|
| -
|
| -main() {
|
| - setup();
|
| - var a1 = new A(100);
|
| - var a2 = new A.fromString('Hello');
|
| - var a3 = new A.nativeConstructor(100, 2);
|
| -
|
| - Expect.equals(100, a1.foo());
|
| - Expect.equals(5, a2.foo());
|
| - Expect.equals(102, a3.foo());
|
| -}
|
|
|