SOURCE CODE: Uize.Widgets.Tools.MultiLineStringSerializer.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.Tools.MultiLineStringSerializer.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: 5
  docCompleteness: 100
*/

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

    *DEVELOPERS:* `Chris van Rensburg`
*/

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

    return _superclass.subclass ({
      omegastructor:function () {
        this.addStateCombinationTestCases ({
          source:[
            'This is some multi-line text',
            'that should be turned into a',
            'multi-line JavaScript string literal',
            'expression that allows text blocks',
            'to be conveniently processed for',
            'inclusion into JavaScript source code.',
            '',
            'You can also convert in the other',
            'direction by first entering a multi-line',
            'JavaScript string literal expression',
            'in the other pane.'
          ].join ('\n'),
          quoteChar:['\'','"']
        });
      },

      staticProperties:{
        widgetClass:Uize.Widgets.Tools.MultiLineStringSerializer.Widget
      }
    });
  }
});