SOURCE CODE: Uize.Widgets.SegmentDisplay.Seven.VisualTests (view docs)

/*______________
|       ______  |   U I Z E    J A V A S C R I P T    F R A M E W O R K
|     /      /  |   ---------------------------------------------------
|    /    O /   |    MODULE : Uize.Widgets.SegmentDisplay.Seven.VisualTests Class
|   /    / /    |
|  /    / /  /| |    ONLINE : http://uize.com
| /____/ /__/_| | COPYRIGHT : (c)2014-2016 UIZE
|          /___ |   LICENSE : Available under MIT License or GNU General Public License
|_______________|             http://uize.com/license.html
*/

/* Module Meta Data
  type: Class
  importance: 1
  codeCompleteness: 100
  docCompleteness: 100
*/

/*?
  Introduction
    The =Uize.Widgets.SegmentDisplay.Seven.VisualTests= class implements a set of visual tests for the =Uize.Widgets.SegmentDisplay.Seven.Widget= class.

    *DEVELOPERS:* `Chris van Rensburg`
*/

Uize.module ({
  name:'Uize.Widgets.SegmentDisplay.Seven.VisualTests',
  superclass:'Uize.Widgets.VisualTests.Widget',
  required:'Uize.Widgets.SegmentDisplay.Seven.Widget',
  builder:function (_superclass) {
    'use strict';

    return _superclass.subclass ({
      omegastructor:function () {
        this.addStateCombinationTestCases ({
          value:'3',
          segmentColor:['f00','0f0','00f','f0f','0ff','ff0']
        });
        this.addStateCombinationTestCases ({
          value:'3',
          width:[100,150,200],
          height:[100,150,200]
        });
        this.addStateCombinationTestCases ({
          value:'3',
          segmentThickness:[5,10,20,30]
        });
        this.addStateCombinationTestCases ({
          value:'3',
          segmentThickness:20,
          segmentGap:[0,1,3,8]
        });
        this.addStateCombinationTestCases ({
          value:['0','1','2','3','4','5','6','7','8','9']
        });
      },

      staticProperties:{
        widgetClass:Uize.Widgets.SegmentDisplay.Seven.Widget
      }
    });
  }
});