Fitler.java (4a13b48e) | Fitler.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 --- 21 unchanged lines hidden (view full) --- 30 31import org.junit.After; 32import org.junit.Before; 33import org.junit.Ignore; 34import org.junit.Rule; 35import org.junit.Test; 36import org.openoffice.test.common.Logger; 37 | 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 --- 21 unchanged lines hidden (view full) --- 30 31import org.junit.After; 32import org.junit.Before; 33import org.junit.Ignore; 34import org.junit.Rule; 35import org.junit.Test; 36import org.openoffice.test.common.Logger; 37 |
38import testlib.gui.AppTool; |
|
38import testlib.gui.SCTool; 39 40/** 41 * Test cases about Data->Filter in spreadsheet 42 */ 43public class Fitler { 44 | 39import testlib.gui.SCTool; 40 41/** 42 * Test cases about Data->Filter in spreadsheet 43 */ 44public class Fitler { 45 |
45 @Rule 46 public Logger log = Logger.getLogger(this); 47 | |
48 @Before 49 public void setUp() throws Exception { 50 app.start(true); | 46 @Before 47 public void setUp() throws Exception { 48 app.start(true); |
51 52 // Create a new spreadsheet document 53 app.dispatch("private:factory/scalc"); | 49 AppTool.newSpreadsheet(); |
54 } 55 56 @After 57 public void tearDown() throws Exception { | 50 } 51 52 @After 53 public void tearDown() throws Exception { |
54 app.stop(); |
|
58 59 } 60 61 /** 62 * 63 * Verify 2+ won't be treated as 2 64 */ | 55 56 } 57 58 /** 59 * 60 * Verify 2+ won't be treated as 2 61 */ |
65 @Ignore("Bug #120076") | 62 @Ignore("Bug #120076 2+ and 2 will be filter out at the same time") |
66 @Test 67 public void testAutoFilterWithPlusSign() { 68 String expect = "2+"; 69 SCTool.selectRange("A1"); 70 typeKeys(expect + "<enter>"); | 63 @Test 64 public void testAutoFilterWithPlusSign() { 65 String expect = "2+"; 66 SCTool.selectRange("A1"); 67 typeKeys(expect + "<enter>"); |
71 assertEquals(expect, SCTool.getCellText("A1")); | 68 assertEquals("expect 2+ not display correctly",expect, SCTool.getCellText("A1")); |
72 } 73} | 69 } 70} |