source: josm/branch/0.5/test/functional/DeleteTest.java@ 17335

Last change on this file since 17335 was 298, checked in by imi, 17 years ago
  • added license description to head of each source file
File size: 859 bytes
Line 
1// License: GPL. Copyright 2007 by Immanuel Scholz and others
2import org.openstreetmap.josm.Main;
3
4import framework.FunctionalTestCase;
5
6
7public class DeleteTest extends FunctionalTestCase {
8
9 public void test() throws Exception {
10 key("ctrl-n", "n");
11 click(100,400);
12 key("d");
13 assertEquals(1, Main.ds.allPrimitives().size());
14 assertEquals(0, Main.ds.allNonDeletedPrimitives().size());
15
16 key("ctrl-z", "ctrl-a", "shift-n", "shift-n");
17 click(150,400);
18 key("s");
19 click(150,400);
20 key("d");
21 assertEquals(3, Main.ds.allNonDeletedPrimitives().size());
22
23 click(150,400);
24 assertPopup();
25 assertEquals(3, Main.ds.allNonDeletedPrimitives().size());
26
27 click(125, 400);
28 click(100, 400);
29 click(150, 400);
30 assertEquals(0, Main.ds.allNonDeletedPrimitives().size());
31 }
32}
Note: See TracBrowser for help on using the repository browser.