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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/console/console-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/sources-test.js"></script> 5 <script src="../../http/tests/inspector/sources-test.js"></script>
6 <script> 6 <script>
7 7
8 function onload() 8 function onload()
9 { 9 {
10 for (var i = 3; i < 8; ++i) 10 for (var i = 3; i < 8; ++i)
(...skipping 29 matching lines...) Expand all
40 return; 40 return;
41 } 41 }
42 42
43 function didEvaluate(result, wasThrown) 43 function didEvaluate(result, wasThrown)
44 { 44 {
45 InspectorTest.assertTrue(!wasThrown, "FAIL: was thrown. Expression: " + expression); 45 InspectorTest.assertTrue(!wasThrown, "FAIL: was thrown. Expression: " + expression);
46 WebInspector.panels.sources._saveToTempVariable(result); 46 WebInspector.panels.sources._saveToTempVariable(result);
47 InspectorTest.waitUntilNthMessageReceived(2, evaluateNext); 47 InspectorTest.waitUntilNthMessageReceived(2, evaluateNext);
48 } 48 }
49 49
50 WebInspector.context.flavor(WebInspector.ExecutionContext).evaluate(expr ession, "console", true, undefined, undefined, undefined, didEvaluate); 50 WebInspector.context.flavor(WebInspector.ExecutionContext).evaluate(expr ession, "console", true, undefined, undefined, undefined, undefined, didEvaluate );
51 } 51 }
52 52
53 function dumpConsoleMessages() 53 function dumpConsoleMessages()
54 { 54 {
55 InspectorTest.dumpConsoleMessagesIgnoreErrorStackFrames(); 55 InspectorTest.dumpConsoleMessagesIgnoreErrorStackFrames();
56 InspectorTest.completeTest(); 56 InspectorTest.completeTest();
57 } 57 }
58 58
59 evaluateNext(); 59 evaluateNext();
60 } 60 }
61 61
62 </script> 62 </script>
63 </head> 63 </head>
64 64
65 <body onload="onload()"> 65 <body onload="onload()">
66 <p> 66 <p>
67 Tests saving objects to temporary variables. 67 Tests saving objects to temporary variables.
68 </p> 68 </p>
69 69
70 </body> 70 </body>
71 </html> 71 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698