/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #include #include #include #include #include #include namespace basegfx { class b2dpolyrange : public CppUnit::TestFixture { private: public: void check() { B2DPolyRange aRange; aRange.appendElement(B2DRange(0, 0, 1, 1), B2VectorOrientation::Positive); aRange.appendElement(B2DRange(2, 2, 3, 3), B2VectorOrientation::Positive); CPPUNIT_ASSERT_EQUAL_MESSAGE("simple poly range - count", sal_uInt32(2), aRange.count()); CPPUNIT_ASSERT_EQUAL_MESSAGE("simple poly range - first element", B2DRange(0, 0, 1, 1), std::get<0>(aRange.getElement(0))); CPPUNIT_ASSERT_EQUAL_MESSAGE("simple poly range - second element", B2DRange(2, 2, 3, 3), std::get<0>(aRange.getElement(1))); // B2DPolyRange relies on correctly orientated rects const B2DRange aRect(0, 0, 1, 1); CPPUNIT_ASSERT_EQUAL_MESSAGE("createPolygonFromRect - correct orientation", B2VectorOrientation::Positive, utils::getOrientation(utils::createPolygonFromRect(aRect))); } // Change the following lines only, if you add, remove or rename // member functions of the current class, // because these macros are need by auto register mechanism. CPPUNIT_TEST_SUITE(b2dpolyrange); CPPUNIT_TEST(check); CPPUNIT_TEST_SUITE_END(); }; } CPPUNIT_TEST_SUITE_REGISTRATION(basegfx::b2dpolyrange); /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ ra/co-23.05 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2020-08-31add missing initializers about physics animations to AnimationNode classSarper Akdemir
2020-08-22add bounciness velocity and density options to physics animationsSarper Akdemir
2020-08-20make physics based animation effects importable-exportableSarper Akdemir
2020-04-18loplugin:flatten in accessibilityNoel Grandin
2019-11-22Extend loplugin:external to warn about classesStephan Bergmann
2019-08-23tdf#39593 extract UnoTunnelId comparison to template functionArkadiy Illarionov
2019-07-31Improved loplugin:stringconstant (now that GCC 7 supports it): animationsStephan Bergmann
2019-05-23tdf#42949 Fix IWYU warnings in: animations/ eventattacher/ i18nutil/Gabor Kelemen
2019-04-06clang-tidy modernize-avoid-c-arrays in animationsArkadiy Illarionov
2019-03-27Remove unused using declarations in directories [a-d]*Gabor Kelemen
2018-09-17New loplugin:externalStephan Bergmann
2018-09-05loplugin:simplifyconstruct in accessibility..bridgesNoel Grandin
2018-07-09Add missing sal/log.hxx headersGabor Kelemen
2017-12-11loplugin:salcall fix functionsNoel Grandin
2017-11-04Replace lists by vectors in animation parts (sd/animations)Julien Nabet
2017-06-15use more SAL_N_ELEMENTS part 3Noel Grandin
2017-05-16loplugin:comparisonwithconstant in avmediaNoel Grandin
2017-04-21gbuild: Remove MSVC 2013 legacy codeDavid Ostrovsky
2017-03-03Fix typosAndrea Gelmini
2017-02-15Drop :: prefix from std in [a-b]*/Tor Lillqvist
2017-02-06Add missing #includesStephan Bergmann
2017-02-01makeAny->Any in accessibility..avmediaNoel Grandin
2017-01-26Remove dynamic exception specificationsStephan Bergmann
2016-11-23loplugin:unnecessaryoverride (dtors) in animationsStephan Bergmann
2016-09-13loplugin:override: No more need for the "MSVC dtor override" workaroundStephan Bergmann
2016-09-05tdf#43157 - Clean up OSL_ASSERT, DBG_ASSERT, etc.Gökhan Gurbetoğlu
2016-08-02tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctorMuhammet Kara
2016-07-08loplugin:redundantcast: redundant static_casts in animationsStephan Bergmann
2016-02-09Remove excess newlinesChris Sherlock
2016-01-25InterfaceContainer2 with vector instead of SequenceNoel Grandin
2015-11-15use initialiser for Sequence<OUString>Noel Grandin
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann
2015-10-12Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann
2015-07-29chmod -xTor Lillqvist
2015-07-17com::sun::uno->css in avmedia and animationsNoel Grandin
2015-07-06tdf#88206: replace cppu::WeakImplHelper1 with cppu::WeakImplHelperTakeshi Abe
2015-05-08Rephrase comparisons between bool and sal_BoolStephan Bergmann
2015-05-04cppcheck: noExplicitConstructorCaolán McNamara
2015-05-02cppcheck: noExplicitConstructorCaolán McNamara
2015-04-15remove unnecessary use of void in function declarationsNoel Grandin
2015-03-17Fix various XServiceInfo implementationsStephan Bergmann
2015-03-12native-code: animcore_component_getFactory -> ctorsMiklos Vajna
2015-03-11Clean up previous commitStephan Bergmann
2015-03-11animations: convert animcore.component to constructor usageChris Sherlock
2014-11-18cppuhelper: clean up public headers with include-what-you-useMichael Stahl
2014-10-29remove unnecessary 'using namespace rtl' declarationsNoel Grandin