You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-commits@incubator.apache.org by jm...@apache.org on 2007/05/21 22:35:23 UTC
svn commit: r540330 -
/incubator/xap/trunk/unittests/testsrc/xap/taghandling/_TestPluginRegistryImpl.js
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);
}