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

Unified Diff: third_party/WebKit/LayoutTests/inspector/sources/css-outline-dialog.html

Issue 2783233005: DevTools: Move JavaScript and CSS outline into QuickOpen (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/sources/javascript-outline-dialog.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/inspector/sources/css-outline-dialog.html
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/css-outline-dialog.html b/third_party/WebKit/LayoutTests/inspector/sources/css-outline-dialog.html
index 6d4057b035d3f5faf7306f05fe84be07aff8ba61..5e5397226589fe7cd31e31c8ded2342d94047d10 100644
--- a/third_party/WebKit/LayoutTests/inspector/sources/css-outline-dialog.html
+++ b/third_party/WebKit/LayoutTests/inspector/sources/css-outline-dialog.html
@@ -14,13 +14,17 @@ function test()
function onSourceShown(sourceFrame)
{
textEditor = sourceFrame.textEditor;
- InspectorTest.addSniffer(Sources.StyleSheetOutlineDialog.prototype, "refresh", onDialogFulfilled);
- UI.panels.sources._sourcesView._showOutlineDialog();
+ InspectorTest.addSniffer(Sources.OutlineQuickOpen.prototype, "refresh", onQuickOpenFulfilled);
+ UI.panels.sources._sourcesView._showOutlineQuickOpen();
}
- function onDialogFulfilled()
+ function onQuickOpenFulfilled()
{
- Sources.StyleSheetOutlineDialog._instanceForTests.selectItem(1, "");
+ InspectorTest.addSniffer(Common.Revealer, "revealPromise", (revealable, omitFocus, promise) => promise.then(revealed));
+ this.selectItem(1, "");
+ }
+
+ function revealed() {
var selection = textEditor.selection();
if (!selection.isEmpty()) {
InspectorTest.addResult("ERROR: selection is not empty.");
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/sources/javascript-outline-dialog.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698