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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/console/console-copy-treeoutline.html

Issue 1778683005: Drop remaining [LegacyInterfaceTypeChecking] for Selection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix more tests 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> 5 <script>
6 function prepareForTest() 6 function prepareForTest()
7 { 7 {
8 var anObject = { 8 var anObject = {
9 foo: 1, 9 foo: 1,
10 bar: "string" 10 bar: "string"
(...skipping 10 matching lines...) Expand all
21 InspectorTest.fixConsoleViewportDimensions(600, 200); 21 InspectorTest.fixConsoleViewportDimensions(600, 200);
22 var consoleView = WebInspector.ConsolePanel._view(); 22 var consoleView = WebInspector.ConsolePanel._view();
23 var viewport = consoleView._viewport; 23 var viewport = consoleView._viewport;
24 24
25 InspectorTest.runTestSuite([ 25 InspectorTest.runTestSuite([
26 function testSelectAll(next) 26 function testSelectAll(next)
27 { 27 {
28 viewport.forceScrollItemToBeFirst(0); 28 viewport.forceScrollItemToBeFirst(0);
29 29
30 // Set some initial selection in console. 30 // Set some initial selection in console.
31 var base = consoleView.itemElement(0); 31 var base = consoleView.itemElement(0).element();
32 window.getSelection().setBaseAndExtent(base, 0, base, 1); 32 window.getSelection().setBaseAndExtent(base, 0, base, 1);
33 33
34 // Try to select all messages. 34 // Try to select all messages.
35 document.execCommand("selectAll"); 35 document.execCommand("selectAll");
36 36
37 var text = viewport._selectedText(); 37 var text = viewport._selectedText();
38 InspectorTest.addResult("Selected text: " + text); 38 InspectorTest.addResult("Selected text: " + text);
39 next(); 39 next();
40 } 40 }
41 ]); 41 ]);
42 } 42 }
43 </script> 43 </script>
44 </head> 44 </head>
45 <body onload="prepareForTest()"> 45 <body onload="prepareForTest()">
46 <p>Tests that console copies tree outline messages properly.</p> 46 <p>Tests that console copies tree outline messages properly.</p>
47 </body> 47 </body>
48 </html> 48 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698