Mobile/Fennec/Android/CommonTips: Difference between revisions

Jump to navigation Jump to search
Line 130: Line 130:
====Test insertions via BrowserProvider====
====Test insertions via BrowserProvider====
*Add a <tt>TestInsert* extends TestCase</tt> class with a <tt>test</tt> method. Insert a value, query, and make sure you receive what you think you should! Pattern match other tests here.
*Add a <tt>TestInsert* extends TestCase</tt> class with a <tt>test</tt> method. Insert a value, query, and make sure you receive what you think you should! Pattern match other tests here.
*Add your test to <tt>TestBrowserProvider.setUp</tt>
*Register your test to be run in <tt>TestBrowserProvider.setUp</tt>
 
====Add a class to abstract querying your table from within Fennec====
So instead of accessing the content provider directly, you can call, <tt>YourTable.insert(url, title);</tt>. Alternatively, add these methods directly to <tt>LocalBrowserDB</tt> & friends if your queries overlap the queries there or share data (e.g. table join).
*
*Don't forget to add your new files to <tt>moz.build</tt>


=== Updating search engine icons ===
=== Updating search engine icons ===
Confirmed users
975

edits

Navigation menu