Index: dart/tests/compiler/dart2js/types_of_captured_variables_test.dart |
diff --git a/dart/tests/compiler/dart2js/types_of_captured_variables_test.dart b/dart/tests/compiler/dart2js/types_of_captured_variables_test.dart |
index 9e802bd153a70387425430856c7f11777c864fe9..32f61e3c3b4b04c354853a4734226ab54236bf77 100644 |
--- a/dart/tests/compiler/dart2js/types_of_captured_variables_test.dart |
+++ b/dart/tests/compiler/dart2js/types_of_captured_variables_test.dart |
@@ -9,7 +9,7 @@ import 'compiler_helper.dart'; |
const String TEST1 = r""" |
main() { |
var a = 52; |
- var f = () => a + 3; |
+ var f = () => a + 87; |
f(); |
} |
"""; |
@@ -18,7 +18,7 @@ const String TEST2 = r""" |
main() { |
var a = 52; |
var g = () { a = 48; }; |
- var f = () => a + 3; |
+ var f = () => a + 87; |
f(); |
g(); |
} |
@@ -28,7 +28,7 @@ const String TEST3 = r""" |
main() { |
var a = 52; |
var g = () { a = 'foo'; }; |
- var f = () => a + 3; |
+ var f = () => a + 87; |
f(); |
g(); |
} |
@@ -37,17 +37,17 @@ main() { |
main() { |
// Test that we know the type of captured, non-mutated variables. |
asyncTest(() => compileAll(TEST1).then((generated) { |
- Expect.isTrue(generated.contains('+ 3')); |
+ Expect.isTrue(generated.contains('+ 87')); |
})); |
// Test that we know the type of captured, mutated variables. |
asyncTest(() => compileAll(TEST2).then((generated) { |
- Expect.isTrue(generated.contains('+ 3')); |
+ Expect.isTrue(generated.contains('+ 87')); |
})); |
// Test that we know when types of a captured, mutated variable |
// conflict. |
asyncTest(() => compileAll(TEST3).then((generated) { |
- Expect.isFalse(generated.contains('+ 3')); |
+ Expect.isFalse(generated.contains('+ 87')); |
})); |
} |