/* ************************************************************************

   qooxdoo - the new era of web development

   http://qooxdoo.org

   Copyright:
     2004-2010 1&1 Internet AG, Germany, http://www.1und1.de

   License:
     LGPL: http://www.gnu.org/licenses/lgpl.html
     EPL: http://www.eclipse.org/org/documents/epl-v10.php
     See the LICENSE file in the project's top-level directory for details.

   Authors:
     * Jonathan Weiß (jonathan_rass)

************************************************************************ */

qx.Class.define("qx.test.ui.decoration.Uniform",
{
  extend : qx.dev.unit.TestCase,

  statics :
  {
    overflow : (qx.bom.client.Engine.MSHTML && qx.bom.client.Engine.VERSION == 6 ? "overflow:hidden;" : "")
  },

  members:
  {


    testColor : function()
    {
      var decorator = new qx.ui.decoration.Uniform();
      decorator.setWidth(2);
      decorator.setColor(null);
      var markup = decorator.getMarkup();

      this.assertEquals('<div style="position:absolute;top:0;left:0;border:2px solid ;background-position:0 0;' + qx.test.ui.decoration.Uniform.overflow + '"></div>', markup);
    },

    testBackgroundColor : function()
    {
      var decorator = new qx.ui.decoration.Uniform();
      decorator.setWidth(2);
      decorator.setBackgroundColor(null);
      var markup = decorator.getMarkup();

      this.assertEquals('<div style="position:absolute;top:0;left:0;border:2px solid ;background-position:0 0;' + qx.test.ui.decoration.Uniform.overflow + '"></div>', markup);
    }


  }

});
