chromium/third_party/blink/renderer/core/editing/state_machines/forward_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/forward_grapheme_boundary_state_machine.h"

#include "testing/gtest/include/gtest/gtest.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 forward_grapheme_boundary_state_machine_test {

// Notations:
// | indicates inidicates initial offset position.
// SOT indicates start of text.
// EOT indicates end 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
const UChar32 kRisU =;
// U+1F1F8 is REGIONAL INDICATOR SYMBOL LETTER S
const UChar32 kRisS =;

class ForwardGraphemeBoundaryStatemachineTest
    : public GraphemeStateMachineTestBase {};

TEST_F(ForwardGraphemeBoundaryStatemachineTest, DoNothingCase) {}

TEST_F(ForwardGraphemeBoundaryStatemachineTest, PrecedingText) {}

TEST_F(ForwardGraphemeBoundaryStatemachineTest, BrokenSurrogatePair) {}

TEST_F(ForwardGraphemeBoundaryStatemachineTest, BreakImmediately_BMP) {}

TEST_F(ForwardGraphemeBoundaryStatemachineTest,
       BreakImmediately_Supplementary) {}

TEST_F(ForwardGraphemeBoundaryStatemachineTest,
       NotBreakImmediatelyAfter_BMP_BMP) {}

TEST_F(ForwardGraphemeBoundaryStatemachineTest,
       NotBreakImmediatelyAfter_Supplementary_BMP) {}

TEST_F(ForwardGraphemeBoundaryStatemachineTest,
       NotBreakImmediatelyAfter_BMP_Supplementary) {}

TEST_F(ForwardGraphemeBoundaryStatemachineTest,
       NotBreakImmediatelyAfter_Supplementary_Supplementary) {}

TEST_F(ForwardGraphemeBoundaryStatemachineTest, MuchLongerCase) {}

TEST_F(ForwardGraphemeBoundaryStatemachineTest, singleFlags) {}

TEST_F(ForwardGraphemeBoundaryStatemachineTest, twoFlags) {}

TEST_F(ForwardGraphemeBoundaryStatemachineTest, oddNumberedFlags) {}

}  // namespace forward_grapheme_boundary_state_machine_test

}  // namespace blink