OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../../http/tests/inspector/inspector-test.js"></script> |
4 <script src="../../../http/tests/inspector/debugger-test.js"></script> | 4 <script src="../../../http/tests/inspector/debugger-test.js"></script> |
5 <script> | 5 <script> |
6 | 6 |
7 function testFunction() | 7 function testFunction() |
8 { | 8 { |
9 for (var name in window) { | 9 for (var name in window) { |
10 if (/^doTest[A-Z]/.test(name) && typeof window[name] === "function") | 10 if (/^doTest[A-Z]/.test(name) && typeof window[name] === "function") |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 window.addEventListener("hashchange", onHashChange, false); | 44 window.addEventListener("hashchange", onHashChange, false); |
45 location.hash = location.hash + "x"; | 45 location.hash = location.hash + "x"; |
46 } | 46 } |
47 | 47 |
48 function onHashChange() | 48 function onHashChange() |
49 { | 49 { |
50 window.removeEventListener("hashchange", onHashChange, false); | 50 window.removeEventListener("hashchange", onHashChange, false); |
51 debugger; | 51 debugger; |
52 } | 52 } |
53 | 53 |
| 54 function doTestMediaEvents() |
| 55 { |
| 56 var video = document.getElementById("video"); |
| 57 video.addEventListener("play", onVideoPlay, false); |
| 58 video.play(); |
| 59 } |
| 60 |
| 61 function onVideoPlay() |
| 62 { |
| 63 video.removeEventListener("play", onVideoPlay, false); |
| 64 debugger; |
| 65 } |
| 66 |
54 var test = function() | 67 var test = function() |
55 { | 68 { |
56 var totalDebuggerStatements = 2; | 69 var totalDebuggerStatements = 3; |
57 var maxAsyncCallStackDepth = 4; | 70 var maxAsyncCallStackDepth = 4; |
58 InspectorTest.runAsyncCallStacksTest(totalDebuggerStatements, maxAsyncCallSt
ackDepth); | 71 InspectorTest.runAsyncCallStacksTest(totalDebuggerStatements, maxAsyncCallSt
ackDepth); |
59 } | 72 } |
60 | 73 |
61 </script> | 74 </script> |
62 </head> | 75 </head> |
63 | 76 |
64 <body onload="runTest()"> | 77 <body onload="runTest()"> |
| 78 <video id="video" src="../../../media/content/test.ogv"></video> |
65 <p id="content"> | 79 <p id="content"> |
66 Tests asynchronous call stacks for various DOM events. | 80 Tests asynchronous call stacks for various DOM events. |
67 </p> | 81 </p> |
68 </body> | 82 </body> |
69 </html> | 83 </html> |
OLD | NEW |