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

Unified Diff: third_party/WebKit/LayoutTests/inspector/sources/sources-panel-focus-editor-on-select.html

Issue 2224893004: DevTools: focus editor when SourcesPanel is shown (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/sources/sources-panel-focus-editor-on-select-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/inspector/sources/sources-panel-focus-editor-on-select.html
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/sources-panel-focus-editor-on-select.html b/third_party/WebKit/LayoutTests/inspector/sources/sources-panel-focus-editor-on-select.html
new file mode 100644
index 0000000000000000000000000000000000000000..604bcf6486cc43a090a6941dcc43638591a9dee8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/inspector/sources/sources-panel-focus-editor-on-select.html
@@ -0,0 +1,28 @@
+<html>
+<head>
+<script src="../../http/tests/inspector/inspector-test.js"></script>
+<script src="../../http/tests/inspector/debugger-test.js"></script>
+<script>
+function test()
+{
+ InspectorTest.showScriptSource("inspector-test.js", onSourceFrame);
+ function onSourceFrame(sourceFrame)
+ {
+ InspectorTest.addResult("initial: focused = " + sourceFrame.hasFocus());
+ WebInspector.inspectorView.showPanel("elements")
+ .then(() => WebInspector.inspectorView.showPanel("sources"))
+ .then(onPanelReselected.bind(null, sourceFrame));
+ }
+
+ function onPanelReselected(sourceFrame)
+ {
+ InspectorTest.addResult("after panel reselected: focused = " + sourceFrame.hasFocus());
+ InspectorTest.completeTest();
+ }
+};
+</script>
+</head>
+<body onload="runTest()">
+<p>Verifies that text editor has focus after panel re-selecting.</p>
+</body>
+</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/sources/sources-panel-focus-editor-on-select-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698