MCPcopy Create free account
hub / github.com/apache/arrow / wait_for_done

Method wait_for_done

python/scripts/run_emscripten_tests.py:266–280  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

264 self.driver.execute_script("window.python_logs = [];")
265
266 def wait_for_done(self):
267 while True:
268 # poll for console.log messages from our webworker
269 # which are the output of pytest
270 lines = self.driver.execute_script(
271 "let temp = window.python_logs;window.python_logs=[];return temp;"
272 )
273 if len(lines) > 0:
274 sys.stdout.buffer.write(bytes(lines))
275 done = self.driver.execute_script("return window.python_script_done;")
276 if done is not None:
277 value = done["result"]
278 self.driver.execute_script("delete window.python_script_done;")
279 return value
280 time.sleep(0.1)
281
282
283class ChromeDriver(BrowserDriver):

Callers

nothing calls this directly

Calls 3

lenFunction · 0.85
bytesFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected