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

Unified Diff: tests/compiler/dart2js_extra/bailout_on_break_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_break_test.dart
diff --git a/tests/compiler/dart2js_extra/bailout_on_break_test.dart b/tests/compiler/dart2js_extra/bailout_on_break_test.dart
index f1e6beefa34c17edec5f6d02837a57971b707805..d73f935889dc17ab60e87418b44a9736cb491d6f 100644
--- a/tests/compiler/dart2js_extra/bailout_on_break_test.dart
+++ b/tests/compiler/dart2js_extra/bailout_on_break_test.dart
@@ -15,7 +15,7 @@ void testInWhileLoop() {
while (true) {
var e = getNonInt();
Expect.equals(42, e + 2);
- if (e !== null) break;
+ if (e != null) break;
while (true) use(e);
}
// This is what matters: 'c' must have been saved in the
@@ -29,7 +29,7 @@ void testInNestedWhileLoop() {
while (true) {
var e = getNonInt();
Expect.equals(42, e + 2);
- if (e !== null) break;
+ if (e != null) break;
}
// This is what matters: 'c' must have been saved in the
// environment.
@@ -44,7 +44,7 @@ void testInNestedWhileLoop2() {
while (true) {
var e = getNonInt();
Expect.equals(42, e + 2);
- if (e !== null) break L0;
+ if (e != null) break L0;
while (true) use(e);
}
}
@@ -60,11 +60,11 @@ void testInNestedWhileLoop3() {
while (index < 2) {
var e = getNonInt();
Expect.equals(42, e + 2);
- if (e !== null && index++ == 0) break;
+ if (e != null && index++ == 0) break;
// This is what matters: '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) break;
+ if (e != null) break;
while (true) use(e);
} while (true);
// This is what matters: 'c' must have been saved in the
@@ -87,7 +87,7 @@ void testInForLoop() {
for (int i = 0; i < 10; i++) {
var e = getNonInt();
Expect.equals(42, e + 2);
- if (e !== null) break;
+ if (e != null) break;
while (true) use(e);
}
// This is what matters: 'c' must have been saved in the
@@ -100,11 +100,11 @@ void testLabeledIf() {
L1: if (c == 42) {
var e = getNonInt();
Expect.equals(42, e + 2);
- if (e === null) break L1;
+ if (e == null) break L1;
// This is what matters: 'c' must have been saved in the
// environment.
Expect.equals(c, 42);
- while (e === null) use(e);
+ while (e == null) use(e);
}
Expect.equals(c, 42);
}
@@ -114,9 +114,9 @@ void testLabeledIf2() {
L1: if (c == 42) {
var e = getNonInt();
Expect.equals(42, e + 2);
- if (e === null) break L1;
+ if (e == null) break L1;
Expect.equals(42, e + 1);
- while (e === null) use(e);
+ while (e == null) use(e);
}
Expect.equals(42, c);
}
« no previous file with comments | « tests/compiler/dart2js/uri_extras_test.dart ('k') | tests/compiler/dart2js_extra/bailout_on_continue_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698