source: josm/test/functional/DeleteTest.java@ 285

Last change on this file since 285 was 285, checked in by imi, 17 years ago
  • fixed test dependencies
  • added more functional tests
File size: 797 bytes
RevLine 
[285]1import org.openstreetmap.josm.Main;
2
3import framework.FunctionalTestCase;
4
5
6public class DeleteTest extends FunctionalTestCase {
7
8 public void test() throws Exception {
9 key("ctrl-n", "n");
10 click(100,400);
11 key("d");
12 assertEquals(1, Main.ds.allPrimitives().size());
13 assertEquals(0, Main.ds.allNonDeletedPrimitives().size());
14
15 key("ctrl-z", "ctrl-a", "shift-n", "shift-n");
16 click(150,400);
17 key("s");
18 click(150,400);
19 key("d");
20 assertEquals(3, Main.ds.allNonDeletedPrimitives().size());
21
22 click(150,400);
23 assertPopup();
24 assertEquals(3, Main.ds.allNonDeletedPrimitives().size());
25
26 click(125, 400);
27 click(100, 400);
28 click(150, 400);
29 assertEquals(0, Main.ds.allNonDeletedPrimitives().size());
30 }
31}
Note: See TracBrowser for help on using the repository browser.