2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-15 18:12:54 +00:00
Commit Graph

53 Commits

Author SHA1 Message Date
ekager
09fbb43f80 For #2486 - Adds Recently Closed Tabs 2020-09-11 12:02:30 -07:00
Kate Glazko
ffb794751e No Issue: Fix DownloadItemKtTest 2020-08-21 18:51:57 -07:00
kglazko
5ecab0f48a
For #13935: Enhanced File Type List Icons (#14036)
* For #13935: Enhanced File Type List Icons

* For #13935 - Pulls out and tests logic for getting the icon for a DownloadItem

Co-authored-by: Kate Glazko <kglazko@Kates-MacBook-Pro.local>
Co-authored-by: Jeff Boek <jeff@jeffboek.com>
2020-08-21 16:14:40 -07:00
Kate Glazko
3370762248 For #13983: Show Only Completed Downloads in List 2020-08-21 11:52:19 -07:00
Kate Glazko
7f9e2255f7 For #13979: Deleted Download Files Shouldnt Show 2020-08-21 08:38:07 -07:00
Kainalu Hagiwara
d9ffac0c89 For #13405 - Use toolbar location relative to the whole screen instead of window. 2020-08-13 14:08:49 -07:00
Sebastian Kaspari
c93a29f89a Simplify build variants to just: debug, nightly, beta and release.
Co-authored-by: Johan Lorenzo <jlorenzo@mozilla.com>
2020-08-06 11:52:10 +02:00
Kainalu Hagiwara
57c7955637 For #12865, #12990 - Disable swipe to switch tabs gesture when the keyboard is visible. 2020-07-29 14:55:03 -07:00
ekager
46511d6f8e For #10163 - Adds tab multiselect mode 2020-07-24 18:18:26 -04:00
Tiger Oakes
d3a07e95c9 For #12565: Don't pass contest to SortingStrategy 2020-07-23 19:05:11 -04:00
Tiger Oakes
652af79e95
Migrate from Session.toTab to BrowserStore (#12221) 2020-07-23 12:27:39 -07:00
Tiger Oakes
4dd0c0f224
For #12457: Add MockK matcher for intents (#12612) 2020-07-16 15:05:01 -07:00
Tiger Oakes
69020a1f26
For #12457 - Add MockK matcher for nav directions (#12262) 2020-07-14 10:39:23 -07:00
Tiger Oakes
c99a8f5cfa
Fixes #9832 - Change targetSdkVersion to Android 10 (#11014) 2020-07-09 10:50:51 -07:00
Tiger Oakes
41452e945b Move SearchProviderModel extension to class 2020-07-06 20:38:08 +03:00
Tiger Oakes
6bde0378a2
Add tests for StrictModeManager (#12013) 2020-06-29 08:17:07 -07:00
Tiger Oakes
ccb532bb77
For #11534 - Don't check lastUsed mode for screenshots (#11827) 2020-06-22 17:38:58 -07:00
Tiger Oakes
18cc4c95c1
Add tests for ContextKt (#11824)
Migrated from an old branch by Kate

Co-authored-by: Kate Glazko <katglazko@gmail.com>
2020-06-22 14:00:43 -07:00
Tiger Oakes
f0295048fa Remove Mockito 2020-06-10 21:19:50 -04:00
Tiger Oakes
4b064afb81
Add tests for ext package (#11334) 2020-06-10 09:14:18 -07:00
Christian Sadilek
fee09c3092 No issue: Show article/page url instead of reader extension url 2020-05-05 17:52:27 -04:00
Mihai Branescu
c4d76dce5a For #6558 - cleanup + added unit tests 2020-04-24 09:28:40 -07:00
mcarare
8cdc523de9 For #9698: Add unit tests for Context extension getStringWithArgSafe 2020-04-13 09:40:00 +03:00
Mihai Eduard Badea
d66da53c9a For #2768 - Prevent screenshots in private mode
Added a new option in Private browsing menu to allow or prevent screenshots from being taken while in private mode by adding or removing the FLAG_SECURE flag from the home activity's window.

 This method is called whenever the activity is initialized to account for the browsing mode being changed and whenever the setting from the Private browsing menu is changed.

 The setting is by default set to true (screenshots are allowed to be taken)
2020-04-07 17:23:06 +03:00
Michael Comella
376740cd2c For #9631: replace assertk assertions with junit.
I created a series of editor macros to do this with minimal errors (and
to do it quickly!).
2020-04-06 16:56:40 -07:00
Michael Comella
6e0d851da3 For #9605: replace unit test runners with FenixRobolectricTestRunner.
This is how we can apply the new test runner to remove duplication.

This commit was generated programmatically with the following commands:
```
  // Replace test runners with new one.
  find app/src/test -type f -exec gsed -i "s/@RunWith(RobolectricTestRunner::class)/@RunWith(FenixRobolectricTestRunner::class)/" {} +
  find app/src/test -type f -exec gsed -i "s/@RunWith(AndroidJUnit4::class)/@RunWith(FenixRobolectricTestRunner::class)/" {} +

  // Replace imports of old test runners with new one
  find app/src/test -type f -exec gsed -i "s/org.robolectric.RobolectricTestRunner/org.mozilla.fenix.helpers.FenixRobolectricTestRunner/" {} +
  find app/src/test -type f -exec gsed -i "s/androidx.test.ext.junit.runners.AndroidJUnit4/org.mozilla.fenix.helpers.FenixRobolectricTestRunner/" {} +

  // Remove unused imports
  find app/src/test -type f -exec gsed -i "/@Config(application = TestApplication::class)/d" {} +
  find app/src/test -type f -exec gsed -i "/import org.mozilla.fenix.TestApplication/d" {} +
  find app/src/test -type f -exec gsed -i "/import org.robolectric.annotation.Config/d" {} +
```

Where gsed is the GNU version of sed installed via homebrew. After
running these commands, I need to manually clean up the following files:
- FenixRobolectricTestRunner
- LocaleManagerExtensionTest
2020-04-03 09:27:49 -07:00
Michael Comella
392dda5eda For #9605: remove unnecessary @RunWith(Robolectric in unit tests.
robolectric increases the run time of tests so it's important to remove
them when they're unnecessary.

Between this change and the last one, the unit test runtime was reduced
by ~10s.
2020-04-03 09:27:49 -07:00
Tiger Oakes
453e7955bb
Add license header to ext tests (#8130) 2020-02-05 20:37:49 -08:00
Suraj Shah
2d64cf8e4c Connectivity manager tests (#7317)
* Fixes #7316
Adds tests for ConnectivityManager.isOnline

* Fixes detekt errors.

* Cleaning tests

* Cleaning tests to use boolean checks instead of object equals
2020-01-24 17:43:28 -08:00
Severin Rudie
b23ee38082 For #7556: fix intermittent failure in BookmarkNodeTest 2020-01-09 16:54:50 +02:00
Michael Comella
cf143489e1 For #6464: Replace use of BuildConfig.DEBUG with ReleaseChannel.channel.isDebug.
This fixes performance issues where StrictMode would greatly slow down
startup in the forPerformanceTest variants.
2019-12-30 10:31:33 -08:00
Tiger Oakes
ea486d7c66
Split out CustomTabToolbarIntegration (#7107) 2019-12-17 12:26:46 -08:00
Severin Rudie
7477de83e9 For #4844: fix file prefix url shortening 2019-12-10 05:07:53 +01:00
cesar
63cf034bfb test fixed 2019-12-02 16:18:48 +00:00
Daphne Liu
4cfbaf2dc4 Switched to AC string extensions (#6258)
* Switched to AC string extensions

* Clean up imports
2019-11-22 23:15:51 -08:00
Severin Rudie
8d68317388
4844 fix url elision (#6588)
* For #4844: add test cases for url elision

* For 4844: implement toShortUrl to pass test cases

* For 4844: update plumbing to use toShortUrl

* For 4844: adds/handles suggested url elision test case
2019-11-15 14:25:50 -08:00
Shangeeth Sivan
218763f9be For #4556: Removed redundant code in few tests. (#6367)
* Moved some values as member variables as having them declared separately in methods seemed redundant.

* Added @Before method in logtest to avoid code duplication Fixes #4556

* Added @Before method to FragmentTest class Fixes #4556

* variable renamed and added private access specifier; removed set from member variable as it is used only once and we can convert the list to set when needed

* Fixes linter errors
2019-11-07 13:20:51 -08:00
Jeffrey Starke
6a6c4f75dd * Move repeated NavControllerTest logic to @Before set up method
* Use property access syntax where applicable in NavControllerTest
2019-10-31 16:28:02 -07:00
Kate Glazko
6210bb1da2 ExtTest for BookmarkNode 2019-10-17 12:54:03 -07:00
MozLando
662be3f686 Merge #5974
5974: Ext Test For ImageButton r=mcomella a=kglazko



Co-authored-by: Kate Glazko <katglazko@gmail.com>
2019-10-15 19:31:47 +00:00
Kate Glazko
829da2e546 Ext Test For ImageButton 2019-10-14 13:30:39 -07:00
shldhll
8e17ac05b1 Optimized imports. Closes #5876 2019-10-10 04:17:43 +05:30
shldhll
f907ec52f0 Removed ObsoleteCoroutinesApi in tests. Closes #5876 2019-10-10 04:04:51 +05:30
Colin Lee
b7647a454f
For #5599: Remove dependency on fetch_httpurlconnection (#5716)
* For #5599: Remove dependency on fetch_httpurlconnection

* For #5599: Switch Glean to GeckoViewFetchClient

* Use existing Gecko client for Glean
2019-10-04 12:28:23 -05:00
Tiger Oakes
05a4faec78 Add tryGetHostFromUrl and update ExceptionDomains 2019-09-19 22:40:35 -04:00
Colin Lee
df8aed9158
For #5274: Fix LogTest unit tests (#5275) 2019-09-12 15:41:56 -05:00
Emily Kager
768c7c2d35 Closes #5268 - Fix 2 detekt errors 2019-09-12 11:32:33 -07:00
kglazko
3fd44e8d83
Issue 4622- Create Unit Tests for Extensions (#4669) 2019-09-12 10:44:37 -07:00
Tiger Oakes
d1964d6536 Fixes #4771 - Add method for sessions of type (#4782)
Fixes share tabs to use the new method
2019-08-27 13:04:03 -07:00
Sawyer Blatz
da06b0fb15
For #4508: Treats warnings as errors (#4543) 2019-08-07 14:00:53 -07:00