a === b -> identical(a, b)
Replace === null with == null.
BUG=http://dartbug.com/6380
Review URL: https://codereview.chromium.org//11361190
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/logging@14794 260f80e4-7a28-3924-810f-c04153c831b5
diff --git a/test/logging_test.dart b/test/logging_test.dart
index 37518b1..fe1c4f0 100644
--- a/test/logging_test.dart
+++ b/test/logging_test.dart
@@ -25,7 +25,7 @@
expect(level2 > level1, isTrue);
var level3 = const Level('NOT_REAL3', 253);
- expect(level1 !== level3, isTrue); // different instances
+ expect(!identical(level1, level3), isTrue); // different instances
expect(level1 == level3, isTrue); // same value.
});
@@ -102,10 +102,10 @@
Logger a2 = new Logger('a');
Logger b = new Logger('a.b');
Logger root = Logger.root;
- expect(a1 === a2, isTrue);
- expect(a1 === b.parent, isTrue);
- expect(root === a1.parent, isTrue);
- expect(root === new Logger(''), isTrue);
+ expect(identical(a1, a2), isTrue);
+ expect(identical(a1, b.parent), isTrue);
+ expect(identical(root, a1.parent), isTrue);
+ expect(identical(root, new Logger('')), isTrue);
});
group('mutating levels', () {