OSDN Git Service

Fix theme namespace in tests.
authorDeepanshu Gupta <deepanshu@google.com>
Wed, 29 Jul 2015 18:12:44 +0000 (11:12 -0700)
committerDeepanshu Gupta <deepanshu@google.com>
Wed, 29 Jul 2015 21:27:02 +0000 (14:27 -0700)
The tests used framework theme (Material), but the ResourceResolver was
created with project theme. This caused tests to fail becasue of missing
resources.

Change-Id: Ia17ee19054f6689f85e3423e83c1f47a2cc4364f

tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/Main.java

index b2909c9..ee448ca 100644 (file)
@@ -285,7 +285,7 @@ public class Main {
                 ConfigGenerator.getEnumMap(attrs), getLayoutLog());
     }
 
-    /** Text activity.xml */
+    /** Test activity.xml */
     @Test
     public void testActivity() throws ClassNotFoundException {
         renderAndVerify("activity.xml", "activity.png");
@@ -404,7 +404,7 @@ public class Main {
         ResourceResolver resourceResolver =
                 ResourceResolver.create(sProjectResources.getConfiguredResources(config),
                         sFrameworkRepo.getConfiguredResources(config),
-                        themeName, true);
+                        themeName, false);
 
         return new SessionParams(
                 layoutParser,