Finish up testing for multicell URL detection

This commit is contained in:
Kovid Goyal
2025-01-14 22:30:03 +05:30
parent 64e3b641ce
commit 8bf8f5dc46
5 changed files with 46 additions and 37 deletions

View File

@@ -681,7 +681,7 @@ def test_multicell(self: TestMulticell) -> None:
self.ae(s.current_url_text(), 'ab')
# URL detection
s = self.create_screen(cols=40)
s = self.create_screen(cols=60)
s.reset()
url = 'http://moo.com'
@@ -689,3 +689,4 @@ def test_multicell(self: TestMulticell) -> None:
s.detect_url(0, 0)
self.ae(s.current_url_text(), url)
asu((0, 0, len(url)*2 - 1), (1, 0, len(url)*2 - 1))
# More tests for URL detection are in screen.py in detect_url()