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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/debugger-save-to-temp-var.html

Issue 1808533002: DevTools: wrap console evaluation with user gesture indicator for convenience. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
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 var thisObj; 8 var thisObj;
9 9
10 function testFunction() 10 function testFunction()
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 return; 81 return;
82 } 82 }
83 83
84 function didEvaluate(result, wasThrown) 84 function didEvaluate(result, wasThrown)
85 { 85 {
86 InspectorTest.assertTrue(!wasThrown, "FAIL: was thrown. Expression: " + expression); 86 InspectorTest.assertTrue(!wasThrown, "FAIL: was thrown. Expression: " + expression);
87 WebInspector.panels.sources._saveToTempVariable(result); 87 WebInspector.panels.sources._saveToTempVariable(result);
88 InspectorTest.waitUntilNthMessageReceived(2, evaluateNext); 88 InspectorTest.waitUntilNthMessageReceived(2, evaluateNext);
89 } 89 }
90 90
91 WebInspector.context.flavor(WebInspector.ExecutionContext).evaluate(expr ession, "console", true, undefined, undefined, undefined, didEvaluate); 91 WebInspector.context.flavor(WebInspector.ExecutionContext).evaluate(expr ession, "console", true, undefined, undefined, undefined, undefined, didEvaluate );
92 } 92 }
93 93
94 function tearDown() 94 function tearDown()
95 { 95 {
96 InspectorTest.evaluateInPage("checkThisObject()", dumpConsoleMessages); 96 InspectorTest.evaluateInPage("checkThisObject()", dumpConsoleMessages);
97 } 97 }
98 98
99 function dumpConsoleMessages() 99 function dumpConsoleMessages()
100 { 100 {
101 InspectorTest.dumpConsoleMessagesIgnoreErrorStackFrames(); 101 InspectorTest.dumpConsoleMessagesIgnoreErrorStackFrames();
102 InspectorTest.completeDebuggerTest(); 102 InspectorTest.completeDebuggerTest();
103 } 103 }
104 } 104 }
105 105
106 </script> 106 </script>
107 </head> 107 </head>
108 108
109 <body onload="onload()"> 109 <body onload="onload()">
110 <p> 110 <p>
111 Tests saving objects to temporary variables while paused. 111 Tests saving objects to temporary variables while paused.
112 </p> 112 </p>
113 113
114 </body> 114 </body>
115 </html> 115 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698