#include "third_party/blink/renderer/core/editing/surrounding_text.h"
#include <memory>
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/dom/range.h"
#include "third_party/blink/renderer/core/dom/text.h"
#include "third_party/blink/renderer/core/editing/ephemeral_range.h"
#include "third_party/blink/renderer/core/editing/position.h"
#include "third_party/blink/renderer/core/editing/selection_template.h"
#include "third_party/blink/renderer/core/html/forms/text_control_element.h"
#include "third_party/blink/renderer/core/html/html_element.h"
#include "third_party/blink/renderer/core/testing/dummy_page_holder.h"
#include "third_party/blink/renderer/core/testing/page_test_base.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
namespace blink {
class SurroundingTextTest : public PageTestBase { … };
void SurroundingTextTest::SetUp() { … }
void SurroundingTextTest::SetHTML(const String& content) { … }
EphemeralRange SurroundingTextTest::Select(int start, int end) { … }
TEST_F(SurroundingTextTest, BasicCaretSelection) { … }
TEST_F(SurroundingTextTest, BasicRangeSelection) { … }
TEST_F(SurroundingTextTest, TreeCaretSelection) { … }
TEST_F(SurroundingTextTest, TreeRangeSelection) { … }
TEST_F(SurroundingTextTest, TextAreaSelection) { … }
TEST_F(SurroundingTextTest, EmptyInputElementWithChild) { … }
TEST_F(SurroundingTextTest, ButtonsAndParagraph) { … }
TEST_F(SurroundingTextTest, SelectElementAndText) { … }
TEST_F(SurroundingTextTest, FieldsetElementAndText) { … }
TEST_F(SurroundingTextTest, ButtonScriptAndComment) { … }
TEST_F(SurroundingTextTest, ButtonAndLongDiv) { … }
TEST_F(SurroundingTextTest, EmptySurroundingTextInOptionsAndButton) { … }
TEST_F(SurroundingTextTest, SingleDotParagraph) { … }
}