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

Unified Diff: third_party/WebKit/LayoutTests/inspector/quick-open/command-menu.html

Issue 2721723002: DevTools: Restore show panel commands in CommandMenu (Closed)
Patch Set: Test Created 3 years, 10 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/quick-open/command-menu-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/quick-open/command-menu.html
diff --git a/third_party/WebKit/LayoutTests/inspector/quick-open/command-menu.html b/third_party/WebKit/LayoutTests/inspector/quick-open/command-menu.html
new file mode 100644
index 0000000000000000000000000000000000000000..efba0abb0886a13aa439c21b1a95c83ec97255f0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/inspector/quick-open/command-menu.html
@@ -0,0 +1,44 @@
+<html>
+<head>
+<script src="../../http/tests/inspector/inspector-test.js"></script>
+<script type="text/javascript">
+function test()
+{
+ self.runtime.loadModulePromise('quick_open').then(() => {
+ var categories = new Set();
+ var commands = new Map();
+ QuickOpen.commandMenu.commands().forEach(command => {
+ categories.add(command.category());
+ commands.set(command.category() + ': ' + command.title(), command);
+ });
+
+ InspectorTest.addResult("Categories active:");
+ Array.from(categories).sort().forEach(category => InspectorTest.addResult("Has category: " + category));
+
+ InspectorTest.addResult("");
+ var whitelist = ["Panel: Show Console", "Drawer: Show Console", "Appearance: Switch to dark theme", "DevTools: Auto-open DevTools for popups"];
+ whitelist.forEach(item => {
+ if (!commands.has(item))
+ InspectorTest.addResult(item + " is MISSING");
+ });
+
+ InspectorTest.addResult("Switching to console panel");
+ try {
+ commands.get("Panel: Show Console")._executeHandler().then(() => {
+ InspectorTest.addResult("Current panel: " + UI.inspectorView.currentPanelDeprecated().name);
+ InspectorTest.completeTest();
+ });
+ }
+ catch (e) {
+ InspectorTest.addResult(e);
+ InspectorTest.completeTest();
+ }
+ });
+}
+
+</script>
+</head>
+<body onload="runTest()">
+<p>Test that the command menu is properly filled.</p>
+</body>
+</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/quick-open/command-menu-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698