ValidityDialogSetting.java (80a6f5c5) ValidityDialogSetting.java (57caf934)
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

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

20 *************************************************************/
21
22package fvt.gui.sc.validity;
23
24import static org.junit.Assert.*;
25import static testlib.gui.AppTool.*;
26import static testlib.gui.UIMap.*;
27
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

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

20 *************************************************************/
21
22package fvt.gui.sc.validity;
23
24import static org.junit.Assert.*;
25import static testlib.gui.AppTool.*;
26import static testlib.gui.UIMap.*;
27
28import java.io.File;
29
30import org.junit.After;
31import org.junit.Before;
32import org.junit.Ignore;
33import org.junit.Rule;
34import org.junit.Test;
35import org.openoffice.test.common.Logger;
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;
36import org.openoffice.test.vcl.IDList;
37import org.openoffice.test.vcl.widgets.VclMessageBox;
38
39import testlib.gui.SCTool;
40
41public class ValidityDialogSetting {
34
35import testlib.gui.SCTool;
36
37public class ValidityDialogSetting {
42 private static IDList idList = new IDList(new File("./ids"));
43 public static final VclMessageBox ActiveMsgBox = new VclMessageBox(idList.getId("UID_ACTIVE"), "Message on message box.");
44
45 @Rule
46 public Logger log = Logger.getLogger(this);
47
48 @Before
49 public void setUp() throws Exception {
50 app.start(true);
51

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

88 typeKeys("03/02/08");
89 typeKeys("<enter>");
90 assertEquals("03/02/08", SCTool.getCellText("A2"));
91
92 SCTool.selectRange("A3");
93 scInputBarInput.activate();
94 typeKeys("01/01/08");
95 typeKeys("<enter>");
38
39 @Rule
40 public Logger log = Logger.getLogger(this);
41
42 @Before
43 public void setUp() throws Exception {
44 app.start(true);
45

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

82 typeKeys("03/02/08");
83 typeKeys("<enter>");
84 assertEquals("03/02/08", SCTool.getCellText("A2"));
85
86 SCTool.selectRange("A3");
87 scInputBarInput.activate();
88 typeKeys("01/01/08");
89 typeKeys("<enter>");
96 assertEquals("Invalid value", ActiveMsgBox.getMessage());
97 ActiveMsgBox.ok();
90 assertEquals("Invalid value", activeMsgBox.getMessage());
91 activeMsgBox.ok();
98 assertEquals("", SCTool.getCellText("A3"));
99
100 SCTool.selectRange("A4");
101 scInputBarInput.activate();
102 typeKeys("03/01/08");
103 typeKeys("<enter>");
92 assertEquals("", SCTool.getCellText("A3"));
93
94 SCTool.selectRange("A4");
95 scInputBarInput.activate();
96 typeKeys("03/01/08");
97 typeKeys("<enter>");
104 assertEquals("Invalid value", ActiveMsgBox.getMessage());
105 ActiveMsgBox.ok();
98 assertEquals("Invalid value", activeMsgBox.getMessage());
99 activeMsgBox.ok();
106 assertEquals("", SCTool.getCellText("A4"));
107
108 SCTool.selectRange("A5");
109 scInputBarInput.activate();
110 typeKeys("01/02/08");
111 typeKeys("<enter>");
100 assertEquals("", SCTool.getCellText("A4"));
101
102 SCTool.selectRange("A5");
103 scInputBarInput.activate();
104 typeKeys("01/02/08");
105 typeKeys("<enter>");
112 assertEquals("Invalid value", ActiveMsgBox.getMessage());
113 ActiveMsgBox.ok();
106 assertEquals("Invalid value", activeMsgBox.getMessage());
107 activeMsgBox.ok();
114 assertEquals("", SCTool.getCellText("A5"));
115
116 SCTool.selectRange("B1");
117 scInputBarInput.activate();
118 typeKeys("02/29/08");
119 typeKeys("<enter>");
108 assertEquals("", SCTool.getCellText("A5"));
109
110 SCTool.selectRange("B1");
111 scInputBarInput.activate();
112 typeKeys("02/29/08");
113 typeKeys("<enter>");
120 assertEquals("Invalid value", ActiveMsgBox.getMessage());
121 ActiveMsgBox.ok();
114 assertEquals("Invalid value", activeMsgBox.getMessage());
115 activeMsgBox.ok();
122 assertEquals("", SCTool.getCellText("B1"));
123
124 SCTool.selectRange("B2");
125 scInputBarInput.activate();
126 typeKeys("test");
127 typeKeys("<enter>");
116 assertEquals("", SCTool.getCellText("B1"));
117
118 SCTool.selectRange("B2");
119 scInputBarInput.activate();
120 typeKeys("test");
121 typeKeys("<enter>");
128 assertEquals("Invalid value", ActiveMsgBox.getMessage());
129 ActiveMsgBox.ok();
122 assertEquals("Invalid value", activeMsgBox.getMessage());
123 activeMsgBox.ok();
130 assertEquals("", SCTool.getCellText("B2"));
131
132 SCTool.selectRange("B3");
133 scInputBarInput.activate();
134 typeKeys("39448");
135 typeKeys("<enter>");
124 assertEquals("", SCTool.getCellText("B2"));
125
126 SCTool.selectRange("B3");
127 scInputBarInput.activate();
128 typeKeys("39448");
129 typeKeys("<enter>");
136 assertEquals("Invalid value", ActiveMsgBox.getMessage());
137 ActiveMsgBox.ok();
130 assertEquals("Invalid value", activeMsgBox.getMessage());
131 activeMsgBox.ok();
138 assertEquals("", SCTool.getCellText("B3"));
139 }
140
141 /**
142 * test Allow Decimal equal in Validity.
143 */
144 @Test
145 public void testAllowDecimalEqual() {

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

159 typeKeys("0.33333333");
160 typeKeys("<enter>");
161 assertEquals("0.33333333", SCTool.getCellText("A1"));
162
163 SCTool.selectRange("A2");
164 scInputBarInput.activate();
165 typeKeys("=1/3");
166 typeKeys("<enter>");
132 assertEquals("", SCTool.getCellText("B3"));
133 }
134
135 /**
136 * test Allow Decimal equal in Validity.
137 */
138 @Test
139 public void testAllowDecimalEqual() {

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

153 typeKeys("0.33333333");
154 typeKeys("<enter>");
155 assertEquals("0.33333333", SCTool.getCellText("A1"));
156
157 SCTool.selectRange("A2");
158 scInputBarInput.activate();
159 typeKeys("=1/3");
160 typeKeys("<enter>");
167 assertEquals("Invalid value", ActiveMsgBox.getMessage());
168 ActiveMsgBox.ok();
161 assertEquals("Invalid value", activeMsgBox.getMessage());
162 activeMsgBox.ok();
169 assertEquals("", SCTool.getCellText("A2"));
170
171 SCTool.selectRange("A3");
172 scInputBarInput.activate();
173 typeKeys("0.3");
174 typeKeys("<enter>");
163 assertEquals("", SCTool.getCellText("A2"));
164
165 SCTool.selectRange("A3");
166 scInputBarInput.activate();
167 typeKeys("0.3");
168 typeKeys("<enter>");
175 assertEquals("Invalid value", ActiveMsgBox.getMessage());
176 ActiveMsgBox.ok();
169 assertEquals("Invalid value", activeMsgBox.getMessage());
170 activeMsgBox.ok();
177 assertEquals("", SCTool.getCellText("A3"));
178
179 SCTool.selectRange("A4");
180 scInputBarInput.activate();
181 typeKeys("0.333333333");
182 typeKeys("<enter>");
171 assertEquals("", SCTool.getCellText("A3"));
172
173 SCTool.selectRange("A4");
174 scInputBarInput.activate();
175 typeKeys("0.333333333");
176 typeKeys("<enter>");
183 assertEquals("Invalid value", ActiveMsgBox.getMessage());
184 ActiveMsgBox.ok();
177 assertEquals("Invalid value", activeMsgBox.getMessage());
178 activeMsgBox.ok();
185 assertEquals("", SCTool.getCellText("A4"));
186
187 SCTool.selectRange("B2");
188 scInputBarInput.activate();
189 typeKeys("test");
190 typeKeys("<enter>");
179 assertEquals("", SCTool.getCellText("A4"));
180
181 SCTool.selectRange("B2");
182 scInputBarInput.activate();
183 typeKeys("test");
184 typeKeys("<enter>");
191 assertEquals("Invalid value", ActiveMsgBox.getMessage());
192 ActiveMsgBox.ok();
185 assertEquals("Invalid value", activeMsgBox.getMessage());
186 activeMsgBox.ok();
193 assertEquals("", SCTool.getCellText("B2"));
194 }
195
196 /**
197 * test Allow Text length, greater than or equal to in Validity.
198 */
199 @Test
200 public void testAllowGreaterTextLength() {

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

220 typeKeys("test test ");
221 typeKeys("<enter>");
222 assertEquals("test test ", SCTool.getCellText("A2"));
223
224 SCTool.selectRange("A4");
225 scInputBarInput.activate();
226 typeKeys(" ");
227 typeKeys("<enter>");
187 assertEquals("", SCTool.getCellText("B2"));
188 }
189
190 /**
191 * test Allow Text length, greater than or equal to in Validity.
192 */
193 @Test
194 public void testAllowGreaterTextLength() {

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

214 typeKeys("test test ");
215 typeKeys("<enter>");
216 assertEquals("test test ", SCTool.getCellText("A2"));
217
218 SCTool.selectRange("A4");
219 scInputBarInput.activate();
220 typeKeys(" ");
221 typeKeys("<enter>");
228 assertEquals("Invalid value", ActiveMsgBox.getMessage());
229 ActiveMsgBox.ok();
222 assertEquals("Invalid value", activeMsgBox.getMessage());
223 activeMsgBox.ok();
230 assertEquals("", SCTool.getCellText("A4"));
231
232 SCTool.selectRange("A3");
233 scInputBarInput.activate();
234 typeKeys("Testatest");
235 typeKeys("<enter>");
224 assertEquals("", SCTool.getCellText("A4"));
225
226 SCTool.selectRange("A3");
227 scInputBarInput.activate();
228 typeKeys("Testatest");
229 typeKeys("<enter>");
236 assertEquals("Invalid value", ActiveMsgBox.getMessage());
237 ActiveMsgBox.ok();
230 assertEquals("Invalid value", activeMsgBox.getMessage());
231 activeMsgBox.ok();
238 assertEquals("", SCTool.getCellText("A3"));
239 }
240
241 /**
242 * test Allow Text length, less than in Validity.
243 */
244 @Ignore("Bug 93128")
245 public void testAllowLessThanTextLength() {

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

261 scValidityErrorAlertActionList.select("Information");
262 scValidityErrorMessageTitle.setText("Notes to enter");
263 scValidityErrorMessage.setText("Invalid value");
264 scValidityErrorAlertTabPage.ok();
265
266 SCTool.selectRange("A1");
267 scInputBarInput.activate();
268 typeKeys("testtesttesttest<enter>");
232 assertEquals("", SCTool.getCellText("A3"));
233 }
234
235 /**
236 * test Allow Text length, less than in Validity.
237 */
238 @Ignore("Bug 93128")
239 public void testAllowLessThanTextLength() {

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

255 scValidityErrorAlertActionList.select("Information");
256 scValidityErrorMessageTitle.setText("Notes to enter");
257 scValidityErrorMessage.setText("Invalid value");
258 scValidityErrorAlertTabPage.ok();
259
260 SCTool.selectRange("A1");
261 scInputBarInput.activate();
262 typeKeys("testtesttesttest<enter>");
269 ActiveMsgBox.ok();
263 activeMsgBox.ok();
270 assertEquals("testtesttesttest", SCTool.getCellText("A1"));
271
272 SCTool.selectRange("A2");
273 scInputBarInput.activate();
274 typeKeys("sfsafsddddddd<enter>");
264 assertEquals("testtesttesttest", SCTool.getCellText("A1"));
265
266 SCTool.selectRange("A2");
267 scInputBarInput.activate();
268 typeKeys("sfsafsddddddd<enter>");
275 ActiveMsgBox.cancel();
269 activeMsgBox.cancel();
276 assertEquals("", SCTool.getCellText("A2"));
277
278 SCTool.selectRange("A2");
279 scInputBarInput.activate();
280 typeKeys("10<enter>");
281 assertEquals("10", SCTool.getCellText("A2"));
282
283 SCTool.selectRange("A3");

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

315 scInputBarInput.activate();
316 typeKeys("a<enter>");
317 assertEquals("a", SCTool.getCellText("A1"));
318
319 SCTool.selectRange("B2");
320 scInputBarInput.activate();
321 typeKeys("test");
322 typeKeys("<enter>");
270 assertEquals("", SCTool.getCellText("A2"));
271
272 SCTool.selectRange("A2");
273 scInputBarInput.activate();
274 typeKeys("10<enter>");
275 assertEquals("10", SCTool.getCellText("A2"));
276
277 SCTool.selectRange("A3");

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

309 scInputBarInput.activate();
310 typeKeys("a<enter>");
311 assertEquals("a", SCTool.getCellText("A1"));
312
313 SCTool.selectRange("B2");
314 scInputBarInput.activate();
315 typeKeys("test");
316 typeKeys("<enter>");
323 assertEquals("Invalid value", ActiveMsgBox.getMessage());
324 ActiveMsgBox.ok();
317 assertEquals("Invalid value", activeMsgBox.getMessage());
318 activeMsgBox.ok();
325 assertEquals("", SCTool.getCellText("B2"));
326 }
327
328 /**
329 * test Allow time between in Validity.
330 */
331 @Test
332 public void testAllowTimeBetween() {

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

365 typeKeys("0.875");
366 typeKeys("<enter>");
367 assertEquals("0.875", SCTool.getCellText("A4"));
368
369 SCTool.selectRange("B1");
370 scInputBarInput.activate();
371 typeKeys("03:00:01");
372 typeKeys("<enter>");
319 assertEquals("", SCTool.getCellText("B2"));
320 }
321
322 /**
323 * test Allow time between in Validity.
324 */
325 @Test
326 public void testAllowTimeBetween() {

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

359 typeKeys("0.875");
360 typeKeys("<enter>");
361 assertEquals("0.875", SCTool.getCellText("A4"));
362
363 SCTool.selectRange("B1");
364 scInputBarInput.activate();
365 typeKeys("03:00:01");
366 typeKeys("<enter>");
373 assertEquals("Invalid value", ActiveMsgBox.getMessage());
374 ActiveMsgBox.ok();
367 assertEquals("Invalid value", activeMsgBox.getMessage());
368 activeMsgBox.ok();
375 assertEquals("", SCTool.getCellText("B1"));
376
377 SCTool.selectRange("B2");
378 scInputBarInput.activate();
379 typeKeys("20:59:59");
380 typeKeys("<enter>");
369 assertEquals("", SCTool.getCellText("B1"));
370
371 SCTool.selectRange("B2");
372 scInputBarInput.activate();
373 typeKeys("20:59:59");
374 typeKeys("<enter>");
381 assertEquals("Invalid value", ActiveMsgBox.getMessage());
382 ActiveMsgBox.ok();
375 assertEquals("Invalid value", activeMsgBox.getMessage());
376 activeMsgBox.ok();
383 assertEquals("", SCTool.getCellText("B2"));
384
385 SCTool.selectRange("B3");
386 scInputBarInput.activate();
387 typeKeys("1.126");
388 typeKeys("<enter>");
377 assertEquals("", SCTool.getCellText("B2"));
378
379 SCTool.selectRange("B3");
380 scInputBarInput.activate();
381 typeKeys("1.126");
382 typeKeys("<enter>");
389 assertEquals("Invalid value", ActiveMsgBox.getMessage());
390 ActiveMsgBox.ok();
383 assertEquals("Invalid value", activeMsgBox.getMessage());
384 activeMsgBox.ok();
391 assertEquals("", SCTool.getCellText("B3"));
392
393 SCTool.selectRange("B4");
394 scInputBarInput.activate();
395 typeKeys("0.874");
396 typeKeys("<enter>");
385 assertEquals("", SCTool.getCellText("B3"));
386
387 SCTool.selectRange("B4");
388 scInputBarInput.activate();
389 typeKeys("0.874");
390 typeKeys("<enter>");
397 assertEquals("Invalid value", ActiveMsgBox.getMessage());
398 ActiveMsgBox.ok();
391 assertEquals("Invalid value", activeMsgBox.getMessage());
392 activeMsgBox.ok();
399 assertEquals("", SCTool.getCellText("B4"));
400
401 SCTool.selectRange("C1");
402 scInputBarInput.activate();
403 typeKeys("test");
404 typeKeys("<enter>");
393 assertEquals("", SCTool.getCellText("B4"));
394
395 SCTool.selectRange("C1");
396 scInputBarInput.activate();
397 typeKeys("test");
398 typeKeys("<enter>");
405 assertEquals("Invalid value", ActiveMsgBox.getMessage());
406 ActiveMsgBox.ok();
399 assertEquals("Invalid value", activeMsgBox.getMessage());
400 activeMsgBox.ok();
407 assertEquals("", SCTool.getCellText("C1"));
408
409 SCTool.selectRange("C2");
410 scInputBarInput.activate();
411 typeKeys("24:00");
412 typeKeys("<enter>");
413 assertEquals("24:00:00", SCTool.getCellText("C2"));
414
415 SCTool.selectRange("C3");
416 scInputBarInput.activate();
417 typeKeys("12:00");
418 typeKeys("<enter>");
401 assertEquals("", SCTool.getCellText("C1"));
402
403 SCTool.selectRange("C2");
404 scInputBarInput.activate();
405 typeKeys("24:00");
406 typeKeys("<enter>");
407 assertEquals("24:00:00", SCTool.getCellText("C2"));
408
409 SCTool.selectRange("C3");
410 scInputBarInput.activate();
411 typeKeys("12:00");
412 typeKeys("<enter>");
419 assertEquals("Invalid value", ActiveMsgBox.getMessage());
420 ActiveMsgBox.ok();
413 assertEquals("Invalid value", activeMsgBox.getMessage());
414 activeMsgBox.ok();
421 assertEquals("", SCTool.getCellText("C3"));
422 }
423
424 /**
425 * test Allow time Greater than and equal to in Validity.
426 */
427 @Test
428 public void testAllowTimeGreaterThan() {

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

439 scValidityErrorMessageTitle.setText("warning to enter");
440 scValidityErrorMessage.setText("Invalid value");
441 scValidityErrorAlertTabPage.ok();
442
443 SCTool.selectRange("A1");
444 scInputBarInput.activate();
445 typeKeys("7:30");
446 typeKeys("<enter>");
415 assertEquals("", SCTool.getCellText("C3"));
416 }
417
418 /**
419 * test Allow time Greater than and equal to in Validity.
420 */
421 @Test
422 public void testAllowTimeGreaterThan() {

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

433 scValidityErrorMessageTitle.setText("warning to enter");
434 scValidityErrorMessage.setText("Invalid value");
435 scValidityErrorAlertTabPage.ok();
436
437 SCTool.selectRange("A1");
438 scInputBarInput.activate();
439 typeKeys("7:30");
440 typeKeys("<enter>");
447 assertEquals("Invalid value", ActiveMsgBox.getMessage());
448 ActiveMsgBox.ok();
441 assertEquals("Invalid value", activeMsgBox.getMessage());
442 activeMsgBox.ok();
449 assertEquals("07:30:00 AM", SCTool.getCellText("A1"));
450
451 SCTool.selectRange("A2");
452 scInputBarInput.activate();
453 typeKeys("6:00");
454 typeKeys("<enter>");
443 assertEquals("07:30:00 AM", SCTool.getCellText("A1"));
444
445 SCTool.selectRange("A2");
446 scInputBarInput.activate();
447 typeKeys("6:00");
448 typeKeys("<enter>");
455 assertEquals("Invalid value", ActiveMsgBox.getMessage());
456 ActiveMsgBox.cancel();
449 assertEquals("Invalid value", activeMsgBox.getMessage());
450 activeMsgBox.cancel();
457 assertEquals("", SCTool.getCellText("A2"));
458
459 SCTool.selectRange("A3");
460 scInputBarInput.activate();
461 typeKeys("8:00");
462 typeKeys("<enter>");
463 assertEquals("08:00:00 AM", SCTool.getCellText("A3"));
464 }

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

490 typeKeys("100");
491 typeKeys("<enter>");
492 assertEquals("100", SCTool.getCellText("A2"));
493
494 SCTool.selectRange("B1");
495 scInputBarInput.activate();
496 typeKeys("101");
497 typeKeys("<enter>");
451 assertEquals("", SCTool.getCellText("A2"));
452
453 SCTool.selectRange("A3");
454 scInputBarInput.activate();
455 typeKeys("8:00");
456 typeKeys("<enter>");
457 assertEquals("08:00:00 AM", SCTool.getCellText("A3"));
458 }

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

484 typeKeys("100");
485 typeKeys("<enter>");
486 assertEquals("100", SCTool.getCellText("A2"));
487
488 SCTool.selectRange("B1");
489 scInputBarInput.activate();
490 typeKeys("101");
491 typeKeys("<enter>");
498 assertEquals("Invalid value", ActiveMsgBox.getMessage());
499 ActiveMsgBox.ok();
492 assertEquals("Invalid value", activeMsgBox.getMessage());
493 activeMsgBox.ok();
500 assertEquals("", SCTool.getCellText("B1"));
501
502 SCTool.selectRange("B2");
503 scInputBarInput.activate();
504 typeKeys("45.5");
505 typeKeys("<enter>");
494 assertEquals("", SCTool.getCellText("B1"));
495
496 SCTool.selectRange("B2");
497 scInputBarInput.activate();
498 typeKeys("45.5");
499 typeKeys("<enter>");
506 assertEquals("Invalid value", ActiveMsgBox.getMessage());
507 ActiveMsgBox.ok();
500 assertEquals("Invalid value", activeMsgBox.getMessage());
501 activeMsgBox.ok();
508 assertEquals("", SCTool.getCellText("B2"));
509
510 SCTool.selectRange("C1");
511 scInputBarInput.activate();
512 typeKeys("test");
513 typeKeys("<enter>");
502 assertEquals("", SCTool.getCellText("B2"));
503
504 SCTool.selectRange("C1");
505 scInputBarInput.activate();
506 typeKeys("test");
507 typeKeys("<enter>");
514 assertEquals("Invalid value", ActiveMsgBox.getMessage());
515 ActiveMsgBox.ok();
508 assertEquals("Invalid value", activeMsgBox.getMessage());
509 activeMsgBox.ok();
516 assertEquals("", SCTool.getCellText("C1"));
517 }
518
519 /**
520 * test default message of Error Alert in Validity.
521 */
522 @Test
523 public void testDefaultErrorAlertMessage() {

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

531 scValidityShowErrorMessage.check();
532 scValidityErrorAlertActionList.select(0); // "Stop"
533 scValidityErrorAlertTabPage.ok();
534
535 SCTool.selectRange("A1");
536 scInputBarInput.activate();
537 typeKeys("13");
538 typeKeys("<enter>");
510 assertEquals("", SCTool.getCellText("C1"));
511 }
512
513 /**
514 * test default message of Error Alert in Validity.
515 */
516 @Test
517 public void testDefaultErrorAlertMessage() {

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

525 scValidityShowErrorMessage.check();
526 scValidityErrorAlertActionList.select(0); // "Stop"
527 scValidityErrorAlertTabPage.ok();
528
529 SCTool.selectRange("A1");
530 scInputBarInput.activate();
531 typeKeys("13");
532 typeKeys("<enter>");
539 assertEquals("OpenOffice.org Calc", ActiveMsgBox.getCaption());
533 assertEquals("OpenOffice.org Calc", activeMsgBox.getCaption());
540 // assertEquals("Invalid value.",ActiveMsgBox.getMessage()); // Can not
541 // verify in multi-language
534 // assertEquals("Invalid value.",ActiveMsgBox.getMessage()); // Can not
535 // verify in multi-language
542 ActiveMsgBox.ok();
536 activeMsgBox.ok();
543 assertEquals("", SCTool.getCellText("A1"));
544 }
545
546 /**
547 * test uncheck Error Alert in Validity.
548 */
549 @Test
550 public void testUncheckErrorAlert() {

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

591 scInputBarInput.activate();
592 typeKeys("test");
593 typeKeys("<enter>");
594
595 SCTool.selectRange("A1");
596 scInputBarInput.activate();
597 typeKeys("test32");
598 typeKeys("<enter>");
537 assertEquals("", SCTool.getCellText("A1"));
538 }
539
540 /**
541 * test uncheck Error Alert in Validity.
542 */
543 @Test
544 public void testUncheckErrorAlert() {

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

585 scInputBarInput.activate();
586 typeKeys("test");
587 typeKeys("<enter>");
588
589 SCTool.selectRange("A1");
590 scInputBarInput.activate();
591 typeKeys("test32");
592 typeKeys("<enter>");
599 assertEquals("Invalid value.", ActiveMsgBox.getMessage());
600 ActiveMsgBox.ok();
593 assertEquals("Invalid value.", activeMsgBox.getMessage());
594 activeMsgBox.ok();
601 assertEquals("", SCTool.getCellText("A1"));
602
603 SCTool.selectRange("B1");
604 scInputBarInput.activate();
605 typeKeys("test");
606 typeKeys("<enter>");
607 assertEquals("test", SCTool.getCellText("B1"));
608 }

--- 34 unchanged lines hidden ---
595 assertEquals("", SCTool.getCellText("A1"));
596
597 SCTool.selectRange("B1");
598 scInputBarInput.activate();
599 typeKeys("test");
600 typeKeys("<enter>");
601 assertEquals("test", SCTool.getCellText("B1"));
602 }

--- 34 unchanged lines hidden ---