#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 {
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 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) { … }
}
}