/[gzz]/gzz/test/gzz/gfx/gl/paper.test
ViewVC logotype

Diff of /gzz/test/gzz/gfx/gl/paper.test

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

revision 1.4 by tjl, Wed Oct 16 07:46:39 2002 UTC revision 1.5 by tjl, Wed Oct 23 13:45:37 2002 UTC
# Line 28  def testPaperAnythingJava(): Line 28  def testPaperAnythingJava():
28      checkNotAvgColor(150, 150, 2, 2, (0,0,0), 30)      checkNotAvgColor(150, 150, 2, 2, (0,0,0), 30)
29      checkNotAvgColor(250, 250, 2, 2, (0,0,0), 30)      checkNotAvgColor(250, 250, 2, 2, (0,0,0), 30)
30    
31    def testOptimizedPaper():
32        """See that optimized paper really is same as
33        original."""
34        for i in range(0,5):
35            p1 = PaperMill.getInstance().getPaper(i)
36            p2 = PaperMill.getInstance().getOptimizedPaper(i, win)
37    
38            pq1 = GLRen.createPaperQuad(p1, 0, 0, 1, 1, 1)
39            pq2 = GLRen.createPaperQuad(p2, 0, 0, 1, 1, 1)
40    
41            vs = getvs()
42            vs.map.put(SolidBgVob(Color.blue))
43    
44            vs.put(pq1, 0, 0, 0, 150, 300)
45            vs.put(pq2, 0, 150, 0, 150, 300)
46    
47            render(vs)
48    
49            for x, y, w, h in [
50                (10, 10, 5, 5),
51                (50, 20, 10, 5),
52                (100, 200, 10, 30),
53                ]:
54                checkAvgColor(x+150, y, w, h,
55                    getAvgColor(x, y, w, h))
56    
57    
58    
59  # : vim: set syntax=python :  # : vim: set syntax=python :

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

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