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

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

Issue 374903002: DevTools: Async call stacks for Promises and Object.observe. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 6 years, 5 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
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/debugger-test.js"></script>
5 <script>
6 var obj = {};
7
8 function testFunction()
9 {
10 setTimeout(timeout1, 0);
11 }
12
13 function timeout1()
14 {
15 Object.observe(obj, observer);
16 setTimeout(timeout2, 0);
17 }
18
19 function timeout2()
20 {
21 addProperties();
22 }
23
24 function addProperties()
25 {
26 obj.foo = 1;
27 obj.bar = 2;
28 }
29
30 function observer()
31 {
32 debugger;
33 }
34
35 var test = function()
36 {
37 var totalDebuggerStatements = 1;
38 var maxAsyncCallStackDepth = 4;
39 InspectorTest.runAsyncCallStacksTest(totalDebuggerStatements, maxAsyncCallSt ackDepth);
40 }
41
42 </script>
43 </head>
44
45 <body onload="runTest()">
46 <p>
47 Tests asynchronous call stacks for Object.observe().
48 </p>
49
50 </body>
51 </html>
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/inspector/sources/debugger/async-callstack-object-observe-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698