Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Basthon
Basthon Kernel
Commits
08b6d2b5
Commit
08b6d2b5
authored
Dec 12, 2022
by
Romain Casati
Browse files
BrowserBundle: exposing KernelLoader as basthonKernelLoader.
parent
ec98402d
Changes
2
Hide whitespace changes
Inline
Side-by-side
conftest.py
View file @
08b6d2b5
...
...
@@ -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
B
asthon
.l
oaded(); } catch(e) {}"
)
self
.
run_js
(
"try { await
b
asthon
KernelLoader.kernelL
oaded(); } catch(e) {}"
)
self
.
run_js
(
"Error.stackTraceLimit = Infinity"
)
# connecting Basthon's test listeners (for run_basthon)
...
...
packages/browser-bundle/src/main.ts
View file @
08b6d2b5
...
...
@@ -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
"
});
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment