blob: 356999ee4157f5e914a5cca4bc2d535f4b24436c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
<html>
<head>
<script>
if (window.testRunner) {
testRunner.dumpAsText()
testRunner.waitUntilDone();
}
function test() {
var image = document.getElementById("testImage");
var result = document.getElementById("result");
if (image.width == 128 && image.height == 128)
result.innerHTML = "PASS";
else
result.innerHTML = "FAIL";
if (window.testRunner)
testRunner.notifyDone();
}
</script>
</head>
<body>
Tests that a subresource is loaded if the server expects an Accept
header to provide it.<br>
<img id="testImage" src="resources/image-checks-for-accept.php" onload="test()" onerror="test()"/>
<div id="result"/>
</body>
</html>
|