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

Unified Diff: tests/standalone/io/internet_address_test.dart

Issue 17601011: Fix InternetAddress.resolve impl and test for Windows. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 months 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 | « runtime/bin/socket_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/internet_address_test.dart
diff --git a/tests/standalone/io/internet_address_test.dart b/tests/standalone/io/internet_address_test.dart
index 120cacc84e1f718ad9236b2b62cc2494ce2351fc..22c4a66e7a9a32f5dbef41e50d1301d1d2904816 100644
--- a/tests/standalone/io/internet_address_test.dart
+++ b/tests/standalone/io/internet_address_test.dart
@@ -35,13 +35,15 @@ void testDefaultAddresses() {
void testReverseLookup() {
InternetAddress.lookup('localhost').then((addrs) {
addrs.first.reverse().then((addr) {
- Expect.equals('localhost', addr.host);
+ Expect.isNotNull(addr.host);
});
});
InternetAddress.lookup('127.0.0.1').then((addrs) {
+ Expect.equals('127.0.0.1', addrs.first.host);
addrs.first.reverse().then((addr) {
- Expect.equals('localhost', addr.host);
+ Expect.isNotNull(addr.host);
+ Expect.notEquals('127.0.0.1', addr.host);
});
});
}
« no previous file with comments | « runtime/bin/socket_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698