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