jmarantz commented on a change in pull request #1785: Fix mismatch between 
decompression and headers
URL: 
https://github.com/apache/incubator-pagespeed-mod/pull/1785#discussion_r207223922
 
 

 ##########
 File path: net/instaweb/rewriter/css_filter_test.cc
 ##########
 @@ -412,6 +412,38 @@ TEST_F(CssFilterTestCustomOptions, 
CssPreserveUrlsNoPreemptiveRewrite) {
   EXPECT_EQ(kOutputStyle, out_css);
 }
 
+
+TEST_F(CssFilterTestCustomOptions, FallbackWithGzipData) {
+  const char kCss[] = " hello { display: block; border: 1px solid fuchsia; }";
+  options()->set_http_cache_compression_level(6);
+  // Force the fallback since rewrite is taking too long" path.
+  options()->set_test_instant_fetch_rewrite_deadline(true);
+  CssFilterTest::SetUp();
+
+  // Store an already-gzipped version of the resource in the cace.
 
 Review comment:
   s/cace/cache/

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to