ValidityDialogSetting.java (4a13b48e) ValidityDialogSetting.java (424494b0)
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

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

27
28import org.junit.After;
29import org.junit.Before;
30import org.junit.Ignore;
31import org.junit.Rule;
32import org.junit.Test;
33import org.openoffice.test.common.Logger;
34
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

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

27
28import org.junit.After;
29import org.junit.Before;
30import org.junit.Ignore;
31import org.junit.Rule;
32import org.junit.Test;
33import org.openoffice.test.common.Logger;
34
35import testlib.gui.AppTool;
35import testlib.gui.SCTool;
36
37public class ValidityDialogSetting {
36import testlib.gui.SCTool;
37
38public class ValidityDialogSetting {
38
39 @Rule
40 public Logger log = Logger.getLogger(this);
41
39
42 @Before
43 public void setUp() throws Exception {
44 app.start(true);
40 @Before
41 public void setUp() throws Exception {
42 app.start(true);
45
46 // New a spreadsheet, select cell range, open Validity dialog
47 app.dispatch("private:factory/scalc");
48 calc.waitForExistence(10, 2);
43 AppTool.newSpreadsheet();
49 SCTool.selectRange("A1:C5");
50 app.dispatch(".uno:Validation");
51 }
52
53 @After
54 public void tearDown() throws Exception {
55 app.stop();
56 }

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

233 }
234
235 /**
236 * test Allow Text length, less than in Validity.
237 */
238 @Test
239 public void testAllowLessThanTextLength() {
240
44 SCTool.selectRange("A1:C5");
45 app.dispatch(".uno:Validation");
46 }
47
48 @After
49 public void tearDown() throws Exception {
50 app.stop();
51 }

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

228 }
229
230 /**
231 * test Allow Text length, less than in Validity.
232 */
233 @Test
234 public void testAllowLessThanTextLength() {
235
241// app.dispatch(".uno:Validation");
242
243 scValidityCriteriaTabpage.select();
244 scValidityCriteriaAllowList.select(7); // "Text length"
245 scValidityDecimalCompareOperator.select(1); // "less than"
246 scValiditySourceInput.setText("10");
247
248 scValidityInputHelpTabPage.select();
249 scValidityInputHelpCheckbox.check();
250 scValidityInputHelpTitle.setText("Help Info Title");

--- 386 unchanged lines hidden ---
236 scValidityCriteriaTabpage.select();
237 scValidityCriteriaAllowList.select(7); // "Text length"
238 scValidityDecimalCompareOperator.select(1); // "less than"
239 scValiditySourceInput.setText("10");
240
241 scValidityInputHelpTabPage.select();
242 scValidityInputHelpCheckbox.check();
243 scValidityInputHelpTitle.setText("Help Info Title");

--- 386 unchanged lines hidden ---