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

Side by Side Diff: tests/language/src/NativeLibrarySameNameUsedFrogTest.dart

Issue 8965019: Make test frogium-safe. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // Test for correct hidden native class when interface has same name. 5 // Test for correct hidden native class when interface has same name.
6 6
7 #library('main');
7 #import('NativeLibrarySameNameUsedLib1.dart'); 8 #import('NativeLibrarySameNameUsedLib1.dart');
8 9
9 void setup() native """ 10 void setup() native """
10 // This code is all inside 'setup' and so not accesible from the global scope. 11 // This code is all inside 'setup' and so not accesible from the global scope.
11 function I(){} 12 function I(){}
12 I.prototype.read = function() { return this._x; }; 13 I.prototype.read = function() { return this._x; };
13 I.prototype.write = function(x) { this._x = x; }; 14 I.prototype.write = function(x) { this._x = x; };
14 makeI = function(){return new I}; 15 makeI = function(){return new I};
15 """; 16 """;
16 17
(...skipping 16 matching lines...) Expand all
33 34
34 Expect.isFalse(ob is I, 'ob is I'); 35 Expect.isFalse(ob is I, 'ob is I');
35 Expect.isFalse(ob is ProxyI, 'ob is ProxyI'); 36 Expect.isFalse(ob is ProxyI, 'ob is ProxyI');
36 37
37 Expect.isTrue(b1 is I, 'b1 is I'); 38 Expect.isTrue(b1 is I, 'b1 is I');
38 Expect.isTrue(b1 is ProxyI, 'b1 is ProxyI'); 39 Expect.isTrue(b1 is ProxyI, 'b1 is ProxyI');
39 40
40 Expect.isTrue(a1 is I, 'a1 is I'); 41 Expect.isTrue(a1 is I, 'a1 is I');
41 Expect.isFalse(a1 is ProxyI, 'a1 is ProxyI'); 42 Expect.isFalse(a1 is ProxyI, 'a1 is ProxyI');
42 } 43 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698