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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/misc/resources/svg-no-store.pl

Issue 2121973002: Fallback to 300x150 instead of 0x0 size for SVG inside content() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add test 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/misc/svg-image-in-content.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/perl -wT 1 #!/usr/bin/perl -wT
2 2
3 # flush the buffers after each print
4 select (STDOUT);
5 $| = 1;
6
7 print "Content-Type: image/svg+xml\r\n"; 3 print "Content-Type: image/svg+xml\r\n";
8 print "Expires: Thu, 01 Dec 2003 16:00:00 GMT\r\n"; 4 print "Expires: Thu, 01 Dec 2003 16:00:00 GMT\r\n";
9 print "Cache-Control: no-store, no-cache, must-revalidate\r\n"; 5 print "Cache-Control: no-store, no-cache, must-revalidate\r\n";
10 print "Pragma: no-cache\r\n"; 6 print "Pragma: no-cache\r\n";
11 print "\r\n"; 7 print "\r\n";
12 8
13 sleep 2;
14
15 open(FILE, "embedded.svg"); 9 open(FILE, "embedded.svg");
16 while (<FILE>) { 10 while (<FILE>) {
17 print $_; 11 print $_;
18 } 12 }
19 close(FILE); 13 close(FILE);
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/misc/svg-image-in-content.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698