summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/images/size-failure.html
blob: b4da4b568c1bad08da7166f81b0cd937afff54bf (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
<html>
<head>
<script>
if (window.testRunner) {
  testRunner.dumpAsText();
  testRunner.waitUntilDone();
}

window.onload = function() {
  if (!window.testRunner)
    return;
  // Force a pixel dump to cover raterization issues if any.
  window.testRunner.capturePixelsAsyncThen(function() {
    window.testRunner.notifyDone();
  });
};
</script>
</head>
<body>
  <!-- This previously tried to read the size of the image when
       ImageDecoder::m_failed was true, triggering either an assert or a
       read of random memory. Thanks to Robert Swiecki for the test case. -->
  <img src="resources/size-failure.gif">
  <p>PASS</p>
</body>
</html>