     
     private static function assertTextGeneric(params:Object,
         exact:Boolean):Boolean {
-      return WMAssert.doAssert(params, {
+      return WMAssert.doBaseAssert(params, {
         attrName: ['htmlText', 'label'],
         preMatchProcess: function (str:String):String {
           return str.replace(/^\s*|\s*$/g, '');

package org.windmill {
  import org.windmill.WMLocator;
  import org.windmill.WMLogger;

  public class WMAssert {
    public function WMAssert():void {}

    private static var matchTypes:Object = {
      EXACT: 'exact',
      CONTAINS: 'contains'
    };

    public static function assertDisplayObject(params:Object):Boolean {
      var obj:* = WMLocator.lookupDisplayObject(params);
      if (!!obj) {

    
    // Workhorse function that does all the main work for
    // most asserts
    private static function doBaseAssert(params:Object,
        opts:Object = null):Boolean {
      // Ref to the object to do the lookup on
      var obj:* = WMLocator.lookupDisplayObject(params);
