/*______________
| ______ | 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.VisualTests.TestCase.Widget Class
| / / / |
| / / / /| | ONLINE : http://uize.com
| /____/ /__/_| | COPYRIGHT : (c)2013-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.VisualTests.TestCase.Widget= class implements a widget for a widget test case, to be used when building visual tests for widgets.
*DEVELOPERS:* `Chris van Rensburg`
*/
Uize.module ({
name:'Uize.Widgets.VisualTests.TestCase.Widget',
superclass:'Uize.Widgets.BoxWithHeading.Widget',
required:[
'Uize.Widgets.VisualTests.TestCase.Html',
'Uize.Json',
'Uize.Util.Html.Encode'
],
builder:function (_superclass) {
'use strict';
return _superclass.subclass ({
stateProperties:{
state:{},
heading:{
derived:'state: Uize.Util.Html.Encode.encode (Uize.Json.to (state))'
}
},
set:{
html:Uize.Widgets.VisualTests.TestCase.Html
},
htmlBindings:{
heading:'heading:html'
}
});
}
});