blob: a4e5135c3f096f832f55fb91df39fbe18f849883 [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(`Verifies that inspector figures out overloaded properties correctly.\n`);
await TestRunner.loadModule('elements_test_runner');
await TestRunner.showPanel('elements');
await TestRunner.loadHTML(`
<style>
div {
margin: 1px;
border: 1px solid black;
}
#inspect {
margin-top: 1px;
margin-left: 1px;
margin-right: 1px;
margin-bottom: 1px;
font: 10px Arial;
}
.container {
font-size: 10px;
border: 0;
}
</style>
<div class="container">
<div id="inspect">Text.</div>
</div>
`);
ElementsTestRunner.selectNodeAndWaitForStyles('inspect', step2);
function step2() {
ElementsTestRunner.dumpSelectedElementStyles(true, false, false);
TestRunner.completeTest();
}
})();