OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 // See inspector.txt for expected behavior. | 5 // See inspector.txt for expected behavior. |
6 | 6 |
7 library manual_inspector_test; | 7 library manual_inspector_test; |
8 | 8 |
9 import 'dart:async'; | 9 import 'dart:async'; |
10 import 'dart:isolate'; | 10 import 'dart:isolate'; |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 | 118 |
119 f(9); | 119 f(9); |
120 | 120 |
121 nullable = 1; | 121 nullable = 1; |
122 nullable = null; | 122 nullable = null; |
123 nullable = 1; | 123 nullable = 1; |
124 mixedType = 1; | 124 mixedType = 1; |
125 mixedType = "2"; | 125 mixedType = "2"; |
126 mixedType = false; | 126 mixedType = false; |
127 | 127 |
128 array = [1, 2, 3]; | 128 array = new List(3); |
| 129 array[0] = 1; |
| 130 array[1] = 2; |
| 131 array[2] = 3; |
129 bigint = 1 << 65; | 132 bigint = 1 << 65; |
130 blockClean = genCleanBlock(); | 133 blockClean = genCleanBlock(); |
131 blockCopying = genCopyingBlock(); | 134 blockCopying = genCopyingBlock(); |
132 blockFull = genFullBlock(); | 135 blockFull = genFullBlock(); |
133 blockFullWithChain = genFullBlockWithChain(); | 136 blockFullWithChain = genFullBlockWithChain(); |
134 boundedType = extractPrivateField(reflect(new B<int>()).type.typeVariables.s
ingle, '_reflectee'); | 137 boundedType = extractPrivateField(reflect(new B<int>()).type.typeVariables.s
ingle, '_reflectee'); |
135 counter = new Counter("CounterName", "Counter description"); | 138 counter = new Counter("CounterName", "Counter description"); |
136 expando = new Expando("expando-name"); | 139 expando = new Expando("expando-name"); |
137 expando[array] = 'The weakly associated value'; | 140 expando[array] = 'The weakly associated value'; |
138 float32x4 = new Float32x4.zero(); | 141 float32x4 = new Float32x4(0.0, -1.0, 3.14, 2e28); |
139 float64 = 3.14; | 142 float64 = 3.14; |
140 float64x2 = new Float64x2.zero(); | 143 float64x2 = new Float64x2(0.0, 3.14); |
141 gauge = new Gauge("GuageName", "Guage description", 0.0, 100.0); | 144 gauge = new Gauge("GaugeName", "Gauge description", 0.0, 100.0); |
142 growableList = new List(); | 145 growableList = new List(); |
143 int32x4 = new Int32x4(0,0,0,0); | 146 int32x4 = new Int32x4(0,1,10,11); |
144 map = { "x-key": "x-value", "y-key": "y-value", "removed-key": "removed-valu
e" }; | 147 map = { "x-key": "x-value", "y-key": "y-value", "removed-key": "removed-valu
e" }; |
145 map.remove("removed-key"); | 148 map.remove("removed-key"); |
146 mint = 1 << 32; | 149 mint = 1 << 32; |
147 mirrorClass = reflectClass(Object); | 150 mirrorClass = reflectClass(Object); |
148 mirrorClosure = reflect(blockFull); | 151 mirrorClosure = reflect(blockFull); |
149 mirrorInstance = reflect("a reflectee"); | 152 mirrorInstance = reflect("a reflectee"); |
150 mirrorReference = extractPrivateField(mirrorClass, '_reflectee'); | 153 mirrorReference = extractPrivateField(mirrorClass, '_reflectee'); |
151 portReceive = new RawReceivePort(); | 154 portReceive = new RawReceivePort(); |
152 portSend = portReceive.sendPort; | 155 portSend = portReceive.sendPort; |
153 regex = new RegExp("a*b+c"); | 156 regex = new RegExp("a*b+c"); |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 typed = new Typed(); | 242 typed = new Typed(); |
240 node = new Node(); | 243 node = new Node(); |
241 node.main(); | 244 node.main(); |
242 } | 245 } |
243 | 246 |
244 class C { | 247 class C { |
245 static doPrint() { | 248 static doPrint() { |
246 print("Original"); | 249 print("Original"); |
247 } | 250 } |
248 } | 251 } |
OLD | NEW |