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

Side by Side Diff: LayoutTests/inspector/sources/debugger/async-callstack-events.html

Issue 335963004: DevTools: Instrument GenericEventQueue for async stacks. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: addressed Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/inspector/sources/debugger/async-callstack-events-expected.txt » ('j') | 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 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
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>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector/sources/debugger/async-callstack-events-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698