[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ff-cvs] libvob/test/vob/api vobcoorder.test
From: |
Tuomas J. Lukka |
Subject: |
[ff-cvs] libvob/test/vob/api vobcoorder.test |
Date: |
Mon, 25 Aug 2003 03:40:11 -0400 |
CVSROOT: /cvsroot/libvob
Module name: libvob
Branch:
Changes by: Tuomas J. Lukka <address@hidden> 03/08/25 03:40:11
Modified files:
test/vob/api : vobcoorder.test
Log message:
Make the invalidcs test more accepting of exceptions. Now there's a
*REAL* problem in awt revealed.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/test/vob/api/vobcoorder.test.diff?tr1=1.16&tr2=1.17&r1=text&r2=text
Patches:
Index: libvob/test/vob/api/vobcoorder.test
diff -u libvob/test/vob/api/vobcoorder.test:1.16
libvob/test/vob/api/vobcoorder.test:1.17
--- libvob/test/vob/api/vobcoorder.test:1.16 Mon Aug 18 06:34:36 2003
+++ libvob/test/vob/api/vobcoorder.test Mon Aug 25 03:40:11 2003
@@ -324,22 +324,37 @@
cs1 = vs.orthoBoxCS(0, "A", 1, 2, 3, 4, 5, 6, 7)
cs2 = vs.orthoBoxCS(0, "B", 11, 12, 13, 14, 15, 16, 17)
- vs.put(v, cs1)
+ def put(cs):
+ """Allow any exceptions
+ """
+ try:
+ vs.put(v, cs)
+ except :
+ pass
+ def xcs(meth, par):
+ """Allow exceptions
+ """
+ try:
+ return meth(*par)
+ except:
+ return 0
+
+ put(cs1)
render(vs)
- vs.put(v, cs2)
+ put(cs2)
render(vs)
- vs.put(v, -1)
+ put(-1)
render(vs)
- vs.put(v, cs2 + 100)
+ put(cs2 + 100)
render(vs)
- vs.put(v, cs1 + 1)
+ put(cs1 + 1)
render(vs)
for i in range(0, 100):
- cs1 = vs.orthoBoxCS(-1, "A", 1, 2, 3, 4, 5, 6, 7)
- cs1 = vs.orthoBoxCS(-10000, "A", 1, 2, 3, 4, 5, 6, 7)
- cs1 = vs.orthoBoxCS(cs1 + 1, "A", 1, 2, 3, 4, 5, 6, 7)
- cs2 = vs.orthoBoxCS(cs2 + 10000, "B", 11, 12, 13, 14, 15, 16, 17)
+ cs1 = xcs(vs.orthoBoxCS, (-1, "A", 1, 2, 3, 4, 5, 6, 7))
+ cs1 = xcs(vs.orthoBoxCS, (-10000, "A", 1, 2, 3, 4, 5, 6, 7))
+ cs1 = xcs(vs.orthoBoxCS, (cs1 + 1, "A", 1, 2, 3, 4, 5, 6, 7))
+ cs2 = xcs(vs.orthoBoxCS, (cs2 + 10000, "B", 11, 12, 13, 14, 15, 16, 17))
render(vs)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [ff-cvs] libvob/test/vob/api vobcoorder.test,
Tuomas J. Lukka <=