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

Unified Diff: tools/grit/grit/node/include_unittest.py

Issue 2149323003: Change the way that gzipped resources are loaded from resources.pak (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
Index: tools/grit/grit/node/include_unittest.py
diff --git a/tools/grit/grit/node/include_unittest.py b/tools/grit/grit/node/include_unittest.py
index 2b29e11815179880aed331ba4a221af5b6d78aab..031c1bfac48a9b674c91c3cdade34082747e8fc1 100755
--- a/tools/grit/grit/node/include_unittest.py
+++ b/tools/grit/grit/node/include_unittest.py
@@ -78,8 +78,7 @@ class IncludeNodeUnittest(unittest.TestCase):
inc, = root.GetChildrenOfType(include.IncludeNode)
throwaway, compressed = inc.GetDataPackPair(lang='en', encoding=1)
- # compressed[1:] ensures we skip the special inserted first byte.
- decompressed_data = zlib.decompress(compressed[1:], 16 + zlib.MAX_WBITS)
+ decompressed_data = zlib.decompress(compressed, 16 + zlib.MAX_WBITS)
self.assertEqual(util.ReadFile(util.PathFromRoot('grit/testdata')
+ "/test_text.txt", util.BINARY),
decompressed_data)

Powered by Google App Engine
This is Rietveld 408576698