refactor: remove readonly wording from thread status surfaces
This commit is contained in:
@@ -3,6 +3,7 @@ package com.hyzq.boss;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertNotNull;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
import static org.junit.Assert.assertFalse;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
@@ -64,7 +65,8 @@ public class ThreadStatusActivityTest {
|
||||
assertTrue(viewTreeContainsText(content, "事件 2"));
|
||||
assertTrue(viewTreeContainsText(content, "事件 1"));
|
||||
assertEquals("project-1", apiClient.lastRequestedProjectId);
|
||||
assertEquals("只读", String.valueOf(activity.findViewById(R.id.screen_header_action).getContentDescription()));
|
||||
assertEquals(View.GONE, activity.findViewById(R.id.screen_header_action).getVisibility());
|
||||
assertFalse(viewTreeContainsText(content, "只读状态文档"));
|
||||
}
|
||||
|
||||
private static final class TestThreadStatusActivity extends ThreadStatusActivity {
|
||||
|
||||
Reference in New Issue
Block a user