Commit a164cd19 authored by Michael Droettboom's avatar Michael Droettboom

ADd test for iterating over a JS array

parent dda6557b
......@@ -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(
"""
......
Markdown is supported
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