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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/console/console-edit-property-value.html

Issue 2800573002: DevTools: editing property values should wrap object literals similar to console (Closed)
Patch Set: Created 3 years, 8 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> 5 <script>
6 6
7 function logToConsole() 7 function logToConsole()
8 { 8 {
9 var obj = {a: 1, b: "foo", c: null}; 9 var obj = {a: 1, b: "foo", c: null, d: 2};
10 console.log(obj); 10 console.log(obj);
11 } 11 }
12 12
13 var test = function() 13 var test = function()
14 { 14 {
15 InspectorTest.evaluateInConsole("logToConsole()", step1); 15 InspectorTest.evaluateInConsole("logToConsole()", step1);
16 16
17 function step1() 17 function step1()
18 { 18 {
19 InspectorTest.expandConsoleMessages(step2); 19 InspectorTest.expandConsoleMessages(step2);
(...skipping 15 matching lines...) Expand all
35 35
36 function step4() 36 function step4()
37 { 37 {
38 var valueElements = getValueElements(); 38 var valueElements = getValueElements();
39 doubleClickTypeAndEnter(valueElements[2], "[1, 2, 3]"); 39 doubleClickTypeAndEnter(valueElements[2], "[1, 2, 3]");
40 InspectorTest.waitForRemoteObjectsConsoleMessages(step5); 40 InspectorTest.waitForRemoteObjectsConsoleMessages(step5);
41 } 41 }
42 42
43 function step5() 43 function step5()
44 { 44 {
45 var valueElements = getValueElements();
46 doubleClickTypeAndEnter(valueElements[3], "{x: 2}");
47 InspectorTest.waitForRemoteObjectsConsoleMessages(step6);
48 }
49
50 function step6()
51 {
45 InspectorTest.dumpConsoleMessagesIgnoreErrorStackFrames(); 52 InspectorTest.dumpConsoleMessagesIgnoreErrorStackFrames();
46 InspectorTest.completeTest(); 53 InspectorTest.completeTest();
47 } 54 }
48 55
49 function getValueElements() 56 function getValueElements()
50 { 57 {
51 var messageElement = Console.ConsoleView.instance()._visibleViewMessages [1].element(); 58 var messageElement = Console.ConsoleView.instance()._visibleViewMessages [1].element();
52 return messageElement.querySelector(".console-message-text *").shadowRoo t.querySelectorAll(".value"); 59 return messageElement.querySelector(".console-message-text *").shadowRoo t.querySelectorAll(".value");
53 } 60 }
54 61
(...skipping 15 matching lines...) Expand all
70 </script> 77 </script>
71 </head> 78 </head>
72 79
73 <body onload="runTest()"> 80 <body onload="runTest()">
74 <p> 81 <p>
75 Tests that property values can be edited inline in the console via double click. 82 Tests that property values can be edited inline in the console via double click.
76 </p> 83 </p>
77 84
78 </body> 85 </body>
79 </html> 86 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698