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

Side by Side Diff: LayoutTests/inspector/sources/debugger/debugger-uncaught-promise-on-dom-exception.html

Issue 665983002: DevTools: Fix flaky debugger-uncaught-promise-on-dom-exception.html (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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 | no next file » | 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/console-test.js"></script> 4 <script src="../../../http/tests/inspector/console-test.js"></script>
5 <script src="../../../http/tests/inspector/debugger-test.js"></script> 5 <script src="../../../http/tests/inspector/debugger-test.js"></script>
6 <script> 6 <script>
7 7
8 function testFunction() 8 function testFunction()
9 { 9 {
10 console.clear(); 10 console.clear();
(...skipping 27 matching lines...) Expand all
38 }, 0); 38 }, 0);
39 } 39 }
40 40
41 function test() 41 function test()
42 { 42 {
43 InspectorTest.setQuiet(true); 43 InspectorTest.setQuiet(true);
44 InspectorTest.startDebuggerTest(step1); 44 InspectorTest.startDebuggerTest(step1);
45 45
46 function step1() 46 function step1()
47 { 47 {
48 InspectorTest.addConsoleViewSniffer(addMessage, true);
49 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause); 48 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause);
50 } 49 }
51 50
52 function didPause(callFrames, reason, breakpointIds, asyncStackTrace) 51 function didPause(callFrames, reason, breakpointIds, asyncStackTrace)
53 { 52 {
53 InspectorTest.addConsoleViewSniffer(addMessage, true);
54 InspectorTest.evaluateInPage("runPromisesFromInspector()", resumeExecuti on); 54 InspectorTest.evaluateInPage("runPromisesFromInspector()", resumeExecuti on);
55 } 55 }
56 56
57 function resumeExecution() 57 function resumeExecution()
58 { 58 {
59 InspectorTest.resumeExecution(); 59 InspectorTest.resumeExecution();
60 } 60 }
61 61
62 function addMessage(uiMessage) 62 function addMessage(uiMessage)
63 { 63 {
(...skipping 10 matching lines...) Expand all
74 </script> 74 </script>
75 </head> 75 </head>
76 76
77 <body onload="runTest()"> 77 <body onload="runTest()">
78 <p> 78 <p>
79 Tests unhandled promise that was rejected with a DOM exception. 79 Tests unhandled promise that was rejected with a DOM exception.
80 </p> 80 </p>
81 81
82 </body> 82 </body>
83 </html> 83 </html>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698