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

Side by Side Diff: tests/standalone/src/BlackListedTest.dart

Issue 10252020: test rename overhaul: step 12 - standalone (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/standalone/src/AssertTest.dart ('k') | tests/standalone/src/ByteArrayTest.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4 // Dart test checking that static/instance field shadowing do not conflict.
5
6 // Test that certain interfaces/classes are blacklisted from being
7 // implemented or extended (VM corelib only).
8
9 #library("BlackListedTest.dart");
10 #import("dart:coreimpl");
11
12 class MyBool extends Bool {} /// 01: compile-time error
13
14 class MyDouble extends Double {} /// 02: compile-time error
15
16 class MyObjectArray extends ObjectArray {} /// 03: compile-time error
17
18 class MyImmutableArray extends ImmutableArray {} /// 04: compile-time error
19
20 class MyGrowableObjectArray extends GrowableObjectArray {} /// 05: compile-time error
21
22 class MyIntegerImplementation extends IntegerImplementation {} /// 06: compile- time error
23
24 class MySmi extends Smi {} /// 07: compile-time error
25
26 class MyMint extends Mint {} /// 08: compile-time error
27
28 class MyBigint extends Bigint {} /// 09: compile-time error
29
30 class MyOneByteString extends OneByteString {} /// 10: compile-time error
31
32 class MyTwoByteString extends TwoByteString {} /// 11: compile-time error
33
34 class MyFourByteString extends FourByteString {} /// 12: compile-time error
35
36 main() {
37 new MyBool(); /// 01: continued
38
39 new MyDouble(); /// 02: continued
40
41 new MyObjectArray(); /// 03: continued
42
43 new MyImmutableArray(); /// 04: continued
44
45 new MyGrowableObjectArray(); /// 05: continued
46
47 new MyIntegerImplementation(); /// 06: continued
48
49 new MySmi(); /// 07: continued
50
51 new MyMint(); /// 08: continued
52
53 new MyBigint(); /// 09: continued
54
55 new MyOneByteString(); /// 10: continued
56
57 new MyTwoByteString(); /// 11: continued
58
59 new MyFourByteString(); /// 12: continued
60 }
OLDNEW
« no previous file with comments | « tests/standalone/src/AssertTest.dart ('k') | tests/standalone/src/ByteArrayTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698