104bad30fSLiu Zhe /************************************************************** 204bad30fSLiu Zhe * 304bad30fSLiu Zhe * Licensed to the Apache Software Foundation (ASF) under one 404bad30fSLiu Zhe * or more contributor license agreements. See the NOTICE file 504bad30fSLiu Zhe * distributed with this work for additional information 604bad30fSLiu Zhe * regarding copyright ownership. The ASF licenses this file 704bad30fSLiu Zhe * to you under the Apache License, Version 2.0 (the 804bad30fSLiu Zhe * "License"); you may not use this file except in compliance 904bad30fSLiu Zhe * with the License. You may obtain a copy of the License at 1004bad30fSLiu Zhe * 1104bad30fSLiu Zhe * http://www.apache.org/licenses/LICENSE-2.0 1204bad30fSLiu Zhe * 1304bad30fSLiu Zhe * Unless required by applicable law or agreed to in writing, 1404bad30fSLiu Zhe * software distributed under the License is distributed on an 1504bad30fSLiu Zhe * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 1604bad30fSLiu Zhe * KIND, either express or implied. See the License for the 1704bad30fSLiu Zhe * specific language governing permissions and limitations 1804bad30fSLiu Zhe * under the License. 1904bad30fSLiu Zhe * 2004bad30fSLiu Zhe *************************************************************/ 2104bad30fSLiu Zhe 2204bad30fSLiu Zhe /** 2304bad30fSLiu Zhe * 2404bad30fSLiu Zhe */ 2580a6f5c5SLiu Zhe package fvt.gui.sc.filter; 2695269d92SLiu Zhe 2722a14f28SLiu Zhe import static org.junit.Assert.*; 28b4d2d410SLiu Zhe import static testlib.gui.AppTool.*; 2995269d92SLiu Zhe import static testlib.gui.UIMap.*; 3004bad30fSLiu Zhe 3104bad30fSLiu Zhe import org.junit.After; 3204bad30fSLiu Zhe import org.junit.Before; 3304bad30fSLiu Zhe import org.junit.Ignore; 3404bad30fSLiu Zhe import org.junit.Rule; 35ba41a487SLiu Zhe import org.junit.Test; 3622a14f28SLiu Zhe import org.openoffice.test.common.Logger; 3795269d92SLiu Zhe 38b4d2d410SLiu Zhe import testlib.gui.SCTool; 3904bad30fSLiu Zhe 4004bad30fSLiu Zhe /** 4104bad30fSLiu Zhe * Test cases about Data->Filter in spreadsheet 4204bad30fSLiu Zhe */ 4304bad30fSLiu Zhe public class Fitler { 4404bad30fSLiu Zhe 4504bad30fSLiu Zhe @Rule 4622a14f28SLiu Zhe public Logger log = Logger.getLogger(this); 4704bad30fSLiu Zhe 4804bad30fSLiu Zhe @Before 4904bad30fSLiu Zhe public void setUp() throws Exception { 504d3496b1SLiu Zhe app.start(true); 5104bad30fSLiu Zhe 5204bad30fSLiu Zhe // Create a new spreadsheet document 533816404dSLiu Zhe app.dispatch("private:factory/scalc"); 5404bad30fSLiu Zhe } 5504bad30fSLiu Zhe 5604bad30fSLiu Zhe @After 5704bad30fSLiu Zhe public void tearDown() throws Exception { 5822a14f28SLiu Zhe 5904bad30fSLiu Zhe } 6004bad30fSLiu Zhe 6104bad30fSLiu Zhe /** 6204bad30fSLiu Zhe * 633816404dSLiu Zhe * Verify 2+ won't be treated as 2 6404bad30fSLiu Zhe */ 6583ae2205SHerbert Dürr @Ignore("Bug #120076") 66*4a13b48eSLi Feng Wang @Test 6704bad30fSLiu Zhe public void testAutoFilterWithPlusSign() { 6822a14f28SLiu Zhe String expect = "2+"; 69b4d2d410SLiu Zhe SCTool.selectRange("A1"); 7004bad30fSLiu Zhe typeKeys(expect + "<enter>"); 71b4d2d410SLiu Zhe assertEquals(expect, SCTool.getCellText("A1")); 7204bad30fSLiu Zhe } 7304bad30fSLiu Zhe } 74