| Index: third_party/WebKit/LayoutTests/inspector/extensions/extensions-resources.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector/extensions/extensions-resources.html b/third_party/WebKit/LayoutTests/inspector/extensions/extensions-resources.html
|
| index b45d79837829afe3061913faea0d978ed4a053b4..1617d2403ce1ba41a98dea2df5517ea8c8c185fd 100644
|
| --- a/third_party/WebKit/LayoutTests/inspector/extensions/extensions-resources.html
|
| +++ b/third_party/WebKit/LayoutTests/inspector/extensions/extensions-resources.html
|
| @@ -26,14 +26,15 @@ function initialize_ExtensionResourceTests()
|
|
|
| InspectorTest.clickOnURL = function()
|
| {
|
| - WebInspector.ConsolePanel.show();
|
| - WebInspector.ConsoleView.instance()._updateMessageList();
|
| - var xpathResult = document.evaluate("//a[starts-with(., 'test-script.js')]",
|
| - WebInspector.ConsoleView.instance().element, null, XPathResult.ANY_UNORDERED_NODE_TYPE, null);
|
| -
|
| - var click = document.createEvent("MouseEvent");
|
| - click.initMouseEvent("click", true, true);
|
| - xpathResult.singleNodeValue.dispatchEvent(click);
|
| + WebInspector.viewManager.showView("console").then(() => {
|
| + WebInspector.ConsoleView.instance()._updateMessageList();
|
| + var xpathResult = document.evaluate("//a[starts-with(., 'test-script.js')]",
|
| + WebInspector.ConsoleView.instance().element, null, XPathResult.ANY_UNORDERED_NODE_TYPE, null);
|
| +
|
| + var click = document.createEvent("MouseEvent");
|
| + click.initMouseEvent("click", true, true);
|
| + xpathResult.singleNodeValue.dispatchEvent(click);
|
| + });
|
| }
|
|
|
| InspectorTest.waitForStyleSheetChangedEvent = function(reply)
|
|
|