Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / resources / slow-image-dimensions.php
blobc1fba395388e8cf026b906428636e8d99e73f1c6
1 <?php
2 $name = $_GET['name'];
3 $mimeType = $_GET['mimeType'];
4 $sleepTime = $_GET['sleep'];
5 $size = filesize($name);
7 usleep($sleepTime*1000);
9 header('Content-Type: ' . $mimeType);
10 header('Content-Length: ' . $size);
11 if (isset($_GET['expires']))
12 header('Cache-control: max-age=0');
13 else
14 header('Cache-control: max-age=86400');
16 $output = fopen("php://output", 'r+');
17 $file = fopen($name, "rb");
18 $buffer = fread($file, 16);
19 fwrite($output, $buffer, 16);
20 ob_flush();
21 flush();
23 usleep($sleepTime*1000);
25 $buffer = fread($file, $size - 16);
26 fwrite($output, $buffer, $size - 16);