text: /*
   * This is a basic func test for a Common application.
   */
  YUI({
       useConsoleOutput: true,
       useBrowserConsole: true,
       logInclude: { TestRunner: true }
  }).use('node', 'node-event-simulate', 'test', 'console', function (Y) {
  
       var suite = new Y.Test.Suite("Common");
  
       suite.add(new Y.Test.Case({
  
           "test assetcsswithdefaultlocationclient": function() {
               var that = this;
               Y.one('#assets_default_button').simulate('click');
               that.wait(function(){
                   //check if the css are load in the header
                   var pat1 = /\/static\/AssetsMojit\/assets\/css\/css1.css/gi;
                   var pat2 = /\/static\/Binders\/assets\/css\/css_in_binders.css/gi;
                   var pat3 = /\/static\/AssetsMojit\/assets\/css\/css_not_present.css/gi;
                   if(checkscript(Y.one('head'), 'link', 'href', pat1)){
                       Y.Assert.areEqual('/static/AssetsMojit/assets/css/css1.css', checkscript(Y.one('head'), 'link', 'href', pat1));
                       Y.Assert.areEqual('/static/Binders/assets/css/css_in_binders.css', checkscript(Y.one('head'), 'link', 'href', pat2));
                       Y.Assert.areEqual('/static/AssetsMojit/assets/css/css_not_present.css', checkscript(Y.one('head'), 'link', 'href', pat3));
                   }else{
                       Y.Assert.areEqual('/static/AssetsMojit/assets/css/css1.css', checkscript(Y.one('head'), 'style', 'rel', pat1));
                       Y.Assert.areEqual('/static/Binders/assets/css/css_in_binders.css', checkscript(Y.one('head'), 'style', 'rel', pat2));
                       Y.Assert.areEqual('/static/AssetsMojit/assets/css/css_not_present.css', checkscript(Y.one('head'), 'style', 'rel', pat3));
                   }
               }, 2000);
           }
  
       }));
  
       Y.Test.Runner.add(suite);
  
       function checkscript(mynode, assetLoc, assetTag, assetPat){
           var mystring;
           mynode.all(assetLoc).each(function (taskNode){
              var mysrc;
              if(assetTag === 'rel'){
                  mysrc = taskNode.getContent().match(assetPat);
              }else{
                  mysrc = taskNode.get(assetTag).match(assetPat);   
              }
              if(mysrc!=null){ mystring=mysrc; }   
           });
           return mystring;
       }
  });