Skip to content

Commit

Permalink
For mozilla-mobile#13336: Open bookmarks in current tab (mozilla-mobi…
Browse files Browse the repository at this point in the history
…le#23169)

* For mozilla-mobile#13336: Open bookmarks in current tab

* For mozilla-mobile#13336: Fix tests to verify bookmark opening in current tab

* Change test name for handleBookmarkTapped
  • Loading branch information
czlucius authored and pkirakosyan committed Mar 10, 2022
1 parent 5e57b0c commit fb52f9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class DefaultBookmarkController(
val flags = EngineSession.LoadUrlFlags.select(EngineSession.LoadUrlFlags.ALLOW_JAVASCRIPT_URL)
openInNewTabAndShow(
item.url!!,
true,
false,
BrowserDirection.FromBookmarks,
activity.browsingModeManager.mode,
flags
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class BookmarkControllerTest {
}

@Test
fun `handleBookmarkTapped should load the bookmark in a new tab`() {
fun `handleBookmarkTapped should load the bookmark in the current tab`() {
var invokePendingDeletionInvoked = false
val flags = EngineSession.LoadUrlFlags.select(EngineSession.LoadUrlFlags.ALLOW_JAVASCRIPT_URL)

Expand All @@ -124,7 +124,7 @@ class BookmarkControllerTest {
verify {
homeActivity.openToBrowserAndLoad(
item.url!!,
true,
false,
BrowserDirection.FromBookmarks,
flags = flags
)
Expand Down Expand Up @@ -290,7 +290,7 @@ class BookmarkControllerTest {
verify {
homeActivity.openToBrowserAndLoad(
item.url!!,
true,
false,
BrowserDirection.FromBookmarks,
flags = flags
)
Expand Down

0 comments on commit fb52f9b

Please sign in to comment.