incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmarga...@apache.org
Subject svn commit: r540330 - /incubator/xap/trunk/unittests/testsrc/xap/taghandling/_TestPluginRegistryImpl.js
Date Mon, 21 May 2007 22:35:23 GMT
Author: jmargaris
Date: Mon May 21 15:35:22 2007
New Revision: 540330

URL: http://svn.apache.org/viewvc?view=rev&rev=540330
Log:
checking undef instead of null

Modified:
    incubator/xap/trunk/unittests/testsrc/xap/taghandling/_TestPluginRegistryImpl.js

Modified: incubator/xap/trunk/unittests/testsrc/xap/taghandling/_TestPluginRegistryImpl.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/unittests/testsrc/xap/taghandling/_TestPluginRegistryImpl.js?view=diff&rev=540330&r1=540329&r2=540330
==============================================================================
--- incubator/xap/trunk/unittests/testsrc/xap/taghandling/_TestPluginRegistryImpl.js (original)
+++ incubator/xap/trunk/unittests/testsrc/xap/taghandling/_TestPluginRegistryImpl.js Mon May
21 15:35:22 2007
@@ -36,16 +36,16 @@
  	
  	var tagMapping = pluginRegistry.getTagMapping("objectDataSource", "http://openxal.org/core/data",
"dataSources");
  	assertTrue("tag mapping for objectDataSource is com.acme.plugin.data.bridge.ObjectDataSourceBridge",
- 		tagMapping=="com.acme.plugin.data.bridge.ObjectDataSourceBridge");
+ 		tagMapping == "com.acme.plugin.data.bridge.ObjectDataSourceBridge");
  		
  	tagMapping = pluginRegistry.getTagMapping("objectDataSource", "http://openxal.org/core/data1",
"dataSources");
- 	assertTrue("tag mapping for objectDataSource with wrong namespace is null",
- 		tagMapping==null);
+ 	assertTrue("tag mapping for objectDataSource with wrong namespace is undefined",
+ 		tagMapping === undefined);
 
  		
  	tagMapping = pluginRegistry.getTagMapping("objectDataSource", "http://openxal.org/core/data",
"dataSources1");
- 	assertTrue("tag mapping for objectDataSource with wrong document is null",
- 		tagMapping==null);
+ 	assertTrue("tag mapping for objectDataSource with wrong document is undefined",
+ 		tagMapping === undefined);
  		
  		
  	tagMapping = pluginRegistry.getTagMapping("objectDataSource", "namespace2", "dataSources");
@@ -55,13 +55,13 @@
 
  		
  	tagMapping = pluginRegistry.getTagMapping("objectDataSource", "namespace21", "dataSources");
- 	assertTrue("tag mapping for objectDataSource with wrong namespace is null",
- 		tagMapping==null);
+ 	assertTrue("tag mapping for objectDataSource with wrong namespace is undefined",
+ 		tagMapping === undefined);
 
  		
  	tagMapping = pluginRegistry.getTagMapping("objectDataSource", "namespace2", "dataSources1");
- 	assertTrue("tag mapping for objectDataSource with wrong document is null",
- 		tagMapping==null);
+ 	assertTrue("tag mapping for objectDataSource with wrong document is undefined",
+ 		tagMapping === undefined);
  		
  		
  	tagMapping = pluginRegistry.getTagMapping("binding", "http://openxal.org/core/data", "bindings");
@@ -69,14 +69,14 @@
  		tagMapping=="com.acme.plugin.data.bridge.BindingBridge");
  		
  	tagMapping = pluginRegistry.getTagMapping("binding", "namespace2", "bindings");
- 	assertTrue("tag mapping for binding with namespace2 namespace is null",
- 		tagMapping==null);
+ 	assertTrue("tag mapping for binding with namespace2 namespace is undefined",
+ 		tagMapping === undefined);
  		
  		
 
  	tagMapping = pluginRegistry.getTagMapping("iteratorPlaceHolder","http://openxal.org/core/data","ui");
  	assertTrue("tag mapping for iteratorPlaceHolder is special item",
- 		tagMapping==xap.taghandling.PluginRegistryImpl.NO_MAPPED_CLASS);
+ 		tagMapping == xap.taghandling.PluginRegistryImpl.NO_MAPPED_CLASS);
  		
  		
 }



Mime
View raw message