diff options
author | Raphael Moll <ralf@android.com> | 2010-07-24 05:34:37 -0700 |
---|---|---|
committer | Android Code Review <code-review@android.com> | 2010-07-24 05:34:37 -0700 |
commit | d90026dacfca4517d34b756abd21e59bf396189f (patch) | |
tree | 33505b9793fc7d62add77880cfeabe4931090884 /eclipse/plugins | |
parent | e06fe5d17c6d25ae3ddd1e938db68302d1f857b9 (diff) | |
parent | 9845ce0434a602176590ef61a93a3bb8242eb1a9 (diff) | |
download | sdk-d90026dacfca4517d34b756abd21e59bf396189f.zip sdk-d90026dacfca4517d34b756abd21e59bf396189f.tar.gz sdk-d90026dacfca4517d34b756abd21e59bf396189f.tar.bz2 |
Merge "Fix QualifierListTest and ConfigMatchTest unittests."
Diffstat (limited to 'eclipse/plugins')
2 files changed, 32 insertions, 11 deletions
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/resources/configurations/FolderConfiguration.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/resources/configurations/FolderConfiguration.java index 6eed4d6..42f41cf 100644 --- a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/resources/configurations/FolderConfiguration.java +++ b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/resources/configurations/FolderConfiguration.java @@ -41,11 +41,11 @@ public final class FolderConfiguration implements Comparable<FolderConfiguration private final static int INDEX_TOUCH_TYPE = 10; private final static int INDEX_KEYBOARD_STATE = 11; private final static int INDEX_TEXT_INPUT_METHOD = 12; - private final static int INDEX_NAVIGATION_STATE = 14; - private final static int INDEX_NAVIGATION_METHOD = 15; - private final static int INDEX_SCREEN_DIMENSION = 16; - private final static int INDEX_VERSION = 17; - private final static int INDEX_COUNT = 18; + private final static int INDEX_NAVIGATION_STATE = 13; + private final static int INDEX_NAVIGATION_METHOD = 14; + private final static int INDEX_SCREEN_DIMENSION = 15; + private final static int INDEX_VERSION = 16; + private final static int INDEX_COUNT = 17; /** * Returns the number of {@link ResourceQualifier} that make up a Folder configuration. diff --git a/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/resources/manager/ConfigMatchTest.java b/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/resources/manager/ConfigMatchTest.java index 117654d..8a676ee 100644 --- a/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/resources/manager/ConfigMatchTest.java +++ b/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/resources/manager/ConfigMatchTest.java @@ -29,9 +29,12 @@ import com.android.ide.eclipse.adt.io.IFolderWrapper; import com.android.ide.eclipse.mock.FileMock; import com.android.ide.eclipse.mock.FolderMock; import com.android.sdklib.io.IAbstractFolder; +import com.android.sdklib.resources.DockMode; import com.android.sdklib.resources.Keyboard; import com.android.sdklib.resources.KeyboardState; import com.android.sdklib.resources.Navigation; +import com.android.sdklib.resources.NavigationState; +import com.android.sdklib.resources.NightMode; import com.android.sdklib.resources.ScreenOrientation; import com.android.sdklib.resources.TouchScreen; @@ -90,11 +93,14 @@ public class ConfigMatchTest extends TestCase { null, // screen size null, // screen ratio null, // screen orientation + null, // dock mode + null, // night mode null, // dpi null, // touch mode null, // keyboard state null, // text input - null, // navigation + null, // navigation state + null, // navigation method null, // screen dimension null);// version @@ -108,11 +114,14 @@ public class ConfigMatchTest extends TestCase { null, // screen size null, // screen ratio null, // screen orientation + null, // dock mode + null, // night mode null, // dpi null, // touch mode KeyboardState.EXPOSED.getResourceValue(), // keyboard state null, // text input - null, // navigation + null, // navigation state + null, // navigation method null, // screen dimension null);// version @@ -126,11 +135,14 @@ public class ConfigMatchTest extends TestCase { null, // screen size null, // screen ratio null, // screen orientation + null, // dock mode + null, // night mode null, // dpi null, // touch mode KeyboardState.HIDDEN.getResourceValue(), // keyboard state null, // text input - null, // navigation + null, // navigation state + null, // navigation method null, // screen dimension null);// version @@ -144,11 +156,14 @@ public class ConfigMatchTest extends TestCase { null, // screen size null, // screen ratio ScreenOrientation.LANDSCAPE.getResourceValue(), // screen orientation + null, // dock mode + null, // night mode null, // dpi null, // touch mode null, // keyboard state null, // text input - null, // navigation + null, // navigation state + null, // navigation method null, // screen dimension null);// version @@ -162,11 +177,14 @@ public class ConfigMatchTest extends TestCase { "normal", // screen size "notlong", // screen ratio ScreenOrientation.LANDSCAPE.getResourceValue(), // screen orientation + DockMode.DESK.getResourceValue(), // dock mode + NightMode.NIGHT.getResourceValue(), // night mode "mdpi", // dpi TouchScreen.FINGER.getResourceValue(), // touch mode KeyboardState.EXPOSED.getResourceValue(), // keyboard state Keyboard.QWERTY.getResourceValue(), // text input - Navigation.DPAD.getResourceValue(), // navigation + NavigationState.EXPOSED.getResourceValue(), // navigation state + Navigation.DPAD.getResourceValue(), // navigation method "480x320", // screen dimension "v3"); // version @@ -188,11 +206,14 @@ public class ConfigMatchTest extends TestCase { "normal", // screen size "notlong", // screen ratio ScreenOrientation.LANDSCAPE.getResourceValue(), // screen orientation + DockMode.DESK.getResourceValue(), // dock mode + NightMode.NIGHT.getResourceValue(), // night mode "mdpi", // dpi TouchScreen.FINGER.getResourceValue(), // touch mode KeyboardState.EXPOSED.getResourceValue(), // keyboard state Keyboard.QWERTY.getResourceValue(), // text input - Navigation.DPAD.getResourceValue(), // navigation + NavigationState.EXPOSED.getResourceValue(), // navigation state + Navigation.DPAD.getResourceValue(), // navigation method "480x320", // screen dimension "v3"); // version |