blob: 20df3f2a68538b2fb6850f6900833eda247a17ba [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.
#include "third_party/blink/renderer/core/layout/layout_table_col.h"
#include "third_party/blink/renderer/core/testing/core_unit_test_helper.h"
namespace blink {
using LayoutTableColTest = RenderingTest;
TEST_F(LayoutTableColTest, LocalVisualRect) {
SetBodyInnerHTML(R"HTML(
<table style='width: 200px; height: 200px'>
<col id='col1' style='visibility: hidden'>
<col id='col2' style='visibility: collapse'>
<col id='col3'>
<tr><td></td><td></td></tr>
</table>
)HTML");
EXPECT_EQ(LayoutRect(),
GetLayoutObjectByElementId("col1")->LocalVisualRect());
EXPECT_EQ(LayoutRect(),
GetLayoutObjectByElementId("col2")->LocalVisualRect());
EXPECT_EQ(LayoutRect(),
GetLayoutObjectByElementId("col3")->LocalVisualRect());
}
} // namespace blink