瀏覽代碼

fix: cleanup

beautusg 7 年之前
父節點
當前提交
5b1d9ad687

+ 0 - 23
app/src/androidTest/java/com/sduduzog/slimlauncher/TasksFragmentTest.kt

@@ -5,13 +5,11 @@ import android.view.KeyEvent
 import androidx.test.espresso.Espresso.onView
 import androidx.test.espresso.action.ViewActions.*
 import androidx.test.espresso.assertion.ViewAssertions.matches
-import androidx.test.espresso.matcher.RootMatchers
 import androidx.test.espresso.matcher.ViewMatchers.*
 import androidx.test.filters.LargeTest
 import androidx.test.internal.runner.junit4.AndroidJUnit4ClassRunner
 import androidx.test.rule.ActivityTestRule
 import org.hamcrest.CoreMatchers.allOf
-import org.hamcrest.Matchers
 import org.junit.Rule
 import org.junit.Test
 import org.junit.runner.RunWith
@@ -37,25 +35,4 @@ class TasksFragmentTest {
 
         checkBox.check(matches(isNotChecked()))
     }
-
-    @Test
-    fun isStartButtonShown() {
-        val button = onView(allOf(withText(R.string.setup_button_start)))
-        button.check(matches(isDisplayed()))
-    }
-
-    @Test
-    fun noAppsSelected() {
-        val startButton = onView(allOf(withText(R.string.setup_button_start)))
-        startButton.perform(click())
-
-        val appCompatButton2 = onView(
-                allOf(withText("DONE")))
-        appCompatButton2.perform(scrollTo(), click())
-
-        onView(withText(R.string.no_app_selected_toast_msg)).inRoot(
-                RootMatchers.withDecorView(Matchers.not(Matchers.`is`(mActivityTestRule.activity.window.decorView))))
-                .check(matches(isDisplayed()))
-    }
-
 }

+ 1 - 5
app/src/main/res/values/strings.xml

@@ -2,7 +2,7 @@
     <string name="app_name">Slim Launcher</string>
     <string name="slim_url">http://sduduzog.github.io/slim-launcher/</string>
     <string name="main_placeholder_clock">00:00</string>
-    <string name="main_placeholder_date">Date</string>
+    <string name="main_placeholder_date">Sat, Apr 20</string>
 
     <string-array name="themes_array">
         <item>Default</item>
@@ -32,10 +32,6 @@
     <string name="prefs_settings_key_theme">key_theme</string>
     <string name="prefs_settings_key_time_format">clock_type</string>
     <string name="prefs_settings_key_toggle_status_bar">hide_status_bar</string>
-    <string name="note_fragment_hint_body">Start here</string>
-    <string name="setup_button_start">start</string>
-    <string name="no_app_selected_toast_msg">Choose at least one app</string>
-    <string name="choose_apps_title">Choose Apps</string>
     <string name="choose_time_format_dialog_title">Choose Time Format</string>
     <string name="main_fragment_options">Options</string>
     <string name="options_fragment_about_slim">About Slim</string>