Chromium Code Reviews| Index: tests/compiler/dart2js/call_site_type_inferer_static_test.dart |
| diff --git a/tests/compiler/dart2js/call_site_type_inferer_static_test.dart b/tests/compiler/dart2js/call_site_type_inferer_static_test.dart |
| index d877ac9324d39325677416537dbf592fac02d3a9..b70867baffa499d54922da1f97c0a2c4d91b5423 100644 |
| --- a/tests/compiler/dart2js/call_site_type_inferer_static_test.dart |
| +++ b/tests/compiler/dart2js/call_site_type_inferer_static_test.dart |
| @@ -12,9 +12,11 @@ |
| void compileAndFind(String code, |
| String functionName, |
| + bool enbaleInlining, |
|
ahe
2012/09/21 15:00:27
enbale -> enable.
Søren Gjesse
2012/09/24 07:32:26
Changed to disable here as well.
|
| check(compiler, element)) { |
| Uri uri = new Uri.fromComponents(scheme: 'source'); |
| var compiler = compilerFor(code, uri); |
| + compiler.enableInlining = enbaleInlining; |
| compiler.runCompiler(uri); |
| var fun = findElement(compiler, functionName); |
| return check(compiler.backend, fun); |
| @@ -72,10 +74,13 @@ const String TEST_TEN = r""" |
| main() { f(1); g(f); } |
| """; |
| -void runTest(String test, [List<HType> expectedTypes = null]) { |
| +void doTest(String test, |
| + bool enableInlining, |
| + List<HType> expectedTypes) { |
| compileAndFind( |
| test, |
| 'f', |
| + enableInlining, |
| (backend, x) { |
| HTypeList types = backend.optimisticParameterTypes(x, null); |
| if (expectedTypes != null) { |
| @@ -87,6 +92,11 @@ void runTest(String test, [List<HType> expectedTypes = null]) { |
| }); |
| } |
| +void runTest(String test, [List<HType> expectedTypes]) { |
| + doTest(test, true, expectedTypes); |
| + doTest(test, false, expectedTypes); |
| +} |
| + |
| void test() { |
| runTest(TEST_ONE, [HType.STRING]); |
| runTest(TEST_TWO, [HType.INTEGER]); |