summaryrefslogtreecommitdiff
path: root/android/testSrc
diff options
context:
space:
mode:
authorJerome Gaillard <jgaillard@google.com>2022-03-09 19:10:51 +0000
committerJerome Gaillard <jgaillard@google.com>2022-03-15 12:36:20 +0000
commitb06ca412a3a5174f631f22d0c1e7dd13e6e8a8b6 (patch)
tree8acfcdd267efebe81840b573d580a2c38b36db40 /android/testSrc
parenta8a6ae45f1055ad4d1e466a5a5ea52b9fce9be66 (diff)
downloadidea-b06ca412a3a5174f631f22d0c1e7dd13e6e8a8b6.tar.gz
Delete leftover Theme Editor files
ThemeEditorUtils is not really useful anymore. This inlines its methods and cleans up. In particular this removes the use of buildSynchronously during the creation of the RenderTask. Bug: N/A Test: N/A Change-Id: I27ddc9be4a2ade2e0a6c956df06eeae44ef03caa
Diffstat (limited to 'android/testSrc')
-rwxr-xr-xandroid/testSrc/com/android/tools/idea/editors/theme/ThemeEditorUtilsTest.java40
1 files changed, 0 insertions, 40 deletions
diff --git a/android/testSrc/com/android/tools/idea/editors/theme/ThemeEditorUtilsTest.java b/android/testSrc/com/android/tools/idea/editors/theme/ThemeEditorUtilsTest.java
deleted file mode 100755
index d2112191956..00000000000
--- a/android/testSrc/com/android/tools/idea/editors/theme/ThemeEditorUtilsTest.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Copyright (C) 2015 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.android.tools.idea.editors.theme;
-
-import static com.android.SdkConstants.FN_ANDROID_MANIFEST_XML;
-
-import java.util.Arrays;
-import java.util.Collections;
-import org.jetbrains.android.AndroidTestCase;
-
-/**
- * Tests for {@link ThemeEditorUtils} and indirectly {@link com.android.tools.idea.javadoc.AndroidJavaDocRenderer}.
- */
-public class ThemeEditorUtilsTest extends AndroidTestCase {
-
- @Override
- protected boolean providesCustomManifest() {
- return true;
- }
-
- public void testGenerateWordEnumeration() {
- assertEquals("", ThemeEditorUtils.generateWordEnumeration(Collections.emptyList()));
- assertEquals("one", ThemeEditorUtils.generateWordEnumeration(Collections.singletonList("one")));
- assertEquals("one and two", ThemeEditorUtils.generateWordEnumeration(Arrays.asList("one", "two")));
- assertEquals("one, two and Three", ThemeEditorUtils.generateWordEnumeration(Arrays.asList("one", "two", "Three")));
- }
-}