BasicFunctionTest.java (9edf8282) | BasicFunctionTest.java (44cf0280) |
---|---|
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 --- 311 unchanged lines hidden (view full) --- 320 findDlgReplaceAll.click(); 321 sleep(1); 322 msgbox("Search key replaced 3 times.").ok(); 323 findDlg.close(); 324 sleep(1); 325 assertEquals( 326 "Apache Awesome OpenOffice is comprised of six personal productivity applications: a word processor (and its web-authoring component), spreadsheet, presentation graphics, drawing, equation editor, and database. Awesome OpenOffice is released on Windows, Solaris, Linux and Macintosh operation systems, with more communities joining, including a mature FreeBSD port. Awesome OpenOffice is localized, supporting over 110 languages worldwide. ", 327 copyAll()); | 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 --- 311 unchanged lines hidden (view full) --- 320 findDlgReplaceAll.click(); 321 sleep(1); 322 msgbox("Search key replaced 3 times.").ok(); 323 findDlg.close(); 324 sleep(1); 325 assertEquals( 326 "Apache Awesome OpenOffice is comprised of six personal productivity applications: a word processor (and its web-authoring component), spreadsheet, presentation graphics, drawing, equation editor, and database. Awesome OpenOffice is released on Windows, Solaris, Linux and Macintosh operation systems, with more communities joining, including a mature FreeBSD port. Awesome OpenOffice is localized, supporting over 110 languages worldwide. ", 327 copyAll()); |
328 discard(); |
|
328 } 329 330 @Test 331 public void testFillInSpreadsheet() { 332 String[][] expected1 = new String[][] { { "1" }, { "1" }, { "1" }, { "1" }, { "1" }, { "1" }, }; 333 String[][] expected2 = new String[][] { { "2" }, { "2" }, { "2" }, { "2" }, { "2" }, { "2" }, }; 334 String[][] expected3 = new String[][] { { "Hi friends", "Hi friends", "Hi friends", "Hi friends" } }; 335 String[][] expected4 = new String[][] { { "99999.999", "99999.999", "99999.999", "99999.999" } }; --- 333 unchanged lines hidden (view full) --- 669 typeKeys(sourceNumber); 670 typeKeys("<enter>"); 671 // Insert a function via Function Wizard Dialog: ABS 672 SCTool.selectRange("B1"); 673 app.dispatch(".uno:FunctionDialog"); 674 // SC_FunctionWizardDlg_FunctionList.doubleClick(5, 5); 675 scFunctionWizardDlgFunctionList.select("ABS"); 676 scFunctionWizardDlgNext.click(); // Use "Next" button | 329 } 330 331 @Test 332 public void testFillInSpreadsheet() { 333 String[][] expected1 = new String[][] { { "1" }, { "1" }, { "1" }, { "1" }, { "1" }, { "1" }, }; 334 String[][] expected2 = new String[][] { { "2" }, { "2" }, { "2" }, { "2" }, { "2" }, { "2" }, }; 335 String[][] expected3 = new String[][] { { "Hi friends", "Hi friends", "Hi friends", "Hi friends" } }; 336 String[][] expected4 = new String[][] { { "99999.999", "99999.999", "99999.999", "99999.999" } }; --- 333 unchanged lines hidden (view full) --- 670 typeKeys(sourceNumber); 671 typeKeys("<enter>"); 672 // Insert a function via Function Wizard Dialog: ABS 673 SCTool.selectRange("B1"); 674 app.dispatch(".uno:FunctionDialog"); 675 // SC_FunctionWizardDlg_FunctionList.doubleClick(5, 5); 676 scFunctionWizardDlgFunctionList.select("ABS"); 677 scFunctionWizardDlgNext.click(); // Use "Next" button |
677 scFunctionWizardDlgEdit1.inputKeys("A1"); | 678 scFunctionWizardDlgEdit1.typeKeys("A1"); |
678 scFunctionWizardDlg.ok(); 679 // Verify if the calculated result is equal to the expected result 680 assertEquals("The calculated result", expectedResult, SCTool.getCellText("B1")); 681 discard(); 682 } 683} | 679 scFunctionWizardDlg.ok(); 680 // Verify if the calculated result is equal to the expected result 681 assertEquals("The calculated result", expectedResult, SCTool.getCellText("B1")); 682 discard(); 683 } 684} |