Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f1cee7a5 authored by Siyamed Sinir's avatar Siyamed Sinir Committed by Android (Google) Code Review
Browse files

Merge "Enable Text core tests"

parents 9d934d91 68089c81
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -16,18 +16,15 @@

package android.text;

import static android.text.Layout.Alignment.*;

import android.text.DynamicLayout;

import junit.framework.TestCase;

import static android.text.Layout.Alignment.ALIGN_NORMAL;

/**
 * Tests DynamciLayout updateBlocks method.
 *
 * Requires disabling access checks in the vm since this calls package-private APIs.
 *
 * @Suppress
 */
public class DynamicLayoutBlocksTest extends TestCase {
    private DynamicLayout dl = new DynamicLayout("", new TextPaint(), 0, ALIGN_NORMAL, 0, 0, false);
+4 −1
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@

package android.text;

import android.support.test.filters.SmallTest;

import junit.framework.TestCase;

/**
@@ -23,6 +25,7 @@ import junit.framework.TestCase;
 */
public class PackedIntVectorTest extends TestCase {

    @SmallTest
    public void testBasic() throws Exception {
        for (int width = 0; width < 10; width++) {
            PackedIntVector p = new PackedIntVector(width);
+0 −3
Original line number Diff line number Diff line
@@ -16,9 +16,6 @@

package android.text;

import android.text.Spannable;
import android.text.SpannableStringBuilder;

public class SpannableStringBuilderTest extends SpannableTest {

    protected Spannable newSpannableWithText(String text) {
+0 −3
Original line number Diff line number Diff line
@@ -16,9 +16,6 @@

package android.text;

import android.text.Spannable;
import android.text.SpannableString;

public class SpannableStringTest extends SpannableTest {

    protected Spannable newSpannableWithText(String text) {
+0 −1
Original line number Diff line number Diff line
@@ -19,7 +19,6 @@ package android.text;
import android.test.InstrumentationTestCase;
import android.test.MoreAsserts;
import android.test.suitebuilder.annotation.MediumTest;
import android.text.Spannable;

public abstract class SpannableTest extends InstrumentationTestCase {

Loading