shindig-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zhor...@apache.org
Subject svn commit: r1152331 - /shindig/trunk/java/gadgets/src/test/java/org/apache/shindig/gadgets/js/DeferredExportJsProcessorTest.java
Date Fri, 29 Jul 2011 18:10:43 GMT
Author: zhoresh
Date: Fri Jul 29 18:10:42 2011
New Revision: 1152331

URL: http://svn.apache.org/viewvc?rev=1152331&view=rev
Log:
Fix DefferedExportJs tests | https://reviews.apache.org/r/1222/

Modified:
    shindig/trunk/java/gadgets/src/test/java/org/apache/shindig/gadgets/js/DeferredExportJsProcessorTest.java

Modified: shindig/trunk/java/gadgets/src/test/java/org/apache/shindig/gadgets/js/DeferredExportJsProcessorTest.java
URL: http://svn.apache.org/viewvc/shindig/trunk/java/gadgets/src/test/java/org/apache/shindig/gadgets/js/DeferredExportJsProcessorTest.java?rev=1152331&r1=1152330&r2=1152331&view=diff
==============================================================================
--- shindig/trunk/java/gadgets/src/test/java/org/apache/shindig/gadgets/js/DeferredExportJsProcessorTest.java
(original)
+++ shindig/trunk/java/gadgets/src/test/java/org/apache/shindig/gadgets/js/DeferredExportJsProcessorTest.java
Fri Jul 29 18:10:42 2011
@@ -59,10 +59,9 @@ public class DeferredExportJsProcessorTe
       "foo.prototype.bar");
 
   private final String EXPORT_STRING_1_DEFER =
-    "exportJs('gadgets',[window.gadgets],{},1);" +
-    "exportJs('shindig',[window.shindig],{},1);" +
-    "exportJs('gadgets.rpc',[window.gadgets,gadgets.rpc],{call:'call'},1);" +
-    "exportJs('shindig',[window.shindig],{random:'random'},1);";
+    "exportJs('gadgets',{gadgets:'gadgets'},{},1);" +
+    "exportJs('gadgets.rpc',{gadgets:'gadgets',rpc:'rpc'},{call:'call'},1);" +
+    "exportJs('shindig',{shindig:'shindig'},{random:'random'},1);";
 
   private final List<String> LIBS_WITH_DEFER = Lists.newArrayList("lib1");
   private final List<String> LIBS_WITHOUT_DEFER = Lists.newArrayList("lib2");
@@ -99,7 +98,7 @@ public class DeferredExportJsProcessorTe
         EXPORT_JS_DEB + EXPORT_STRING_1_DEFER,
         jsBuilder.build().toJsString());
   }
-  
+
   @Test
   public void testProcessWithOneNonEmptyFeatureDeferredNotSupported() throws Exception {
     JsUri jsUri = mockJsUri(JsCompileMode.CONCAT_COMPILE_EXPORT_ALL, true, LIBS_WITHOUT_DEFER);
@@ -111,7 +110,7 @@ public class DeferredExportJsProcessorTe
         "",
         jsBuilder.build().toJsString());
   }
-  
+
   @SuppressWarnings("unchecked")
   private FeatureRegistry mockRegistry(LookupResult lookupMock) {
     FeatureRegistry result = createMock(FeatureRegistry.class);



Mime
View raw message