ChartDialogSetting.java (80a6f5c5) ChartDialogSetting.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

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

28import static testlib.gui.UIMap.*;
29
30import org.junit.After;
31import org.junit.Before;
32import org.junit.Rule;
33import org.junit.Test;
34import org.openoffice.test.common.Logger;
35
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

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

28import static testlib.gui.UIMap.*;
29
30import org.junit.After;
31import org.junit.Before;
32import org.junit.Rule;
33import org.junit.Test;
34import org.openoffice.test.common.Logger;
35
36import testlib.gui.AppTool;
37
36/**
37 * Test the setting about chart dialog in spreadsheet
38 */
39public class ChartDialogSetting {
40
38/**
39 * Test the setting about chart dialog in spreadsheet
40 */
41public class ChartDialogSetting {
42
41 @Rule
42 public Logger log = Logger.getLogger(this);
43
44 @Before
45 public void setUp() throws Exception {
46 app.start(true);
43 @Before
44 public void setUp() throws Exception {
45 app.start(true);
47
48 // Create a new spreadsheet document
49 app.dispatch("private:factory/scalc");
50 calc.waitForExistence(10, 2);
46 AppTool.newSpreadsheet();
51 app.dispatch(".uno:InsertObjectChart");
52 }
53
54 @After
55 public void tearDown() throws Exception {
47 app.dispatch(".uno:InsertObjectChart");
48 }
49
50 @After
51 public void tearDown() throws Exception {
52 app.stop();
56
57 }
58
59 /**
60 * Test cancel and back button in chart wizard dialog
61 *
62 * @throws java.lang.Exception
63 */
64 @Test
65 public void testChartDialogCancelBack() {
66 wizardNextButton.click();
53
54 }
55
56 /**
57 * Test cancel and back button in chart wizard dialog
58 *
59 * @throws java.lang.Exception
60 */
61 @Test
62 public void testChartDialogCancelBack() {
63 wizardNextButton.click();
67 assertTrue(chartRangeChooseTabPage.isEnabled());
64 assertTrue("Range Choose Tab is disable",chartRangeChooseTabPage.isEnabled());
68 wizardBackButton.click();
65 wizardBackButton.click();
69 assertTrue(chartTypeChooseTabPage.isEnabled());
66 assertTrue("Type Choose Tab is disable",chartTypeChooseTabPage.isEnabled());
70 chartWizard.cancel();
67 chartWizard.cancel();
71 assertFalse(chartWizard.exists());
68 assertFalse("Chart wizard not exist", chartWizard.exists());
72 }
73}
69 }
70}