/[gzz]/gzz/test/gzz/impl/saving.test
ViewVC logotype

Diff of /gzz/test/gzz/impl/saving.test

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

revision 1.6 by benja, Thu Aug 29 11:08:38 2002 UTC revision 1.7 by benja, Tue Oct 1 16:56:37 2002 UTC
# Line 19  Line 19 
19  from gzz import *  from gzz import *
20  from gzz.impl import *  from gzz.impl import *
21  from gzz.media import *  from gzz.media import *
22  from gzz.media.impl import Enfilade1DImpl  from gzz.media.impl import Enfilade1DImpl, PageImageScroll
23  from gzz.mediaserver import *  from gzz.mediaserver import *
24  from gzz.mediaserver.storage import *  from gzz.mediaserver.storage import *
25  from gzz.slices import SliceVersion  from gzz.slices import SliceVersion
# Line 106  def testJoinSpans(): Line 106  def testJoinSpans():
106      enf = v.contents.get(c.getId())      enf = v.contents.get(c.getId())
107      assert enf.makeString() == "foobar"      assert enf.makeString() == "foobar"
108      assert enf.getList().size() == 1      assert enf.getList().size() == 1
109    
110        
111    def testSavePageSpans():
112        """Test saving page spans."""
113        
114        # Create dummy pageimage scroll
115        id = serv.addDatum("", "application/pdf")
116        
117        c = space.N()
118        empty = space.getCellTexter().getEnfilade(c, None)
119        scr = ScrollBlockManager.getScrollBlock(serv, id)
120            
121        space.getCellTexter().setEnfilade(c, empty.plus(scr.getCurrent()))
122        
123        save(space)
124        s2 = load()
125        
126        c2 = s2.getCell(c.getId())
127        
128        assert s2.getCellTexter().getEnfilade(c2, None) == \
129               space.getCellTexter().getEnfilade(c, None)
130              
131        save(s2)
132        s3 = load()

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

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