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

Unified Diff: tests/compiler/dart2js_extra/bailout_on_continue_test.dart

Issue 11361190: a === b -> identical(a, b) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 1 month 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_extra/bailout_on_continue_test.dart
diff --git a/tests/compiler/dart2js_extra/bailout_on_continue_test.dart b/tests/compiler/dart2js_extra/bailout_on_continue_test.dart
index 74a247f820c1391b1da42e9fd892e2868dd7830a..917f35325b1bf086c816b18f9bed6f0cdf6d6321 100644
--- a/tests/compiler/dart2js_extra/bailout_on_continue_test.dart
+++ b/tests/compiler/dart2js_extra/bailout_on_continue_test.dart
@@ -16,7 +16,7 @@ void testInWhileLoop() {
while (index++ != 2) {
var e = getNonInt();
Expect.equals(42, e + 2);
- if (e !== null) continue;
+ if (e != null) continue;
while (true) use(e);
}
// 'c' must have been saved in the environment.
@@ -30,7 +30,7 @@ void testInNestedWhileLoop() {
while (index++ != 2) {
var e = getNonInt();
Expect.equals(42, e + 2);
- if (e !== null) continue;
+ if (e != null) continue;
}
// 'c' must have been saved in the environment.
Expect.equals(c, 42);
@@ -45,7 +45,7 @@ void testInNestedWhileLoop2() {
while (true) {
var e = getNonInt();
Expect.equals(42, e + 2);
- if (e !== null) continue L0;
+ if (e != null) continue L0;
while (true) use(e);
}
}
@@ -60,10 +60,10 @@ void testInNestedWhileLoop3() {
while (index < 2) {
var e = getNonInt();
Expect.equals(42, e + 2);
- if (e !== null && index++ == 0) continue;
+ if (e != null && index++ == 0) continue;
// 'c' must have been saved in the environment.
Expect.equals(c, 42);
- while (e === null) use(e);
+ while (e == null) use(e);
}
}
}
@@ -74,7 +74,7 @@ void testInDoWhileLoop() {
do {
var e = getNonInt();
Expect.equals(42, e + 2);
- if (e !== null) continue;
+ if (e != null) continue;
while (true) use(e);
} while (index++ != 2);
// 'c' must have been saved in the environment.
@@ -86,7 +86,7 @@ void testInForLoop() {
for (int i = 0; i < 10; i++) {
var e = getNonInt();
Expect.equals(42, e + 2);
- if (e !== null) continue;
+ if (e != null) continue;
while (true) use(e);
}
// 'c' must have been saved in the environment.

Powered by Google App Engine
This is Rietveld 408576698