Skip to content

Commit

Permalink
test with --skip-modern-opengl: forwarding the flag to the browser te…
Browse files Browse the repository at this point in the history
…st so that the browser doesn't show the inside view.
  • Loading branch information
unhyperbolic committed Apr 2, 2024
1 parent d30ea79 commit 3b31e8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions python/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -752,12 +752,13 @@ def dirichlet_help(self):
def horoball_help(self):
self.horoball_viewer.widget.help()

def test(self):
def test(self, use_modernopengl=True):
self.update_idletasks()
print('Testing browser')
self.after(1000, self.notebook.select, self.dirichlet_viewer)
self.after(2500, self.notebook.select, self.horoball_viewer)
self.after(4000, self.notebook.select, self.inside_view)
if use_modernopengl:
self.after(4000, self.notebook.select, self.inside_view)
if self.link_tab:
self.after(5500, self.notebook.select, self.link_tab.canvas)
self.after(7000, self.close)
Expand Down
2 changes: 1 addition & 1 deletion python/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def graphics_failures(verbose, windows, use_modernopengl):
snappy.Manifold('m125').cusp_neighborhood().view().test()
if use_modernopengl:
snappy.Manifold('m004').inside_view().test()
snappy.Manifold('4_1').browse().test()
snappy.Manifold('4_1').browse().test(use_modernopengl=use_modernopengl)
snappy.ManifoldHP('m004').dirichlet_domain().view().test()
snappy.ManifoldHP('m125').cusp_neighborhood().view().test()
if use_modernopengl:
Expand Down

0 comments on commit 3b31e8d

Please sign in to comment.