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

Unified Diff: tests/compiler/dart2js/cpa_inference_test.dart

Issue 15949008: Use backend's types for native types. Handle "other dependencies". Gets rid of (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address Karl's comments Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/cpa_inference_test.dart
diff --git a/tests/compiler/dart2js/cpa_inference_test.dart b/tests/compiler/dart2js/cpa_inference_test.dart
index 2e6940837d3ba22abcee049a42eba75be5bad049..905b5fde27f16bf83cc2f27bc8d47549d59696e3 100644
--- a/tests/compiler/dart2js/cpa_inference_test.dart
+++ b/tests/compiler/dart2js/cpa_inference_test.dart
@@ -159,9 +159,7 @@ const String CORELIB = r'''
class Object {}
class Function {}
abstract class List<E> {
- factory List([int length]) {}
- E operator [](int index);
- void operator []=(int index, E value);
+ factory List([int length]) => JS('=List', r'new Array(#)', length);
}
abstract class Map<K, V> {}
class Closure {}
@@ -1203,23 +1201,6 @@ testSeenClasses() {
result.checkNodeHasType('foo', [result.int]);
}
-testGoodGuys() {
- final String source = r"""
- main() {
- var a = 1.isEven;
- var b = 3.14.isNaN;
- var c = 1.floor();
- var d = 3.14.floor();
- a; b; c; d;
- }
- """;
- AnalysisResult result = analyze(source);
- result.checkNodeHasType('a', [result.bool]);
- result.checkNodeHasType('b', [result.bool]);
- result.checkNodeHasType('c', [result.num]);
- result.checkNodeHasType('d', [result.num]);
-}
-
testIntDoubleNum() {
final String source = r"""
main() {
@@ -1402,7 +1383,6 @@ void main() {
testJsCall();
testIsCheck();
testSeenClasses();
- testGoodGuys();
testIntDoubleNum();
testConcreteTypeToTypeMask();
testSelectors();
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698