blob: e1743bc1d6d56cb9ef029c45fdc0e7003d5c42cf [file] [log] [blame]
// Copyright 2019 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(`Checks that inherited styles from the same source are not duplicated.\n`);
await TestRunner.loadModule('elements_test_runner');
await TestRunner.showPanel('elements');
await TestRunner.loadHTML(`
<style>
div {
color: red;
}
</style>
<div>
<div>
<div>
<div id="inspect">Text.</div>
</div>
</div>
</div>
`);
ElementsTestRunner.selectNodeAndWaitForStyles('inspect', step2);
async function step2() {
await ElementsTestRunner.dumpSelectedElementStyles(true, false, false);
TestRunner.completeTest();
}
})();