mirror of https://github.com/pyodide/pyodide.git
ADd test for iterating over a JS array
This commit is contained in:
parent
dda6557b1b
commit
a164cd1946
|
@ -311,6 +311,15 @@ def test_jsproxy_iter(selenium):
|
|||
"list(ITER)") == [1, 2, 3]
|
||||
|
||||
|
||||
def test_jsproxy_implicit_iter(selenium):
|
||||
selenium.run_js(
|
||||
"""
|
||||
window.ITER = [1, 2, 3];""")
|
||||
assert selenium.run(
|
||||
"from js import ITER\n"
|
||||
"list(ITER.values())") == [1, 2, 3]
|
||||
|
||||
|
||||
def test_open_url(selenium):
|
||||
assert selenium.run(
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue