| 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.");
|
|
|