Only use OS-specific line separator for hints
This commit is contained in:
parent
537aa22d64
commit
50fa7743ba
@ -599,7 +599,8 @@ def check_open_tabs(quteproc, request, tabs):
|
||||
r'contain "(?P<content>.*)"'))
|
||||
def clipboard_contains(quteproc, server, what, content):
|
||||
expected = content.replace('(port)', str(server.port))
|
||||
expected = expected.replace('\\n', os.linesep)
|
||||
expected = expected.replace('\\n', '\n')
|
||||
expected = expected.replace('(linesep)', os.linesep)
|
||||
quteproc.wait_for(message='Setting fake {}: {}'.format(
|
||||
what, json.dumps(expected)))
|
||||
|
||||
|
@ -127,7 +127,7 @@ Feature: Using hints
|
||||
And I run :follow-hint a
|
||||
And I run :follow-hint s
|
||||
And I run :leave-mode
|
||||
Then the clipboard should contain "http://localhost:(port)/data/hello.txt\nhttp://localhost:(port)/data/hello2.txt"
|
||||
Then the clipboard should contain "http://localhost:(port)/data/hello.txt(linesep)http://localhost:(port)/data/hello2.txt"
|
||||
|
||||
Scenario: Rapid hinting
|
||||
When I open data/hints/rapid.html in a new tab
|
||||
|
Loading…
Reference in New Issue
Block a user