Commit 08b6d2b5 authored by Romain Casati's avatar Romain Casati
Browse files

BrowserBundle: exposing KernelLoader as basthonKernelLoader.

parent ec98402d
......@@ -90,7 +90,7 @@ class SeleniumWrapper:
self.driver.implicitly_wait(120)
self.driver.set_script_timeout(120)
self.driver.get(f"http://{server_hostname}:{server_port}/test.html?{query}")
self.run_js("try { await Basthon.loaded(); } catch(e) {}")
self.run_js("try { await basthonKernelLoader.kernelLoaded(); } catch(e) {}")
self.run_js("Error.stackTraceLimit = Infinity")
# connecting Basthon's test listeners (for run_basthon)
......
......@@ -4,10 +4,11 @@ declare global {
interface Window {
basthonRoot?: string;
basthonKernel?: string;
basthonKernelLoader?: KernelLoader;
}
}
const loader = new KernelLoader({
const loader = window.basthonKernelLoader = new KernelLoader({
"rootPath": window.basthonRoot ?? "./",
"language": window.basthonKernel ?? "python3"
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment