gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] gzz/test/gzz/view/buoy buoysys.test


From: Tuomas J. Lukka
Subject: [Gzz-commits] gzz/test/gzz/view/buoy buoysys.test
Date: Tue, 04 Feb 2003 08:52:34 -0500

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Tuomas J. Lukka <address@hidden>        03/02/04 08:52:34

Modified files:
        test/gzz/view/buoy: buoysys.test 

Log message:
        Clean, test better

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/test/gzz/view/buoy/buoysys.test.diff?tr1=1.8&tr2=1.9&r1=text&r2=text

Patches:
Index: gzz/test/gzz/view/buoy/buoysys.test
diff -u gzz/test/gzz/view/buoy/buoysys.test:1.8 
gzz/test/gzz/view/buoy/buoysys.test:1.9
--- gzz/test/gzz/view/buoy/buoysys.test:1.8     Tue Feb  4 08:47:55 2003
+++ gzz/test/gzz/view/buoy/buoysys.test Tue Feb  4 08:52:33 2003
@@ -40,11 +40,12 @@
     zzNodes.viewcontext.setDims(jarray.array(
        [space.getDim(i) for i in [Ids.d_1, Ids.d_2, Ids.d_3]], gzz.Dim))
 
+    span = sb.getCurrent().subSpan(0,1).subArea(10, 10, 20, 20)
+
     # Put a piece of the pagespan into it
     cell = space.getHomeCell()
     space.getCellTexter().setEnfilade(
-           cell, pagespanNodes.makeEnf(
-                   sb.getCurrent().subSpan(0,1).subArea(10, 10, 20, 20)))
+           cell, pagespanNodes.makeEnf(span))
 
 
     # Create the buoy view elements
@@ -61,13 +62,17 @@
     testbll = TestBLL()
     mainNode = adaptor.createMainNode(None, cell, testbll)
 
-    # Now, the real test
+    # Now, the real test: render the main view
     vs = getvs()
     mainNode.renderMain(vs, 0)
 
+    # And check that we did really get a callback
+    # for putting a buoy with the scrollblock in it.
     failUnlessEqual(testbll.calls, 1)
 
-    print testbll.args
+    failUnlessEqual(testbll.args[2], scrollblockLinker.pageSpanNodeType)
+    failUnlessEqual(testbll.args[4], span)
+
 
     
     




reply via email to

[Prev in Thread] Current Thread [Next in Thread]