[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] gzz gzz/gfx/gl/GLSpanner.java test/gzz/gfx/gl/p...
From: |
Tuomas J. Lukka |
Subject: |
[Gzz-commits] gzz gzz/gfx/gl/GLSpanner.java test/gzz/gfx/gl/p... |
Date: |
Mon, 27 Jan 2003 07:28:01 -0500 |
CVSROOT: /cvsroot/gzz
Module name: gzz
Changes by: Tuomas J. Lukka <address@hidden> 03/01/27 07:28:00
Modified files:
gzz/gfx/gl : GLSpanner.java
test/gzz/gfx/gl: pagespanpaper.test
Log message:
Write the test further
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gzz/gfx/gl/GLSpanner.java.diff?tr1=1.7&tr2=1.8&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/test/gzz/gfx/gl/pagespanpaper.test.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
Patches:
Index: gzz/gzz/gfx/gl/GLSpanner.java
diff -u gzz/gzz/gfx/gl/GLSpanner.java:1.7 gzz/gzz/gfx/gl/GLSpanner.java:1.8
--- gzz/gzz/gfx/gl/GLSpanner.java:1.7 Mon Jan 27 06:35:43 2003
+++ gzz/gzz/gfx/gl/GLSpanner.java Mon Jan 27 07:28:00 2003
@@ -99,7 +99,7 @@
}
public static class SpanRect {
- private SpanPage page;
+ public final SpanPage page;
/** The coordinates of this rectangle.
*/
Index: gzz/test/gzz/gfx/gl/pagespanpaper.test
diff -u gzz/test/gzz/gfx/gl/pagespanpaper.test:1.1
gzz/test/gzz/gfx/gl/pagespanpaper.test:1.2
--- gzz/test/gzz/gfx/gl/pagespanpaper.test:1.1 Mon Jan 27 06:35:44 2003
+++ gzz/test/gzz/gfx/gl/pagespanpaper.test Mon Jan 27 07:28:00 2003
@@ -10,6 +10,36 @@
sc = gzz.media.impl.PageImageScroll(None, gzz.mediaserver.Mediaserver.Id(id))
def testTestSpan():
+ """Test that we really have the pagespan images.
+
+ If not, all other tests in this file will fail too.
+ """
failUnlessEqual(sc.getCurrent().length(), 2)
-
+def testNobg():
+ """Test that the image gets loaded correctly from GLSpanner.
+
+ fail: *
+ """
+
+ pagespan = GLSpanner.getSpanRect(sc.getCurrent()).page
+ p = PageSpanPaper(None, pagespan)
+
+ pap = p.getPaper(0)
+
+ vs = getvs()
+ vs.map.put(SolidBgVob(Color.yellow))
+
+ pcs = vs.orthoCS(0, "A", 0, 50, 50, 400, 400)
+ vs.map.put(
+ GLRen.createPaperQuad(pap, 0, 0, p.w, p.h, 1, 1, 0),
+ pcs, 0)
+
+ for i in range(0, 10):
+ pagespan.request(1, 5000)
+ render(vs)
+ Thread.sleep(100)
+
+
+
+ failUnlessEqual(0, 1)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gzz-commits] gzz gzz/gfx/gl/GLSpanner.java test/gzz/gfx/gl/p...,
Tuomas J. Lukka <=