chromium/third_party/blink/renderer/core/editing/state_machines/backward_grapheme_boundary_state_machine_test.cc

// Copyright 2016 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/state_machines/backward_grapheme_boundary_state_machine.h"

#include "third_party/blink/renderer/core/editing/state_machines/state_machine_test_util.h"
#include "third_party/blink/renderer/platform/wtf/text/character_names.h"

namespace blink {

namespace backward_grapheme_boundary_state_machine_test {

// Notations:
// SOT indicates start of text.
// [Lead] indicates broken lonely lead surrogate.
// [Trail] indicates broken lonely trail surrogate.
// [U] indicates regional indicator symbol U.
// [S] indicates regional indicator symbol S.

// kWatch kVS16, kEye kVS16 are valid standardized variants.
const UChar32 kWatch =;
const UChar32 kEye =;
const UChar32 kVS16 =;

// kHanBMP KVS17, kHanSIP kVS17 are valie IVD sequences.
const UChar32 kHanBMP =;
const UChar32 kHanSIP =;
const UChar32 kVS17 =;

// Following lead/trail values are used for invalid surrogate pairs.
const UChar kLead =;
const UChar kTrail =;

// U+1F1FA is REGIONAL INDICATOR SYMBOL LETTER U
// U+1F1F8 is REGIONAL INDICATOR SYMBOL LETTER S
const UChar32 kRisU =;
const UChar32 kRisS =;

class BackwardGraphemeBoundaryStatemachineTest
    : public GraphemeStateMachineTestBase {};

TEST_F(BackwardGraphemeBoundaryStatemachineTest, DoNothingCase) {}

TEST_F(BackwardGraphemeBoundaryStatemachineTest, BrokenSurrogatePair) {}

TEST_F(BackwardGraphemeBoundaryStatemachineTest, BreakImmediately_BMP) {}

TEST_F(BackwardGraphemeBoundaryStatemachineTest,
       BreakImmediately_SupplementaryPlane) {}

TEST_F(BackwardGraphemeBoundaryStatemachineTest,
       NotBreakImmediatelyBefore_BMP_BMP) {}

TEST_F(BackwardGraphemeBoundaryStatemachineTest,
       NotBreakImmediatelyBefore_Supplementary_BMP) {}

TEST_F(BackwardGraphemeBoundaryStatemachineTest,
       NotBreakImmediatelyBefore_BMP_Supplementary) {}

TEST_F(BackwardGraphemeBoundaryStatemachineTest,
       NotBreakImmediatelyBefore_Supplementary_Supplementary) {}

TEST_F(BackwardGraphemeBoundaryStatemachineTest, MuchLongerCase) {}

TEST_F(BackwardGraphemeBoundaryStatemachineTest, Flags_singleFlag) {}

TEST_F(BackwardGraphemeBoundaryStatemachineTest, Flags_twoFlags) {}

TEST_F(BackwardGraphemeBoundaryStatemachineTest, Flags_oddNumberedRIS) {}

}  // namespace backward_grapheme_boundary_state_machine_test

}  // namespace blink