[py-svn] r36141 - py/dist/py/test/rsession/testing

fijal at codespeak.net fijal at codespeak.net
Thu Jan 4 11:18:13 CET 2007


Author: fijal
Date: Thu Jan  4 11:18:06 2007
New Revision: 36141

Modified:
   py/dist/py/test/rsession/testing/test_webjs.py
Log:
Fixed tests to new pypy.js api.


Modified: py/dist/py/test/rsession/testing/test_webjs.py
==============================================================================
--- py/dist/py/test/rsession/testing/test_webjs.py	(original)
+++ py/dist/py/test/rsession/testing/test_webjs.py	Thu Jan  4 11:18:06 2007
@@ -13,6 +13,7 @@
     from pypy.translator.js.modules import dom
     mod.dom = dom
     dom.window = dom.Window(html)
+    dom.document = dom.window.document
     config, args = py.test.Config.parse([])
     from py.__.test.rsession.rsession import session_options
     session_options.bind_config(config)
@@ -120,5 +121,5 @@
     webjs.process(msg)
     schedule_callbacks(exported_methods)
     # ouch
-    assert dom.get_document().getElementById('modules/foo.py').childNodes[1].\
+    assert dom.document.getElementById('modules/foo.py').childNodes[1].\
         childNodes[0].childNodes[0].childNodes[0].nodeValue == 'F'


More information about the py-svn mailing list