Bug 899605 - Update testBrowserProvider for Jellybean; r=lucasr

This commit is contained in:
Geoff Brown 2013-08-29 16:44:24 -06:00
parent f155698177
commit 6fbc55db68

View File

@ -649,7 +649,8 @@ public class testBrowserProvider extends ContentProviderTest {
mAsserter.is(new Long(id), new Long(-1),
"Should not be able to insert bookmark with null type");
if (Build.VERSION.SDK_INT >= 8) {
if (Build.VERSION.SDK_INT >= 8 &&
Build.VERSION.SDK_INT < 16) {
b = createOneBookmark();
b.put(mBookmarksParentCol, -1);
id = -1;
@ -745,7 +746,8 @@ public class testBrowserProvider extends ContentProviderTest {
mAsserter.is(c.moveToFirst(), false,
"Inserted bookmark can't be found after deletion using URI with ID");
if (Build.VERSION.SDK_INT >= 8) {
if (Build.VERSION.SDK_INT >= 8 &&
Build.VERSION.SDK_INT < 16) {
ContentValues b = createBookmark("Folder", null, mMobileFolderId,
mBookmarksTypeFolder, 0, "folderTags", "folderDescription", "folderKeyword");