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

Unified Diff: tests/language/rethrow_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
« no previous file with comments | « tests/language/reg_exp2_test.dart ('k') | tests/language/scope_variable_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/rethrow_test.dart
diff --git a/tests/language/rethrow_test.dart b/tests/language/rethrow_test.dart
index 021a0fce58a316608bcc8bbac2508d3d39e3cf97..60c055ce53890675a7c8f727e07e13890d8864db 100644
--- a/tests/language/rethrow_test.dart
+++ b/tests/language/rethrow_test.dart
@@ -26,7 +26,7 @@ class RethrowTest {
throwException();
Expect.fail("Should have thrown an exception");
} catch (e) {
- Expect.equals(true, e === currentException);
+ Expect.equals(true, identical(e, currentException));
throw;
Expect.fail("Should have thrown an exception");
}
@@ -34,7 +34,7 @@ class RethrowTest {
Expect.fail("Should not have caught OtherException");
}
} catch (e) {
- Expect.equals(true, e === currentException);
+ Expect.equals(true, identical(e, currentException));
}
}
@@ -44,12 +44,12 @@ class RethrowTest {
throwException();
Expect.fail("Should have thrown an exception");
} catch (e) {
- Expect.equals(true, e === currentException);
+ Expect.equals(true, identical(e, currentException));
throw;
Expect.fail("Should have thrown an exception");
}
} catch (e) {
- Expect.equals(true, e === currentException);
+ Expect.equals(true, identical(e, currentException));
}
}
}
« no previous file with comments | « tests/language/reg_exp2_test.dart ('k') | tests/language/scope_variable_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698