DrawingOrPresentationDocumentTest.java (67e470da) DrawingOrPresentationDocumentTest.java (3a4108e5)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 74 unchanged lines hidden (view full) ---

83 public void verifySingleModificationDocumentState() throws com.sun.star.uno.Exception
84 {
85 final XShapes firstPageShapes = getFirstPageShapes();
86 assertEquals( "there should be one shape, not more, not less", 1, firstPageShapes.getCount() );
87
88 final Object shape = firstPageShapes.getByIndex(0);
89 verifyShapeGeometry( shape, BIG_CIRCLE_SIZE, BIG_CIRCLE_SIZE );
90 final XPropertySet shapeProps = UnoRuntime.queryInterface( XPropertySet.class, shape );
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 74 unchanged lines hidden (view full) ---

83 public void verifySingleModificationDocumentState() throws com.sun.star.uno.Exception
84 {
85 final XShapes firstPageShapes = getFirstPageShapes();
86 assertEquals( "there should be one shape, not more, not less", 1, firstPageShapes.getCount() );
87
88 final Object shape = firstPageShapes.getByIndex(0);
89 verifyShapeGeometry( shape, BIG_CIRCLE_SIZE, BIG_CIRCLE_SIZE );
90 final XPropertySet shapeProps = UnoRuntime.queryInterface( XPropertySet.class, shape );
91 assertEquals( "wrong circle tpye", CIRCLE_TYPE.getValue(), ((CircleKind)shapeProps.getPropertyValue( "CircleKind" )).getValue() );
91 assertEquals( "wrong circle type", CIRCLE_TYPE.getValue(), ((CircleKind)shapeProps.getPropertyValue( "CircleKind" )).getValue() );
92 //assertEquals( "wrong circle fill color", FILL_COLOR, ((Integer)shapeProps.getPropertyValue( "FillColor" )).intValue() );
93 // disable this particular check: A bug in the drawing layer API restores the FillColor to its
94 // default value upon re-insertion. This is issue #i115080#
95 }
96
97 public int doMultipleModifications() throws com.sun.star.uno.Exception
98 {
99 // add a simple centered shape to the first page

--- 118 unchanged lines hidden ---
92 //assertEquals( "wrong circle fill color", FILL_COLOR, ((Integer)shapeProps.getPropertyValue( "FillColor" )).intValue() );
93 // disable this particular check: A bug in the drawing layer API restores the FillColor to its
94 // default value upon re-insertion. This is issue #i115080#
95 }
96
97 public int doMultipleModifications() throws com.sun.star.uno.Exception
98 {
99 // add a simple centered shape to the first page

--- 118 unchanged lines hidden ---