| 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:isolate'; | 9 import 'dart:isolate'; |
| 10 import 'dart:mirrors'; | 10 import 'dart:mirrors'; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 var mirrorReference; | 39 var mirrorReference; |
| 40 var portReceive; | 40 var portReceive; |
| 41 var portSend; | 41 var portSend; |
| 42 var regex; | 42 var regex; |
| 43 var smi; | 43 var smi; |
| 44 var stacktrace; | 44 var stacktrace; |
| 45 var string; | 45 var string; |
| 46 var stringEscapedUnicodeEscape; | 46 var stringEscapedUnicodeEscape; |
| 47 var stringHebrew; | 47 var stringHebrew; |
| 48 var stringLatin1; | 48 var stringLatin1; |
| 49 var stringMalformedLead; |
| 50 var stringMalformedTrail; |
| 49 var stringNewLinesAndTabs; | 51 var stringNewLinesAndTabs; |
| 50 var stringNullInTheMiddle; | 52 var stringNullInTheMiddle; |
| 51 var stringSnowflake; | 53 var stringSnowflake; |
| 52 var stringTrebleClefs; | 54 var stringTrebleClefs; |
| 53 var stringUnicode; | 55 var stringUnicode; |
| 54 var theFalse; | 56 var theFalse; |
| 55 var theNull; | 57 var theNull; |
| 56 var theTrue; | 58 var theTrue; |
| 57 var type; | 59 var type; |
| 58 var typeParameter; | 60 var typeParameter; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 mirrorInstance = reflect("a reflectee"); | 130 mirrorInstance = reflect("a reflectee"); |
| 129 mirrorReference = extractPrivateField(mirrorClass, '_reflectee'); | 131 mirrorReference = extractPrivateField(mirrorClass, '_reflectee'); |
| 130 portReceive = new RawReceivePort(); | 132 portReceive = new RawReceivePort(); |
| 131 regex = new RegExp("a*b+c"); | 133 regex = new RegExp("a*b+c"); |
| 132 smi = 7; | 134 smi = 7; |
| 133 stacktrace = genStacktrace(); | 135 stacktrace = genStacktrace(); |
| 134 string = "Hello"; | 136 string = "Hello"; |
| 135 stringEscapedUnicodeEscape = "Should not be A: \\u0041"; | 137 stringEscapedUnicodeEscape = "Should not be A: \\u0041"; |
| 136 stringHebrew = "שלום רב שובך צפורה נחמדת"; // Right-to-left text. | 138 stringHebrew = "שלום רב שובך צפורה נחמדת"; // Right-to-left text. |
| 137 stringLatin1 = "blåbærgrød"; | 139 stringLatin1 = "blåbærgrød"; |
| 140 stringMalformedLead = "before" + "𝄞"[0] + "after"; |
| 141 stringMalformedTrail = "before" + "𝄞"[1] + "after"; |
| 138 stringNewLinesAndTabs = "One fish\ttwo fish\nRed fish\tBlue fish\n"; | 142 stringNewLinesAndTabs = "One fish\ttwo fish\nRed fish\tBlue fish\n"; |
| 139 stringNullInTheMiddle = "There are four\u0000 words."; | 143 stringNullInTheMiddle = "There are four\u0000 words."; |
| 140 stringSnowflake = "❄"; | 144 stringSnowflake = "❄"; |
| 141 stringTrebleClefs = "1𝄞2𝄞𝄞3𝄞𝄞𝄞"; // Surrogate pair. | 145 stringTrebleClefs = "1𝄞2𝄞𝄞3𝄞𝄞𝄞"; // Surrogate pair. |
| 142 stringUnicode = "Îñţérñåţîöñåļîžåţîờñ"; | 146 stringUnicode = "Îñţérñåţîöñåļîžåţîờñ"; |
| 143 theFalse = false; | 147 theFalse = false; |
| 144 theNull = null; | 148 theNull = null; |
| 145 theTrue = true; | 149 theTrue = true; |
| 146 type = String; | 150 type = String; |
| 147 typeParameter = extractPrivateField(reflectClass(A).typeVariables.single, '_re
flectee'); | 151 typeParameter = extractPrivateField(reflectClass(A).typeVariables.single, '_re
flectee'); |
| 148 typedData = extractPrivateField(new ByteData(64), '_typedData'); | 152 typedData = extractPrivateField(new ByteData(64), '_typedData'); |
| 149 userTag = new UserTag("Example tag name"); | 153 userTag = new UserTag("Example tag name"); |
| 150 weakProperty = extractPrivateField(expando, '_data').firstWhere((e) => e != nu
ll); | 154 weakProperty = extractPrivateField(expando, '_data').firstWhere((e) => e != nu
ll); |
| 151 | 155 |
| 152 Isolate.spawn(secondMain, "Hello").then((otherIsolate) { | 156 Isolate.spawn(secondMain, "Hello").then((otherIsolate) { |
| 153 isolate = otherIsolate; | 157 isolate = otherIsolate; |
| 154 portSend = otherIsolate.controlPort; | 158 portSend = otherIsolate.controlPort; |
| 155 capability = otherIsolate.terminateCapability; | 159 capability = otherIsolate.terminateCapability; |
| 156 }); | 160 }); |
| 157 | 161 |
| 158 print("Finished main"); | 162 print("Finished main"); |
| 159 } | 163 } |
| OLD | NEW |