chromium/third_party/blink/renderer/core/editing/serializers/styled_markup_serializer_test.cc

// Copyright 2015 The Chromium Authors
// 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/editing/serializers/styled_markup_serializer.h"

#include "third_party/blink/renderer/core/dom/text.h"
#include "third_party/blink/renderer/core/editing/testing/editing_test_base.h"

namespace blink {

// Returns the first mismatching index in |input1| and |input2|.
static size_t Mismatch(const std::string& input1, const std::string& input2) {}

// This is smoke test of |StyledMarkupSerializer|. Full testing will be done
// in web tests.
class StyledMarkupSerializerTest : public EditingTestBase {};

template <typename Strategy>
std::string StyledMarkupSerializerTest::Serialize(
    const CreateMarkupOptions& options) {}

template <typename Strategy>
std::string StyledMarkupSerializerTest::SerializePart(
    const PositionTemplate<Strategy>& start,
    const PositionTemplate<Strategy>& end,
    const CreateMarkupOptions& options) {}

TEST_F(StyledMarkupSerializerTest, TextOnly) {}

TEST_F(StyledMarkupSerializerTest, BlockFormatting) {}

TEST_F(StyledMarkupSerializerTest, FormControlInput) {}

TEST_F(StyledMarkupSerializerTest, FormControlInputRange) {}

TEST_F(StyledMarkupSerializerTest, FormControlSelect) {}

TEST_F(StyledMarkupSerializerTest, FormControlTextArea) {}

TEST_F(StyledMarkupSerializerTest, HeadingFormatting) {}

TEST_F(StyledMarkupSerializerTest, InlineFormatting) {}

TEST_F(StyledMarkupSerializerTest, Mixed) {}

TEST_F(StyledMarkupSerializerTest, ShadowTreeDistributeOrder) {}

TEST_F(StyledMarkupSerializerTest, ShadowTreeInput) {}

TEST_F(StyledMarkupSerializerTest, ShadowTreeNested) {}

TEST_F(StyledMarkupSerializerTest, ShadowTreeInterchangedNewline) {}

TEST_F(StyledMarkupSerializerTest, StyleDisplayNone) {}

TEST_F(StyledMarkupSerializerTest, StyleDisplayNoneAndNewLines) {}

TEST_F(StyledMarkupSerializerTest, ShadowTreeStyle) {}

// TODO(crbug.com/1157146): This test breaks without Shadow DOM v0.
TEST_F(StyledMarkupSerializerTest, DISABLED_AcrossShadow) {}

TEST_F(StyledMarkupSerializerTest, AcrossInvisibleElements) {}

TEST_F(StyledMarkupSerializerTest, DisplayContentsStyle) {}

}  // namespace blink