ADd test for iterating over a JS array

This commit is contained in:
Michael Droettboom 2018-09-26 17:59:40 -04:00
parent dda6557b1b
commit a164cd1946
1 changed files with 9 additions and 0 deletions

View File

@ -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(
"""