chromium/third_party/blink/renderer/platform/fonts/shaping/shape_result_view_test.cc

// Copyright 2018 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/platform/fonts/shaping/shape_result_view.h"

#include <unicode/uscript.h>

#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/platform/fonts/character_range.h"
#include "third_party/blink/renderer/platform/fonts/font.h"
#include "third_party/blink/renderer/platform/fonts/font_cache.h"
#include "third_party/blink/renderer/platform/fonts/font_test_utilities.h"
#include "third_party/blink/renderer/platform/fonts/shaping/harfbuzz_shaper.h"
#include "third_party/blink/renderer/platform/fonts/shaping/shape_result.h"
#include "third_party/blink/renderer/platform/fonts/shaping/shape_result_test_info.h"
#include "third_party/blink/renderer/platform/fonts/shaping/shaping_line_breaker.h"
#include "third_party/blink/renderer/platform/testing/font_test_base.h"
#include "third_party/blink/renderer/platform/testing/font_test_helpers.h"
#include "third_party/blink/renderer/platform/testing/unit_test_helpers.h"

namespace blink {

class ShapeResultViewTest : public FontTestBase {};

TEST_F(ShapeResultViewTest, ExpandRange) {}

// http://crbug.com/1221008
TEST_F(ShapeResultViewTest,
       ExpandRangeToIncludePartialGlyphsWithCombiningCharacter) {}

TEST_F(ShapeResultViewTest, LatinSingleView) {}

TEST_F(ShapeResultViewTest, ArabicSingleView) {}

TEST_F(ShapeResultViewTest, PreviousSafeToBreak) {}

TEST_F(ShapeResultViewTest, LatinMultiRun) {}

TEST_F(ShapeResultViewTest, LatinCompositeView) {}

TEST_F(ShapeResultViewTest, MixedScriptsCompositeView) {}

TEST_F(ShapeResultViewTest, TrimEndOfView) {}

TEST_F(ShapeResultViewTest, MarkerAndTrailingSpace) {}

TEST_F(ShapeResultViewTest, SpacesInLTR) {}

// http://crbug.com/1160582
TEST_F(ShapeResultViewTest, SpacesInRTL) {}

TEST_F(ShapeResultViewTest, TabulationCharactersInLTR) {}

// http://crbug.com/1255310
TEST_F(ShapeResultViewTest, TabulationCharactersInRTL) {}

// https://crbug.com/1304876
// In a text containing only Latin characters and without ligatures (or where
// ligatures are not close to the end of the view), PreviousSafeToBreakOffset in
// some cases used to return the length of the view, rather than a position into
// the view.
TEST_F(ShapeResultViewTest, PreviousSafeOffsetInsideView) {}

}  // namespace blink