/[gzz]/gzz/test/gzz/vob/TestVobScene.java
ViewVC logotype

Diff of /gzz/test/gzz/vob/TestVobScene.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.11 by benja, Wed Sep 25 10:56:54 2002 UTC revision 1.12 by tjl, Wed Sep 25 14:45:43 2002 UTC
# Line 51  String rcsid = "$Id$"; Line 51  String rcsid = "$Id$";
51          Vob vob = new gzz.vob.DummyVob();          Vob vob = new gzz.vob.DummyVob();
52    
53          vs.put(vob, "v0", 7, 100, 100, 20, 20);          vs.put(vob, "v0", 7, 100, 100, 20, 20);
54          assertEquals(null, vs.coords.getKeyAt(vs.map, 5, 5, null));          assertEquals(null, vs.getKeyAt(5, 5, null));
55          vs.put(vob, "v1", 13, 100, 100, 20, 20);          vs.put(vob, "v1", 13, 100, 100, 20, 20);
56          assertEquals(null, vs.coords.getKeyAt(vs.map, 5, 5, null));          assertEquals(null, vs.getKeyAt(5, 5, null));
57    
58                          if(dbg) vs.dump();                          if(dbg) vs.dump();
59    
# Line 62  String rcsid = "$Id$"; Line 62  String rcsid = "$Id$";
62    
63                          if(dbg) vs.dump();                          if(dbg) vs.dump();
64    
65          assertEquals("va", vs.coords.getKeyAt(vs.map, 5, 5, null));          assertEquals("va", vs.getKeyAt(5, 5, null));
66    
67          vs.put(vob, "vb", 8, 5, 5, 15, 15);          vs.put(vob, "vb", 8, 5, 5, 15, 15);
68          assertEquals("vb", vs.coords.getKeyAt(vs.map, 5, 5, null));          assertEquals("vb", vs.getKeyAt(5, 5, null));
69    
70          vs.put(vob, "vc", 6, 0, 0, 30, 30);          vs.put(vob, "vc", 6, 0, 0, 30, 30);
71          assertEquals("vc", vs.coords.getKeyAt(vs.map, 5, 5, null));          assertEquals("vc", vs.getKeyAt(5, 5, null));
72    
73          vs.put(vob, "vd", 4, 0, 0, 30, 30);          vs.put(vob, "vd", 4, 0, 0, 30, 30);
74          assertEquals("vd", vs.coords.getKeyAt(vs.map, 5, 5, null));          assertEquals("vd", vs.getKeyAt(5, 5, null));
75    
76          // ...except here.          // ...except here.
77          vs.put(vob, "ve", 5, 0, 0, 30, 30);          vs.put(vob, "ve", 5, 0, 0, 30, 30);
78    
79                          if(dbg) vs.dump();                          if(dbg) vs.dump();
80    
81          assertEquals("vd", vs.coords.getKeyAt(vs.map, 5, 5, null));          assertEquals("vd", vs.getKeyAt(5, 5, null));
82    
83          vs.put(vob, "vf", -5, 0, 0, 30, 30);          vs.put(vob, "vf", -5, 0, 0, 30, 30);
84          assertEquals("vf", vs.coords.getKeyAt(vs.map, 5, 5, null));          assertEquals("vf", vs.getKeyAt(5, 5, null));
85    
86          // ...and here.          // ...and here.
87          vs.put(vob, "vg", 20, 0, 0, 30, 30);          vs.put(vob, "vg", 20, 0, 0, 30, 30);
88          assertEquals("vf", vs.coords.getKeyAt(vs.map, 5, 5, null));          assertEquals("vf", vs.getKeyAt(5, 5, null));
89      }      }
90    
91      public void testGetVob() {      public void testGetVob() {
# Line 105  String rcsid = "$Id$"; Line 105  String rcsid = "$Id$";
105      }      }
106    
107      public void testGetRenderinfo() {      public void testGetRenderinfo() {
108          VobCoorder coorder = createVobScene().coords;          VobScene scene = createVobScene();
109          int cs = coorder.coordsys(0, "1", 10, 20, 30, 40, 50);          VobCoorder coorder = scene.coords;
110            int cs = scene.coordsys(0, "1", 10, 20, 30, 40, 50);
111    
112          Vob.RenderInfo info = coorder.getRenderInfo(cs);          Vob.RenderInfo info = coorder.getRenderInfo(cs);
113          assertNotNull(info);          assertNotNull(info);

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26