Lofesa commented on a change in pull request #1899: data-srcset in img and 
amp-img
URL: 
https://github.com/apache/incubator-pagespeed-mod/pull/1899#discussion_r296166531
 
 

 ##########
 File path: pagespeed/automatic/system_tests/responsive_images.sh
 ##########
 @@ -35,4 +35,7 @@ start_test rewrite_images can rewrite srcset itself
 
URL=$TEST_ROOT/image_rewriting/srcset.html?PageSpeedFilters=+rewrite_images,+debug
 fetch_until -save $URL 'grep -c xPuzzle.*1x.*xCuppa.*2x' 1
 
+start_test rewrite_images_datasrcset can rewrite data-srcset itself
+URL=$TEST_ROOT/image_rewriting/data-srcset.html?PageSpeedFilters=+rewrite_images,+debug
+fetch_until -save $URL 'grep -c srcset.*xPuzzle.*1x.*xCuppa.*2x' 2
 
 Review comment:
   Well.... In the html file we have data-srcset and srcset, this second in the 
amp-img element.
   Whit this grep, using srcset we cover both data-srcset and amp-image srcset. 
Is for that that we need to count 2 in the grep condition. If use data-srcset 
in the grep we need other fecht_until to test amp-img srcset.... That can be ok 
but...We need to check the same file 2 times?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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