Added GoBack and GoForward tests to the wxpython example on Linux. · pythonthings/cefpython@222ac46 · GitHub
Skip to content

Commit 222ac46

Browse files
committed
Added GoBack and GoForward tests to the wxpython example on Linux.
1 parent d449c93 commit 222ac46

4 files changed

Lines changed: 43 additions & 2 deletions

File tree

cefpython/cef3/linux/binaries_32bit/wxpython.html

Lines changed: 17 additions & 2 deletions

cefpython/cef3/linux/binaries_32bit/wxpython.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,16 @@ class JavascriptExternal:
165165
def __init__(self, mainBrowser):
166166
self.mainBrowser = mainBrowser
167167

168+
def GoBack(self):
169+
self.mainBrowser.GoBack()
170+
171+
def GoForward(self):
172+
self.mainBrowser.GoForward()
173+
174+
def CreateAnotherBrowser(self):
175+
frame = MainFrame()
176+
frame.Show()
177+
168178
def Print(self, message):
169179
print(message)
170180

cefpython/cef3/linux/binaries_64bit/wxpython.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,5 +495,15 @@ <h3>Load Handler</h3>
495495
</pre>
496496
No test for that yet.
497497

498+
499+
500+
501+
<h3>Other tests</h3>
502+
503+
<ul>
504+
<li><a href="javascript:external.GoBack()">external.GoBack()</a>
505+
<li><a href="javascript:external.GoForward()">external.GoForward()</a>
506+
</ul>
507+
498508
</body>
499509
</html>

cefpython/cef3/linux/binaries_64bit/wxpython.py

Lines changed: 6 additions & 0 deletions

0 commit comments

Comments
 (0)