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

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

Issue 11146013: Fix JS minifier to lift var declarations within functions. Still disabled. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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
Index: tests/compiler/dart2js/class_codegen_test.dart
diff --git a/tests/compiler/dart2js/class_codegen_test.dart b/tests/compiler/dart2js/class_codegen_test.dart
index 09c45eb6de58c71ea993ce2f61c816baf410f10c..dae160e698a0a8cfa753a0014d0a259356c86f94 100644
--- a/tests/compiler/dart2js/class_codegen_test.dart
+++ b/tests/compiler/dart2js/class_codegen_test.dart
@@ -53,8 +53,8 @@ main() {
const String TEST_FIVE = r"""
class A {
- var x;
- A(x) : this.x = x {}
+ var a;
+ A(a) : this.a = a {}
ngeoffray 2012/10/15 14:20:01 Why this change? (and the ones in the other tests?
}
main() {
@@ -90,7 +90,7 @@ $.B = {"":
constructor1() {
String generated = compileAll(TEST_FIVE);
- Expect.isTrue(generated.contains(r"new $.A(x);"));
+ Expect.isTrue(generated.contains(r"new $.A(a);"));
}
main() {

Powered by Google App Engine
This is Rietveld 408576698