From ff682606ab8cabdd81c51c209d5d46a5caec6e26 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Thu, 21 Jul 2016 22:34:10 -0400 Subject: [PATCH] Add tests for bookmark-del and quickmark-del with no arguments --- tests/end2end/features/urlmarks.feature | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/tests/end2end/features/urlmarks.feature b/tests/end2end/features/urlmarks.feature index 8f0136e59..3059188a0 100644 --- a/tests/end2end/features/urlmarks.feature +++ b/tests/end2end/features/urlmarks.feature @@ -86,6 +86,17 @@ Feature: quickmarks and bookmarks And I run :bookmark-del http://localhost:(port)/data/numbers/5.txt Then the bookmark file should not contain "http://localhost:*/data/numbers/5.txt " + Scenario: Deleting the current page's bookmark if it doesn't exist + When I open about:blank + And I run :bookmark-del + Then the error "Bookmark 'about:blank' not found!" should be shown + + Scenario: Deleting the current page's bookmark + When I open data/numbers/5.txt + And I run :bookmark-add + And I run :bookmark-del + Then the bookmark file should not contain "http://localhost:*/data/numbers/5.txt " + ## quickmarks Scenario: Saving a quickmark (:quickmark-add) @@ -186,3 +197,17 @@ Feature: quickmarks and bookmarks When I run :quickmark-add http://localhost:(port)/data/numbers/15.txt fifteen And I run :quickmark-del fifteen Then the quickmark file should not contain "fourteen http://localhost:*/data/numbers/15.txt " + + Scenario: Deleting the current page's quickmark if it has none + When I open about:blank + And I run :quickmark-del + Then the error "Quickmark for 'about:blank' not found!" should be shown + + Scenario: Deleting the current page's quickmark + When I open data/numbers/7.txt + And I run :quickmark-save + And I wait for "Entering mode KeyMode.prompt (reason: question asked)" in the log + And I press the keys "seven" + And I press the keys "" + And I run :quickmark-del + Then the quickmark file should not contain "seven http://localhost:*/data/numbers/7.txt"