// 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 "core/layout/LayoutVideo.h"
#include "core/layout/LayoutTestHelper.h"
namespace blink {
using LayoutMediaTest = RenderingTest;
TEST_F(LayoutMediaTest, DisallowInlineChild) {
SetBodyInnerHTML(
""
"");
EXPECT_FALSE(GetLayoutObjectByElementId("video")->SlowFirstChild());
}
TEST_F(LayoutMediaTest, DisallowBlockChild) {
SetBodyInnerHTML(
""
"");
EXPECT_FALSE(GetLayoutObjectByElementId("video")->SlowFirstChild());
}
TEST_F(LayoutMediaTest, DisallowOutOfFlowPositionedChild) {
SetBodyInnerHTML(
""
"");
EXPECT_FALSE(GetLayoutObjectByElementId("video")->SlowFirstChild());
}
TEST_F(LayoutMediaTest, DisallowFloatingChild) {
SetBodyInnerHTML(
""
"");
EXPECT_FALSE(GetLayoutObjectByElementId("video")->SlowFirstChild());
}
} // namespace blink