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

// Copyright 2020 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/stretchy_operator_shaper.h"
#include "base/memory/scoped_refptr.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/platform/fonts/font.h"
#include "third_party/blink/renderer/platform/fonts/opentype/open_type_math_test_fonts.h"
#include "third_party/blink/renderer/platform/fonts/opentype/open_type_types.h"
#include "third_party/blink/renderer/platform/fonts/shaping/shape_result_inline_headers.h"
#include "third_party/blink/renderer/platform/fonts/shaping/shape_result_test_info.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"
#include "third_party/blink/renderer/platform/wtf/text/character_names.h"

namespace blink {

namespace {

float kSizeError =;

const ShapeResultTestInfo* TestInfo(const ShapeResult* result) {}

}  // namespace

class StretchyOperatorShaperTest : public FontTestBase {};

// See blink/web_tests/external/wpt/mathml/tools/operator-dictionary.py and
// blink/renderer/platform/fonts/opentype/open_type_math_test_fonts.h.
TEST_F(StretchyOperatorShaperTest, GlyphVariants) {}

// This test performs similar checks for shaping glyph assemblies to the ones of
// StretchyOperatorShaperTest.GlyphVariants, but the glyphs involved have their
// ink ascents equal to their ink descents. The glyphs used and their advances
// should remain exactly the same. Horizontal assemblies now use the ink
// ascent/descent of the glyphs but vertical assemblies should be normalized to
// a zero ink descent (see crbug.com/1409380).
TEST_F(StretchyOperatorShaperTest, GlyphVariantsCenteredOnBaseline) {}

// See blink/web_tests/external/wpt/mathml/tools/operator-dictionary.py and
// blink/renderer/platform/fonts/opentype/open_type_math_test_fonts.h.
TEST_F(StretchyOperatorShaperTest, NonBMPCodePoint) {}

// See third_party/blink/web_tests/external/wpt/mathml/tools/largeop.py and
// blink/renderer/platform/fonts/opentype/open_type_math_test_fonts.h
TEST_F(StretchyOperatorShaperTest, MathItalicCorrection) {}

}  // namespace blink