1955 Commits

Author SHA1 Message Date
siddharth2010
9e40d7c763 fix test code 2018-07-13 23:49:48 +01:00
siddharth2010
e222a50117 add basic test flow 2018-07-13 23:49:48 +01:00
siddharth2010
9ba56929ac restructure test classe 2018-07-13 23:49:48 +01:00
siddharth2010
6087575235 update TODOs 2018-07-13 23:49:48 +01:00
siddharth2010
41ebd840ce add TODOs 2018-07-13 23:49:48 +01:00
Abdul Wadood
5ee93d0efd Delete duplicate duplicate books using book id instead of file path 2018-07-13 23:27:45 +01:00
Abdul Wadood
0947fe9acc Add clear history option 2018-07-09 23:24:58 +01:00
Abdul Wadood
a086bb74ec Add same article once in history per day 2018-07-09 23:24:58 +01:00
Abdul Wadood
8af4808022 Add one article per day in history 2018-07-09 23:24:58 +01:00
Abdul Wadood
4a71aef88b Remove lint warnings 2018-07-09 23:24:58 +01:00
Abdul Wadood
1f28683e5f Add delete history option to contextual action bar 2018-07-09 23:24:58 +01:00
Abdul Wadood
55c232d79c Add history activity 2018-07-09 23:24:58 +01:00
siddharth2010
1d03f5e807 fix string 'help_1' 2018-07-06 22:48:07 +01:00
Abdul Wadood
aeefb55b38 Add LanguageActivity (#774)
* Add LanguageActivity

* Disable ErrorActivity for debug builds

* Remove lint warnings

* Save language list using single scheduler
2018-07-01 21:58:45 +02:00
siddharth2010
cd247d0f45 tests generated intent 2018-07-01 20:41:18 +02:00
siddharth2010
488abe0ec1 Add Update SharedPreferences before activity starts 2018-07-01 20:41:18 +02:00
siddharth2010
8b4e55cd3e test Travis Build 2018-07-01 20:41:18 +02:00
siddharth2010
25ef5f41b6 Minor additions 2018-07-01 20:41:18 +02:00
siddharth2010
9d4d8cc648 Initialise intents in the beginning 2018-07-01 20:41:18 +02:00
siddharth2010
56080fb6da Add final tests 2018-07-01 20:41:18 +02:00
siddharth2010
4345985b28 Add the test cases 2018-07-01 20:41:18 +02:00
siddharth2010
82af650286 delete IntroActivityTest 2018-07-01 20:41:18 +02:00
siddharth2010
a0f0b8f8c5 delete SplashActivityTest, to test Travis build 2018-07-01 20:41:18 +02:00
siddharth2010
f835544b46 Add Kiwix Copyright 2018-07-01 20:41:18 +02:00
siddharth2010
267b8a395d improve SplashActivity Tests 2018-07-01 20:41:18 +02:00
siddharth2010
af8080b2db remove unused import statements 2018-07-01 20:41:18 +02:00
siddharth2010
3e054c6777 add tests for splash activity 2018-07-01 20:41:18 +02:00
siddharth2010
cde713dd0f replace strings by refrences 2018-07-01 20:41:18 +02:00
siddharth2010
d1e91dca4a fixed all issues 2018-07-01 20:41:18 +02:00
siddharth2010
cf1487b9a4 Add lots of recorded UI tests. Need to change each one of them slightly 2018-07-01 20:41:18 +02:00
siddharth2010
e208246e65 found error 2018-07-01 20:41:18 +02:00
siddharth2010
def9b8e035 version 1.0, not executing properly 2018-07-01 20:41:18 +02:00
Abdul Wadood
1398b7c109 Add presenter for IntroActivity 2018-07-01 20:41:18 +02:00
Abdul Wadood
830be72543 Add alpha to back and forward arrows in bottom toolbar.
Remove unused resources.
2018-06-25 18:23:54 +01:00
Abdul Wadood
7230d2361b Update gradle wrapper to fix build 2018-06-25 18:23:54 +01:00
Abdul Wadood
69e640d139 Rearrange toolbar icons 2018-06-25 18:23:54 +01:00
Abdul Wadood
fefb12abe8 Refactor bottom toolbar 2018-06-25 18:23:54 +01:00
Abdul Wadood
5d48ee968e Create new home screen and initial landing screen (#761)
* Revamp home screen

* Add empty state card

* Add Kiwix logo to home card

* Add storage permission to MainActivity

* Increase the width of Kiwix logo

* Add padding to the Kiwix logo.
Remove text from the home card.

* Update strings.xml
2018-06-24 18:55:42 +01:00
Abdul Wadood
a5ebb19511 Remove style 2018-06-19 16:23:03 +01:00
Abdul Wadood
0129c0183f Fix tests 2018-06-19 16:23:03 +01:00
Abdul Wadood
f9449eaa8c Remove second screen from IntroActivity 2018-06-19 16:23:03 +01:00
Abdul Wadood
6e36bd95d0 Add onboarding screens 2018-06-19 16:23:03 +01:00
Siddharth Sharma
f47bd50f37 Unit Test the Database (#758)
* Add TODOs for BookDatabaseTest

* minor change to BookDatabaseTest

* add TODOs for BookmarksDatabaseTest

* add TODOs for BookmarksDatabaseTest

* Add TODOs for networkLanguageDatabaseTest

* add TODOs for RecentSearchDatabaseTest

* Approach not working. new attempt required

* stuck trying to access the database using overridden mocked DAO class. New way to do the stuff

* able to access the database

* two conflicting databases created. need to fix

* fix a bug due to pass by value and not by reference

* remove redundant code

* separate the internal logic and the DAO wrapper in BookDao class

* intial draft working

* create test for BookDao.getBooks()

test has minor bug that needs to be rectified

* internal BookDao methods returning null values during testing. needs to be fixed

* Add TODOs for testing utils/files/FileUtils

* Add tests for utils/files/FileUtils.java

* Add tests for RecentSearchDatabaseTest

* fix travis build failure

the file NetworkLanguageDatabase test contains no test and is deleted

* Add comments to RecentSearchDatabaseTest

* minor formatting changes

* delete FileUtilsTest

* changed access type of methods as private

* delete extra unnecessary code

* need to fix a powermock bug

* fix the file.exists() error

* totally fix the file.exists() issue

* fix the File.exists() issue

* update Databas tests

* commenting all code and checking whether travis passes

* fix all travis build errors

* improve the test structure

* update tests

* remove unused import statements

* fix spacing

* comment test to find bug

* test if build works
2018-06-15 16:52:02 +01:00
Siddharth Sharma
c97420cd04 make code more uniform
insert the path of the temporary directory inside the base path itself instead of adding it every time a new file has to be created
2018-06-14 23:46:08 +01:00
Siddharth Sharma
e3e901671f Remove commented code 2018-06-14 23:46:08 +01:00
siddharth2010
f13a3e29da fix spaces 2018-06-14 23:46:08 +01:00
siddharth2010
56b3d6104b remove commented code 2018-06-14 23:46:08 +01:00
siddharth2010
a6b8fd751c fix indentation and spacing 2018-06-14 23:46:08 +01:00
siddharth2010
40083ffc8c update the logic to delete all the temporary files 2018-06-14 23:46:08 +01:00
siddharth2010
0edc4078fe FIX EVERYTHING. tests running perfectly 2018-06-14 23:46:08 +01:00