| Index: LayoutTests/http/tests/misc/resources/image-checks-for-viewport-width.php
|
| diff --git a/LayoutTests/http/tests/misc/resources/image-checks-for-viewport-width.php b/LayoutTests/http/tests/misc/resources/image-checks-for-viewport-width.php
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..97675cd8c11f96cf8d64d4ccb3b8661263e375c4
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/misc/resources/image-checks-for-viewport-width.php
|
| @@ -0,0 +1,12 @@
|
| +<?php
|
| + $vw = $_SERVER["HTTP_VIEWPORT_WIDTH"];
|
| + $expected_vw = $_GET["viewport"];
|
| +
|
| + if ((isset($expected_vw) && $vw == $expected_vw) || (isset($vw) && !isset($expected_vw))) {
|
| + $fn = fopen("compass.jpg", "r");
|
| + fpassthru($fn);
|
| + fclose($fn);
|
| + exit;
|
| + }
|
| + header("HTTP/1.1 417 Expectation failed");
|
| +?>
|
|
|