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

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

Issue 183763021: Don't match directly on gzip output of empty message, as it's not strictly specified. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/zlib_test.dart
diff --git a/tests/standalone/io/zlib_test.dart b/tests/standalone/io/zlib_test.dart
index ac9f797305358547be4def235df40870cd16b49b..a2e30d20230a2ab399638d538c500b5428d2a706 100644
--- a/tests/standalone/io/zlib_test.dart
+++ b/tests/standalone/io/zlib_test.dart
@@ -32,8 +32,7 @@ void testZLibDeflateEmptyGzip() {
return buffer;
})
.then((data) {
- Expect.listEquals([31, 139, 8, 0, 0, 0, 0, 0, 0, 3, 3, 0, 0, 0, 0, 0, 0,
- 0, 0, 0], data);
+ Expect.listEquals([], new ZLibDecoder().convert(data));
asyncEnd();
});
controller.close();
@@ -49,6 +48,7 @@ void testZLibDeflate() {
return buffer;
})
.then((data) {
+ Expect.isTrue(data.length > 0);
Lasse Reichstein Nielsen 2014/03/03 12:24:22 Move where it belongs.
Anders Johnsen 2014/03/03 12:24:59 Done.
Expect.listEquals(
[120, 156, 99, 96, 100, 98, 102, 97, 101, 99, 231, 224, 4, 0, 0,
175, 0, 46],
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698