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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/images/size-failure.html

Issue 1549253002: Make fast/images/size-failure.html not crash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/images/resources/size-failure.gif ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script> 3 <script>
4 if (window.testRunner) { 4 if (window.testRunner) {
5 testRunner.dumpAsText(); 5 testRunner.dumpAsText();
6 testRunner.waitUntilDone(); 6 testRunner.waitUntilDone();
7 }
7 8
8 // Force a pixel dump to cover raterization issues if any. 9 window.onload = function() {
9 onload = function() { 10 if (!window.testRunner)
10 testRunner.capturePixelsAsyncThen(function() { 11 return;
11 testRunner.notifyDone(); 12 // Force a pixel dump to cover raterization issues if any.
12 }); 13 window.testRunner.capturePixelsAsyncThen(function() {
13 }; 14 window.testRunner.notifyDone();
14 } 15 });
15 </script> 16 };
16 17 </script>
17 </head> 18 </head>
18 <body> 19 <body>
19 <!-- This previously tried to read the size of the image when 20 <!-- This previously tried to read the size of the image when
20 ImageDecoder::m_failed was true, triggering either an assert or a 21 ImageDecoder::m_failed was true, triggering either an assert or a
21 read of random memory. Thanks to Robert Swiecki for the test case. --> 22 read of random memory. Thanks to Robert Swiecki for the test case. -->
22 <img src="resources/size-failure.gif"> 23 <img src="resources/size-failure.gif">
23 <p>PASS</p> 24 <p>PASS</p>
24 </body> 25 </body>
25 </html> 26 </html>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/images/resources/size-failure.gif ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698