@ -186,7 +186,7 @@ class AwesomeBarViewTest {
val historyProvider = result . firstOrNull { it is CombinedHistorySuggestionProvider }
assertNotNull ( historyProvider )
assert Equals( url , ( historyProvider as CombinedHistorySuggestionProvider ) . resultsUriFilter )
assert NotNull( ( historyProvider as CombinedHistorySuggestionProvider ) . resultsUriFilter )
assertEquals ( AwesomeBarView . METADATA _SUGGESTION _LIMIT , historyProvider . getMaxNumberOfSuggestions ( ) )
}
@ -562,7 +562,7 @@ class AwesomeBarViewTest {
val historyProvider = result . firstOrNull { it is HistoryStorageSuggestionProvider }
assertNotNull ( historyProvider )
assert Equals( url , ( historyProvider as HistoryStorageSuggestionProvider ) . resultsUriFilter )
assert NotNull( ( historyProvider as HistoryStorageSuggestionProvider ) . resultsUriFilter )
assertEquals ( AwesomeBarView . METADATA _SUGGESTION _LIMIT , historyProvider . getMaxNumberOfSuggestions ( ) )
}
@ -662,7 +662,7 @@ class AwesomeBarViewTest {
val localSessionsProviders = result . filterIsInstance < SessionSuggestionProvider > ( )
assertEquals ( 1 , localSessionsProviders . size )
assert Equals( url , localSessionsProviders [ 0 ] . resultsUriFilter )
assert NotNull( localSessionsProviders [ 0 ] . resultsUriFilter )
}
@Test
@ -697,7 +697,7 @@ class AwesomeBarViewTest {
val localSessionsProviders = result . filterIsInstance < SyncedTabsStorageSuggestionProvider > ( )
assertEquals ( 1 , localSessionsProviders . size )
assertNull ( localSessionsProviders [ 0 ] . results Host Filter)
assertNull ( localSessionsProviders [ 0 ] . results Url Filter)
}
@Test
@ -718,7 +718,7 @@ class AwesomeBarViewTest {
val localSessionsProviders = result . filterIsInstance < SyncedTabsStorageSuggestionProvider > ( )
assertEquals ( 1 , localSessionsProviders . size )
assert Equals( " test " , localSessionsProviders [ 0 ] . resultsHost Filter)
assert NotNull( localSessionsProviders [ 0 ] . resultsUrl Filter)
}
@Test
@ -761,7 +761,7 @@ class AwesomeBarViewTest {
val localSessionsProviders = result . filterIsInstance < BookmarksStorageSuggestionProvider > ( )
assertEquals ( 1 , localSessionsProviders . size )
assert Equals( url , localSessionsProviders [ 0 ] . resultsUriFilter )
assert NotNull( localSessionsProviders [ 0 ] . resultsUriFilter )
}
@Test
@ -800,17 +800,17 @@ class AwesomeBarViewTest {
val bookmarksProviders : List < BookmarksStorageSuggestionProvider > = result . filterIsInstance < BookmarksStorageSuggestionProvider > ( )
assertEquals ( 2 , bookmarksProviders . size )
assertNull ( bookmarksProviders [ 0 ] . resultsUriFilter ) // the general bookmarks provider
assert Equals( url , bookmarksProviders [ 1 ] . resultsUriFilter ) // the filtered bookmarks provider
assert NotNull( bookmarksProviders [ 1 ] . resultsUriFilter ) // the filtered bookmarks provider
assertEquals ( 1 , result . filterIsInstance < SearchActionProvider > ( ) . size )
assertEquals ( 1 , result . filterIsInstance < SearchSuggestionProvider > ( ) . size )
val syncedTabsProviders : List < SyncedTabsStorageSuggestionProvider > = result . filterIsInstance < SyncedTabsStorageSuggestionProvider > ( )
assertEquals ( 2 , syncedTabsProviders . size )
assertNull ( syncedTabsProviders [ 0 ] . results Host Filter) // the general synced tabs provider
assert Equals( " www.test.com " , syncedTabsProviders [ 1 ] . resultsHost Filter) // the filtered synced tabs provider
assertNull ( syncedTabsProviders [ 0 ] . results Url Filter) // the general synced tabs provider
assert NotNull( syncedTabsProviders [ 1 ] . resultsUrl Filter) // the filtered synced tabs provider
val localTabsProviders : List < SessionSuggestionProvider > = result . filterIsInstance < SessionSuggestionProvider > ( )
assertEquals ( 2 , localTabsProviders . size )
assertNull ( localTabsProviders [ 0 ] . resultsUriFilter ) // the general tabs provider
assert Equals( url , localTabsProviders [ 1 ] . resultsUriFilter ) // the filtered tabs provider
assert NotNull( localTabsProviders [ 1 ] . resultsUriFilter ) // the filtered tabs provider
assertEquals ( 1 , result . filterIsInstance < SearchEngineSuggestionProvider > ( ) . size )
}