[svn r38708] document.location is not in DOM. We need to implemented some stuff in

js backend to be able to test this

--HG--
branch : trunk
This commit is contained in:
fijal 2007-02-13 16:15:26 +01:00
parent a992ca7427
commit db6df474fe
2 changed files with 2 additions and 1 deletions

View File

@ -43,6 +43,7 @@ def test_html_loaded():
assert str(body.childNodes[1].nodeName) == 'A'
def test_set_msgbox():
py.test.skip
msgbox = dom.window.document.getElementById('messagebox')
assert len(msgbox.childNodes) == 0
webjs.set_msgbox('foo', 'bar')

View File

@ -249,7 +249,7 @@ def set_msgbox(item_name, data):
txt = create_text_elem(item_name + "\n" + data)
pre.appendChild(txt)
msgbox.appendChild(pre)
dom.document.location = "#message"
dom.window.location.assign("#message")
glob.data_empty = False
def show_traceback(item_name="aa"):