Add some more :paste-primary tests.
This commit is contained in:
parent
701cdc7f76
commit
d50e1be566
@ -6,5 +6,6 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<textarea id="qute-textarea"></textarea>
|
<textarea id="qute-textarea"></textarea>
|
||||||
|
<textarea id="qute-textarea-noedit" readonly></textarea>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -215,3 +215,22 @@ Feature: Yanking and pasting.
|
|||||||
And I run :paste-primary
|
And I run :paste-primary
|
||||||
# Compare
|
# Compare
|
||||||
Then the text field should contain "This text should stay"
|
Then the text field should contain "This text should stay"
|
||||||
|
|
||||||
|
Scenario: Pasting the primary selection without a focused field
|
||||||
|
When selection is supported
|
||||||
|
And I open data/paste_primary.html
|
||||||
|
And I put "test" into the primary selection
|
||||||
|
And I run :enter-mode insert
|
||||||
|
And I run :paste-primary
|
||||||
|
Then the error "No element focused!" should be shown
|
||||||
|
|
||||||
|
Scenario: Pasting the primary selection with a read-only field
|
||||||
|
When selection is supported
|
||||||
|
And I open data/paste_primary.html
|
||||||
|
# Click the text field
|
||||||
|
And I run :hint all
|
||||||
|
And I run :follow-hint s
|
||||||
|
And I put "test" into the primary selection
|
||||||
|
And I run :enter-mode insert
|
||||||
|
And I run :paste-primary
|
||||||
|
Then the error "Focused element is not editable!" should be shown
|
||||||
|
Loading…
Reference in New Issue
Block a user