View | Details | Raw Unified | Return to issue 120797
Collapse All | Expand All

(-)source/testcase/uno/sc/rowcolumn/ResizeHideShowRowColumn.java (-22 / +1 lines)
Lines 20-26 Link Here
20
import com.sun.star.table.XCellRange;
20
import com.sun.star.table.XCellRange;
21
import com.sun.star.frame.XModel;
21
import com.sun.star.frame.XModel;
22
import com.sun.star.frame.XController;
22
import com.sun.star.frame.XController;
23
import com.sun.star.frame.XStorable;
24
import com.sun.star.sheet.XSpreadsheetView;
23
import com.sun.star.sheet.XSpreadsheetView;
25
24
26
25
Lines 74-82 Link Here
74
    PropSet = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, aColumnObj);
73
    PropSet = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, aColumnObj);
75
    
74
    
76
    //Verify the default values of specified column A1
75
    //Verify the default values of specified column A1
77
    int expectedDefaultWidth = 2267;
78
    
79
    assertEquals("Verify default width value is 2267.", expectedDefaultWidth, PropSet.getPropertyValue("Width"));
80
    assertTrue("Verify column is visible as default.",  (Boolean) PropSet.getPropertyValue("IsVisible"));
76
    assertTrue("Verify column is visible as default.",  (Boolean) PropSet.getPropertyValue("IsVisible"));
81
    
77
    
82
    //Resize width of column A1 to "6001"
78
    //Resize width of column A1 to "6001"
Lines 169-177 Link Here
169
    PropSet = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, aRowObj );
165
    PropSet = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, aRowObj );
170
    
166
    
171
    //Verify the default values of specified Row 1
167
    //Verify the default values of specified Row 1
172
    int expectedDefaultHeight = 453;
173
    
174
    assertEquals("Verify default width value is 453.", expectedDefaultHeight, PropSet.getPropertyValue("Height"));
175
    assertTrue("Verify column is visible as default.",  (Boolean) PropSet.getPropertyValue("IsVisible"));
168
    assertTrue("Verify column is visible as default.",  (Boolean) PropSet.getPropertyValue("IsVisible"));
176
169
177
    //Resize Height of Row 1 to "5001"
170
    //Resize Height of Row 1 to "5001"
Lines 227-251 Link Here
227
    PropSet = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, aRowObj);
220
    PropSet = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, aRowObj);
228
221
229
    //Verify the values of specified Row 1 after resize
222
    //Verify the values of specified Row 1 after resize
230
    assertEquals("Verify current width value is 5001 after hide it.", expectedHeight, PropSet.getPropertyValue("Height"));
223
    assertEquals("Verify current height value is 5001 after hide it.", expectedHeight, PropSet.getPropertyValue("Height"));
231
    assertFalse("Verify column is invisible.",  (Boolean) PropSet.getPropertyValue("IsVisible"));
224
    assertFalse("Verify column is invisible.",  (Boolean) PropSet.getPropertyValue("IsVisible"));
232
225
233
    }
226
    }
234
227
235
/* Save file after open file.
236
* 
237
* @param xSpreadsheetDocument
238
* @throws Exception
239
*/
240
public static void save(XSpreadsheetDocument xSpreadsheetDocument)
241
		throws Exception {
242
243
	XStorable scStorable = (XStorable) UnoRuntime.queryInterface(
244
			XStorable.class, xSpreadsheetDocument);
245
	scStorable.store();
246
247
    }
248
249
}
228
}
250
229
251
230

Return to issue 120797