#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 {
const UChar32 kWatch = …;
const UChar32 kEye = …;
const UChar32 kVS16 = …;
const UChar32 kHanBMP = …;
const UChar32 kHanSIP = …;
const UChar32 kVS17 = …;
const UChar kLead = …;
const UChar kTrail = …;
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) { … }
}
}