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

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

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 years, 1 month 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};
10 console.log(obj); 10 console.log(obj);
(...skipping 30 matching lines...) Expand all
41 } 41 }
42 42
43 function step5() 43 function step5()
44 { 44 {
45 InspectorTest.dumpConsoleMessagesIgnoreErrorStackFrames(); 45 InspectorTest.dumpConsoleMessagesIgnoreErrorStackFrames();
46 InspectorTest.completeTest(); 46 InspectorTest.completeTest();
47 } 47 }
48 48
49 function getValueElements() 49 function getValueElements()
50 { 50 {
51 var messageElement = WebInspector.ConsoleView.instance()._visibleViewMes sages[1].element(); 51 var messageElement = Console.ConsoleView.instance()._visibleViewMessages [1].element();
52 return messageElement.querySelectorAll("::shadow .value"); 52 return messageElement.querySelectorAll("::shadow .value");
53 } 53 }
54 54
55 function doubleClickTypeAndEnter(node, text) 55 function doubleClickTypeAndEnter(node, text)
56 { 56 {
57 var event = document.createEvent("MouseEvent"); 57 var event = document.createEvent("MouseEvent");
58 event.initMouseEvent("dblclick", true, true, null, 2); 58 event.initMouseEvent("dblclick", true, true, null, 2);
59 node.dispatchEvent(event); 59 node.dispatchEvent(event);
60 60
61 InspectorTest.addResult("Node was hidden after dblclick: " + node.classL ist.contains("hidden")); 61 InspectorTest.addResult("Node was hidden after dblclick: " + node.classL ist.contains("hidden"));
62 62
63 var messageElement = WebInspector.ConsoleView.instance()._visibleViewMes sages[1].element(); 63 var messageElement = Console.ConsoleView.instance()._visibleViewMessages [1].element();
64 var editPrompt = messageElement.querySelector("::shadow .text-prompt"); 64 var editPrompt = messageElement.querySelector("::shadow .text-prompt");
65 editPrompt.textContent = text; 65 editPrompt.textContent = text;
66 editPrompt.dispatchEvent(InspectorTest.createKeyEvent("Enter")); 66 editPrompt.dispatchEvent(InspectorTest.createKeyEvent("Enter"));
67 } 67 }
68 } 68 }
69 69
70 </script> 70 </script>
71 </head> 71 </head>
72 72
73 <body onload="runTest()"> 73 <body onload="runTest()">
74 <p> 74 <p>
75 Tests that property values can be edited inline in the console via double click. 75 Tests that property values can be edited inline in the console via double click.
76 </p> 76 </p>
77 77
78 </body> 78 </body>
79 </html> 79 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698