blob: bffd61b0627c80975af84ca8c4fd89c99ae2077d [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
(async function() {
TestRunner.addResult(`Tests that slots that are not in a shadow tree can be inspected.\n`);
await TestRunner.loadModule('console_test_runner');
await TestRunner.loadModule('elements_test_runner');
await TestRunner.showPanel('elements');
await TestRunner.loadHTML(`
<p id="description"></p>
<slot id="test1"><span>test</span></slot>
`);
TestRunner.overlayModel.setInspectMode(Protocol.Overlay.InspectMode.SearchForNode).then(finishTest);
ConsoleTestRunner.evaluateInConsole('inspect(test1)');
function finishTest() {
TestRunner.addResult('Inspect successful');
TestRunner.completeTest();
}
})();