Commit f58028e8 authored by Roman Yurchak's avatar Roman Yurchak Committed by GitHub

Merge pull request #193 from mdboom/test-array-iter

Add test for iterating over a JS array
parents 183cef70 a164cd19
......@@ -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