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.
()
| 63 | |
| 64 | |
| 65 | def 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 | |
| 76 | def check_auto_asserts(test_case, objects): |
nothing calls this directly
no test coverage detected