Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / sw / qa / core / layout / sortedobjs.cxx
blob471dd48a8b0c7286e34bd7683cf8486eaeceb312
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #include <swmodeltestbase.hxx>
12 namespace
14 /// Covers sw/source/core/layout/sortedobjs.cxx fixes.
15 class Test : public SwModelTestBase
17 public:
18 Test()
19 : SwModelTestBase("/sw/qa/core/layout/data/")
24 CPPUNIT_TEST_FIXTURE(Test, testSortedObjsInsert)
26 // Given a document with two anchored objects, one is a fly frame in the header and the other is
27 // a group shape where one inner shape has an associated fly frame:
28 // When importing that document:
29 // Then make sure that we don't try to do binary search on an unsorted container that leads to a
30 // crash in debug builds:
31 createSwDoc("sorted-objs-insert.docx");
35 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */