/[escript]/trunk/pyvisi/test/python/run_scene.py
ViewVC logotype

Diff of /trunk/pyvisi/test/python/run_scene.py

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

revision 1148 by jongui, Wed May 16 22:45:33 2007 UTC revision 1167 by jongui, Thu May 24 01:04:17 2007 UTC
# Line 23  Y_SIZE = 400 Line 23  Y_SIZE = 400
23  JPG_RENDERER = Renderer.OFFLINE_JPG  JPG_RENDERER = Renderer.OFFLINE_JPG
24    
25  class TestScene:  class TestScene:
     def tearDown(self):  
         del self.scene  
   
26      def render(self, file):      def render(self, file):
27          self.scene.render(image_name = \          self.scene.render(image_name = \
28                  os.path.join(PYVISI_TEST_SCENE_IMAGES_PATH, file))                  os.path.join(PYVISI_TEST_SCENE_IMAGES_PATH, file))
# Line 41  class TestSceneOneViewport(unittest.Test Line 38  class TestSceneOneViewport(unittest.Test
38          self.scene = \          self.scene = \
39                  Scene(renderer = JPG_RENDERER, num_viewport = 1,                  Scene(renderer = JPG_RENDERER, num_viewport = 1,
40                  x_size = X_SIZE, y_size = Y_SIZE)                  x_size = X_SIZE, y_size = Y_SIZE)
41    
42        def tearDown(self):
43            del self.scene
44                    
45      def testRender(self):      def testRender(self):
46          file = "TestSceneOneViewport_testRender.jpg"          file = "TestSceneOneViewport_testRender.jpg"
# Line 57  class TestSceneFourViewports(unittest.Te Line 57  class TestSceneFourViewports(unittest.Te
57                  Scene(renderer = JPG_RENDERER, num_viewport = 4, x_size = 800,                  Scene(renderer = JPG_RENDERER, num_viewport = 4, x_size = 800,
58                  y_size = 800)                  y_size = 800)
59    
60        def tearDown(self):
61            del self.scene
62    
63      def testRender(self):      def testRender(self):
64          file = "TestSceneFourViewport_testRender.jpg"          file = "TestSceneFourViewport_testRender.jpg"
65          self.render(file)          self.render(file)

Legend:
Removed from v.1148  
changed lines
  Added in v.1167

  ViewVC Help
Powered by ViewVC 1.1.26