Skip to content

Commit

Permalink
fix html diff
Browse files Browse the repository at this point in the history
  • Loading branch information
andiwand committed Nov 26, 2023
1 parent 0ec7907 commit 234d747
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions test/scripts/compare_output_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ def __init__(self, path):
self._path = path

def dispatch(self, event):
if event.event_type in ['opened']:
return

if os.path.isfile(event.src_path):
Config.comparator.submit(
os.path.relpath(event.src_path, self._path))
Expand Down
7 changes: 3 additions & 4 deletions test/scripts/html_render_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,11 @@ def get_browser(driver='firefox', max_width=1000, max_height=10000):
browser = webdriver.PhantomJS()
elif driver == 'firefox':
options = webdriver.FirefoxOptions()
options.headless = True
browser = webdriver.Firefox(options=options,
service_log_path=os.path.devnull)
options.add_argument("--headless")
browser = webdriver.Firefox(options=options)
else: # chrome or unknown
options = webdriver.ChromeOptions()
options.headless = True
options.add_argument("--headless=new")
browser = webdriver.Chrome(options=options)
browser.set_window_size(max_width, max_height)
return browser
Expand Down

0 comments on commit 234d747

Please sign in to comment.