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

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: 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/compiler/dart2js/dart2js.status ('k') | tests/compiler/dart2js/identity_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 cc246cf04b96c3971c51c68015a517820442c89f..647aced8e235742b1af636e326af2beafca90f72 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]');
}
}
« no previous file with comments | « tests/compiler/dart2js/dart2js.status ('k') | tests/compiler/dart2js/identity_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698