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

Method wait_for_done

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

Source from the content-addressed store, hash-verified

236 self.driver.execute_script("window.python_logs = [];")
237
238 def wait_for_done(self):
239 while True:
240 # poll for console.log messages from our webworker
241 # which are the output of pytest
242 lines = self.driver.execute_script(
243 "let temp = window.python_logs;window.python_logs=[];return temp;"
244 )
245 if len(lines) > 0:
246 sys.stdout.buffer.write(bytes(lines))
247 done = self.driver.execute_script("return window.python_script_done;")
248 if done is not None:
249 value = done["result"]
250 self.driver.execute_script("delete window.python_script_done;")
251 return value
252 time.sleep(0.1)
253
254
255class ChromeDriver(BrowserDriver):

Callers

nothing calls this directly

Calls 3

lenFunction · 0.85
bytesFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected