MCPcopy Create free account
hub / github.com/cztomczak/cefpython / js_code_completed

Function js_code_completed

unittests/_common.py:65–73  ·  view source on GitHub ↗

Sometimes window.onload can execute before javascript bindings are ready if the document loads very fast. When setting javascript bindings it can take some time, because these bindings are sent via IPC messaging to the Renderer process.

()

Source from the content-addressed store, hash-verified

63
64
65def js_code_completed():
66 """Sometimes window.onload can execute before javascript bindings
67 are ready if the document loads very fast. When setting javascript
68 bindings it can take some time, because these bindings are sent
69 via IPC messaging to the Renderer process."""
70 global g_js_code_completed
71 assert not g_js_code_completed
72 g_js_code_completed = True
73 subtest_message("js_code_completed() ok")
74
75
76def check_auto_asserts(test_case, objects):

Callers

nothing calls this directly

Calls 1

subtest_messageFunction · 0.85

Tested by

no test coverage detected