[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] gzz/test/gzz/impl saving.test
From: |
Benja Fallenstein |
Subject: |
[Gzz-commits] gzz/test/gzz/impl saving.test |
Date: |
Tue, 01 Oct 2002 12:56:38 -0400 |
CVSROOT: /cvsroot/gzz
Module name: gzz
Changes by: Benja Fallenstein <address@hidden> 02/10/01 12:56:38
Modified files:
test/gzz/impl : saving.test
Log message:
*Failing* test for loading spaces with pageimagespans
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/test/gzz/impl/saving.test.diff?tr1=1.6&tr2=1.7&r1=text&r2=text
Patches:
Index: gzz/test/gzz/impl/saving.test
diff -c gzz/test/gzz/impl/saving.test:1.6 gzz/test/gzz/impl/saving.test:1.7
*** gzz/test/gzz/impl/saving.test:1.6 Thu Aug 29 07:08:38 2002
--- gzz/test/gzz/impl/saving.test Tue Oct 1 12:56:37 2002
***************
*** 19,25 ****
from gzz import *
from gzz.impl import *
from gzz.media import *
! from gzz.media.impl import Enfilade1DImpl
from gzz.mediaserver import *
from gzz.mediaserver.storage import *
from gzz.slices import SliceVersion
--- 19,25 ----
from gzz import *
from gzz.impl import *
from gzz.media import *
! from gzz.media.impl import Enfilade1DImpl, PageImageScroll
from gzz.mediaserver import *
from gzz.mediaserver.storage import *
from gzz.slices import SliceVersion
***************
*** 106,108 ****
--- 106,132 ----
enf = v.contents.get(c.getId())
assert enf.makeString() == "foobar"
assert enf.getList().size() == 1
+
+
+ def testSavePageSpans():
+ """Test saving page spans."""
+
+ # Create dummy pageimage scroll
+ id = serv.addDatum("", "application/pdf")
+
+ c = space.N()
+ empty = space.getCellTexter().getEnfilade(c, None)
+ scr = ScrollBlockManager.getScrollBlock(serv, id)
+
+ space.getCellTexter().setEnfilade(c, empty.plus(scr.getCurrent()))
+
+ save(space)
+ s2 = load()
+
+ c2 = s2.getCell(c.getId())
+
+ assert s2.getCellTexter().getEnfilade(c2, None) == \
+ space.getCellTexter().getEnfilade(c, None)
+
+ save(s2)
+ s3 = load()
\ No newline at end of file
- [Gzz-commits] gzz/test/gzz/impl saving.test,
Benja Fallenstein <=