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

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

Issue 11361190: a === b -> identical(a, b) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 80chars. 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/dart_backend_test.dart
diff --git a/tests/compiler/dart2js/dart_backend_test.dart b/tests/compiler/dart2js/dart_backend_test.dart
index ce5702bc0d5877a78fd8d3a688fd433c375dfe1b..7471d27e661adbec1abe5e256f05d95d1458bd5b 100644
--- a/tests/compiler/dart2js/dart_backend_test.dart
+++ b/tests/compiler/dart2js/dart_backend_test.dart
@@ -60,7 +60,7 @@ class JSInvocationMirror {}
testDart2Dart(String src, {void continuation(String s), bool minify: false,
bool stripTypes: false}) {
// If continuation is not provided, check that source string remains the same.
- if (continuation === null) {
+ if (continuation == null) {
continuation = (s) { Expect.equals(src, s); };
}
testDart2DartWithLibrary(src, '', continuation: continuation, minify: minify,
@@ -93,7 +93,7 @@ testDart2DartWithLibrary(
}
handler(uri, begin, end, message, kind) {
- if (kind === Diagnostic.ERROR || kind === Diagnostic.CRASH) {
+ if (identical(kind, Diagnostic.ERROR) || identical(kind, Diagnostic.CRASH)) {
Expect.fail('$uri: $begin-$end: $message [$kind]');
}
}

Powered by Google App Engine
This is Rietveld 408576698