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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/cache/resources/random-cached-image.cgi

Issue 2874073003: Add layout tests for ImageLoader::UpdateFromElement(kUpdateForcedReload) (Closed)
Patch Set: Comment Created 3 years, 7 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
OLDNEW
(Empty)
1 #!/usr/bin/perl -wT
2 # Returns a cacheable SVG image with random size and color.
3
4 print "Content-type: image/svg+xml\n";
5 print "Cache-control: max-age=60000\n";
6 print "ETag: \"98765\"\n";
7 print "\n";
8
9 my $width = int(rand(1000)) + 100;
10 my $height = int(rand(1000)) + 100;
11 my $r = int(rand(256));
12 my $g = int(rand(256));
13 my $b = int(rand(256));
14
15 print '<?xml version="1.0" encoding="UTF-8" standalone="no"?>';
16 print '<svg width="' . $width . '" height="' . $height . '"';
17 print ' xmlns="http://www.w3.org/2000/svg"';
18 print ' xmlns:xlink="http://www.w3.org/1999/xlink">';
19 print '<rect x="0" y="0" width="100%" height="100%" fill="rgb(' . $r . ', ' . $g . ', ' . $b . ')"></rect>';
20 print '</svg>';
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698