[Checkins] SVN: zc.testbrowser/trunk/src/zc/testbrowser/real.py Refactor loading of `real.js` in preparation to support switchin MozRepl
Christian Theune
ct at gocept.com
Thu Oct 2 10:50:13 EDT 2008
Log message for revision 91662:
Refactor loading of `real.js` in preparation to support switchin MozRepl
contexts.
Changed:
U zc.testbrowser/trunk/src/zc/testbrowser/real.py
-=-
Modified: zc.testbrowser/trunk/src/zc/testbrowser/real.py
===================================================================
--- zc.testbrowser/trunk/src/zc/testbrowser/real.py 2008-10-02 13:15:13 UTC (rev 91661)
+++ zc.testbrowser/trunk/src/zc/testbrowser/real.py 2008-10-02 14:50:12 UTC (rev 91662)
@@ -112,14 +112,16 @@
self.open(url)
def init_repl(self, host, port):
- dir = os.path.dirname(__file__)
- js_path = os.path.join(dir, 'real.js')
try:
self.telnet = telnetlib.Telnet(host, port)
except socket.error, e:
raise RuntimeError('Error connecting to Firefox at %s:%s.'
' Is MozRepl running?' % (host, port))
+ self.load_realjs()
+ def load_realjs(self):
+ dir = os.path.dirname(__file__)
+ js_path = os.path.join(dir, 'real.js')
self.load_file(js_path)
def load_file(self, file_path):
More information about the Checkins
mailing list