| Index: third_party/WebKit/LayoutTests/http/tests/inspector/sources/debugger/async-callstack-onload.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/sources/debugger/async-callstack-onload.html b/third_party/WebKit/LayoutTests/http/tests/inspector/sources/debugger/async-callstack-onload.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b3e33fa9125455de662a4bcd907481f966f8ad00
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/inspector/sources/debugger/async-callstack-onload.html
|
| @@ -0,0 +1,37 @@
|
| +<html>
|
| +<head>
|
| +<script src="../../inspector-test.js"></script>
|
| +<script src="../../debugger-test.js"></script>
|
| +<script>
|
| +
|
| +function testFunction()
|
| +{
|
| + var img = new Image();
|
| + img.onload = onImageLoaded;
|
| + img.onerror = onImageError;
|
| + img.src = 'resources/image.png';
|
| +
|
| + function onImageLoaded()
|
| + {
|
| + debugger;
|
| + img.src = 'not-found.png';
|
| + }
|
| +
|
| + function onImageError()
|
| + {
|
| + debugger;
|
| + }
|
| +}
|
| +
|
| +var test = function()
|
| +{
|
| + var totalDebuggerStatements = 2;
|
| + InspectorTest.runAsyncCallStacksTest(totalDebuggerStatements);
|
| +}
|
| +
|
| +</script>
|
| +</head>
|
| +<body onload="runTest()">
|
| +<p>Tests asynchronous call stacks for onload.</p>
|
| +</body>
|
| +</html>
|
|
|