OLD | NEW |
(Empty) | |
| 1 <html> |
| 2 <head> |
| 3 <script src="../../inspector-test.js"></script> |
| 4 <script src="../../debugger-test.js"></script> |
| 5 <script> |
| 6 |
| 7 function testFunction() |
| 8 { |
| 9 var img = new Image(); |
| 10 img.onload = onImageLoaded; |
| 11 img.onerror = onImageError; |
| 12 img.src = 'resources/image.png'; |
| 13 |
| 14 function onImageLoaded() |
| 15 { |
| 16 debugger; |
| 17 img.src = 'not-found.png'; |
| 18 } |
| 19 |
| 20 function onImageError() |
| 21 { |
| 22 debugger; |
| 23 } |
| 24 } |
| 25 |
| 26 var test = function() |
| 27 { |
| 28 var totalDebuggerStatements = 2; |
| 29 InspectorTest.runAsyncCallStacksTest(totalDebuggerStatements); |
| 30 } |
| 31 |
| 32 </script> |
| 33 </head> |
| 34 <body onload="runTest()"> |
| 35 <p>Tests asynchronous call stacks for onload.</p> |
| 36 </body> |
| 37 </html> |
OLD | NEW |