smalltalk.addClass('TabManager', smalltalk.Widget, ['selectedTab', 'tabs', 'opened', 'ul'], 'IDE'); smalltalk.addMethod( '_tabs', smalltalk.method({ selector: 'tabs', category: 'accessing', fn: function (){ var self=this; return (($receiver = self['@tabs']) == nil || $receiver == undefined) ? (function(){return self['@tabs']=smalltalk.send((smalltalk.Array || Array), "_new", []);})() : $receiver; return self;}, source: unescape('tabs%0A%20%20%20%20%5Etabs%20ifNil%3A%20%5Btabs%20%3A%3D%20Array%20new%5D'), messageSends: ["ifNil:", "new"], referencedClasses: [smalltalk.Array] }), smalltalk.TabManager); smalltalk.addMethod( '_updateBodyMargin', smalltalk.method({ selector: 'updateBodyMargin', category: 'actions', fn: function (){ var self=this; smalltalk.send(self, "_setBodyMargin_", [(($receiver = smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_height", [])).klass === smalltalk.Number) ? $receiver +(27) : smalltalk.send($receiver, "__plus", [(27)])]); return self;}, source: unescape('updateBodyMargin%0A%20%20%20%20self%20setBodyMargin%3A%20%27%23jtalk%27%20asJQuery%20height%20+%2027'), messageSends: ["setBodyMargin:", unescape("+"), "height", "asJQuery"], referencedClasses: [] }), smalltalk.TabManager); smalltalk.addMethod( '_updatePosition', smalltalk.method({ selector: 'updatePosition', category: 'actions', fn: function (){ var self=this; jQuery('#jtalk').css('top', '').css('bottom', '27px'); return self;}, source: unescape('updatePosition%0A%20%20%20%20%3CjQuery%28%27%23jtalk%27%29.css%28%27top%27%2C%20%27%27%29.css%28%27bottom%27%2C%20%2727px%27%29%3E'), messageSends: [], referencedClasses: [] }), smalltalk.TabManager); smalltalk.addMethod( '_removeBodyMargin', smalltalk.method({ selector: 'removeBodyMargin', category: 'actions', fn: function (){ var self=this; smalltalk.send(self, "_setBodyMargin_", [(0)]); return self;}, source: unescape('removeBodyMargin%0A%20%20%20%20self%20setBodyMargin%3A%200'), messageSends: ["setBodyMargin:"], referencedClasses: [] }), smalltalk.TabManager); smalltalk.addMethod( '_setBodyMargin_', smalltalk.method({ selector: 'setBodyMargin:', category: 'actions', fn: function (anInteger){ var self=this; smalltalk.send(smalltalk.send(".jtalkBody", "_asJQuery", []), "_cssAt_put_", [unescape("margin-bottom"), smalltalk.send(smalltalk.send(anInteger, "_asString", []), "__comma", ["px"])]); return self;}, source: unescape('setBodyMargin%3A%20anInteger%0A%20%20%20%20%27.jtalkBody%27%20asJQuery%20cssAt%3A%20%27margin-bottom%27%20put%3A%20anInteger%20asString%2C%20%27px%27'), messageSends: ["cssAt:put:", "asJQuery", unescape("%2C"), "asString"], referencedClasses: [] }), smalltalk.TabManager); smalltalk.addMethod( '_onResize_', smalltalk.method({ selector: 'onResize:', category: 'actions', fn: function (aBlock){ var self=this; jQuery('#jtalk').resizable({ handles: 'n', resize: aBlock, minHeight: 230 }); return self;}, source: unescape('onResize%3A%20aBlock%0A%20%20%20%20%3CjQuery%28%27%23jtalk%27%29.resizable%28%7B%0A%09handles%3A%20%27n%27%2C%20%0A%09resize%3A%20aBlock%2C%0A%09minHeight%3A%20230%0A%7D%29%3E'), messageSends: [], referencedClasses: [] }), smalltalk.TabManager); smalltalk.addMethod( '_onWindowResize_', smalltalk.method({ selector: 'onWindowResize:', category: 'actions', fn: function (aBlock){ var self=this; jQuery(window).resize(aBlock); return self;}, source: unescape('onWindowResize%3A%20aBlock%0A%20%20%20%20%3CjQuery%28window%29.resize%28aBlock%29%3E'), messageSends: [], referencedClasses: [] }), smalltalk.TabManager); smalltalk.addMethod( '_open', smalltalk.method({ selector: 'open', category: 'actions', fn: function (){ var self=this; (($receiver = self['@opened']).klass === smalltalk.Boolean) ? (! $receiver ? (function(){smalltalk.send(smalltalk.send("body", "_asJQuery", []), "_addClass_", ["jtalkBody"]);smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_show", []);smalltalk.send(smalltalk.send(self['@ul'], "_asJQuery", []), "_show", []);smalltalk.send(self, "_updateBodyMargin", []);smalltalk.send(self['@selectedTab'], "_show", []);return self['@opened']=true;})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){smalltalk.send(smalltalk.send("body", "_asJQuery", []), "_addClass_", ["jtalkBody"]);smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_show", []);smalltalk.send(smalltalk.send(self['@ul'], "_asJQuery", []), "_show", []);smalltalk.send(self, "_updateBodyMargin", []);smalltalk.send(self['@selectedTab'], "_show", []);return self['@opened']=true;})]); return self;}, source: unescape('open%0A%20%20%20%20opened%20ifFalse%3A%20%5B%0A%09%27body%27%20asJQuery%20addClass%3A%20%27jtalkBody%27.%0A%09%27%23jtalk%27%20asJQuery%20show.%0A%09ul%20asJQuery%20show.%0A%09self%20updateBodyMargin.%0A%09selectedTab%20show.%0A%09opened%20%3A%3D%20true%5D'), messageSends: ["ifFalse:", "addClass:", "asJQuery", "show", "updateBodyMargin"], referencedClasses: [] }), smalltalk.TabManager); smalltalk.addMethod( '_close', smalltalk.method({ selector: 'close', category: 'actions', fn: function (){ var self=this; (($receiver = self['@opened']).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_hide", []);smalltalk.send(smalltalk.send(self['@ul'], "_asJQuery", []), "_hide", []);smalltalk.send(self['@selectedTab'], "_hide", []);smalltalk.send(self, "_removeBodyMargin", []);smalltalk.send(smalltalk.send("body", "_asJQuery", []), "_removeClass_", ["jtalkBody"]);return self['@opened']=false;})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_hide", []);smalltalk.send(smalltalk.send(self['@ul'], "_asJQuery", []), "_hide", []);smalltalk.send(self['@selectedTab'], "_hide", []);smalltalk.send(self, "_removeBodyMargin", []);smalltalk.send(smalltalk.send("body", "_asJQuery", []), "_removeClass_", ["jtalkBody"]);return self['@opened']=false;})]); return self;}, source: unescape('close%0A%20%20%20%20opened%20ifTrue%3A%20%5B%0A%09%27%23jtalk%27%20asJQuery%20hide.%0A%09ul%20asJQuery%20hide.%0A%09selectedTab%20hide.%0A%09self%20removeBodyMargin.%0A%09%27body%27%20asJQuery%20removeClass%3A%20%27jtalkBody%27.%0A%09opened%20%3A%3D%20false%5D'), messageSends: ["ifTrue:", "hide", "asJQuery", "removeBodyMargin", "removeClass:"], referencedClasses: [] }), smalltalk.TabManager); smalltalk.addMethod( '_newBrowserTab', smalltalk.method({ selector: 'newBrowserTab', category: 'actions', fn: function (){ var self=this; smalltalk.send((smalltalk.Browser || Browser), "_open", []); return self;}, source: unescape('newBrowserTab%0A%20%20%20%20Browser%20open'), messageSends: ["open"], referencedClasses: [] }), smalltalk.TabManager); smalltalk.addMethod( '_selectTab_', smalltalk.method({ selector: 'selectTab:', category: 'actions', fn: function (aWidget){ var self=this; smalltalk.send(self, "_open", []); self['@selectedTab']=aWidget; smalltalk.send(smalltalk.send(self, "_tabs", []), "_do_", [(function(each){return smalltalk.send(each, "_hide", []);})]); smalltalk.send(aWidget, "_show", []); smalltalk.send(self, "_update", []); return self;}, source: unescape('selectTab%3A%20aWidget%0A%20%20%20%20self%20open.%0A%20%20%20%20selectedTab%20%3A%3D%20aWidget.%0A%20%20%20%20self%20tabs%20do%3A%20%5B%3Aeach%20%7C%0A%09each%20hide%5D.%0A%20%20%20%20aWidget%20show.%0A%09%0A%20%20%20%20self%20update'), messageSends: ["open", "do:", "tabs", "hide", "show", "update"], referencedClasses: [] }), smalltalk.TabManager); smalltalk.addMethod( '_closeTab_', smalltalk.method({ selector: 'closeTab:', category: 'actions', fn: function (aWidget){ var self=this; smalltalk.send(self, "_removeTab_", [aWidget]); smalltalk.send(self, "_selectTab_", [smalltalk.send(smalltalk.send(self, "_tabs", []), "_last", [])]); smalltalk.send(aWidget, "_remove", []); smalltalk.send(self, "_update", []); return self;}, source: unescape('closeTab%3A%20aWidget%0A%20%20%20%20self%20removeTab%3A%20aWidget.%0A%20%20%20%20self%20selectTab%3A%20self%20tabs%20last.%0A%20%20%20%20aWidget%20remove.%0A%20%20%20%20self%20update'), messageSends: ["removeTab:", "selectTab:", "last", "tabs", "remove", "update"], referencedClasses: [] }), smalltalk.TabManager); smalltalk.addMethod( '_addTab_', smalltalk.method({ selector: 'addTab:', category: 'adding/Removing', fn: function (aWidget){ var self=this; smalltalk.send(smalltalk.send(self, "_tabs", []), "_add_", [aWidget]); smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_append_", [aWidget]); smalltalk.send(aWidget, "_hide", []); return self;}, source: unescape('addTab%3A%20aWidget%0A%20%20%20%20self%20tabs%20add%3A%20aWidget.%0A%20%20%20%20%27%23jtalk%27%20asJQuery%20append%3A%20aWidget.%0A%20%20%20%20aWidget%20hide'), messageSends: ["add:", "tabs", "append:", "asJQuery", "hide"], referencedClasses: [] }), smalltalk.TabManager); smalltalk.addMethod( '_removeTab_', smalltalk.method({ selector: 'removeTab:', category: 'adding/Removing', fn: function (aWidget){ var self=this; smalltalk.send(smalltalk.send(self, "_tabs", []), "_remove_", [aWidget]); smalltalk.send(self, "_update", []); return self;}, source: unescape('removeTab%3A%20aWidget%0A%20%20%20%20self%20tabs%20remove%3A%20aWidget.%0A%20%20%20%20self%20update'), messageSends: ["remove:", "tabs", "update"], referencedClasses: [] }), smalltalk.TabManager); smalltalk.addMethod( '_initialize', smalltalk.method({ selector: 'initialize', category: 'initialization', fn: function (){ var self=this; smalltalk.send(self, "_initialize", [], smalltalk.Widget); self['@opened']=true; (function($rec){smalltalk.send($rec, "_append_", [self]);smalltalk.send($rec, "_append_", [(function(html){return smalltalk.send(smalltalk.send(html, "_div", []), "_id_", ["jtalk"]);})]);return smalltalk.send($rec, "_addClass_", ["jtalkBody"]);})(smalltalk.send("body", "_asJQuery", [])); (function($rec){smalltalk.send($rec, "_addTab_", [smalltalk.send((smalltalk.Transcript || Transcript), "_current", [])]);smalltalk.send($rec, "_addTab_", [smalltalk.send((smalltalk.Workspace || Workspace), "_new", [])]);return smalltalk.send($rec, "_addTab_", [smalltalk.send((smalltalk.TestRunner || TestRunner), "_new", [])]);})(self); smalltalk.send(self, "_selectTab_", [smalltalk.send(smalltalk.send(self, "_tabs", []), "_last", [])]); (function($rec){smalltalk.send($rec, "_onResize_", [(function(){return (function($rec){smalltalk.send($rec, "_updateBodyMargin", []);return smalltalk.send($rec, "_updatePosition", []);})(self);})]);return smalltalk.send($rec, "_onWindowResize_", [(function(){return smalltalk.send(self, "_updatePosition", []);})]);})(self); return self;}, source: unescape('initialize%0A%20%20%20%20super%20initialize.%0A%20%20%20%20opened%20%3A%3D%20true.%0A%20%20%20%20%27body%27%20asJQuery%20%0A%09append%3A%20self%3B%0A%09append%3A%20%5B%3Ahtml%20%7C%20html%20div%20id%3A%20%27jtalk%27%5D%3B%0A%09addClass%3A%20%27jtalkBody%27.%0A%20%20%20%20self%20%0A%09addTab%3A%20Transcript%20current%3B%0A%09addTab%3A%20Workspace%20new%3B%0A%09addTab%3A%20TestRunner%20new.%0A%20%20%20%20self%20selectTab%3A%20self%20tabs%20last.%0A%20%20%20%20self%20%0A%09onResize%3A%20%5Bself%20updateBodyMargin%3B%20updatePosition%5D%3B%0A%09onWindowResize%3A%20%5Bself%20updatePosition%5D'), messageSends: ["initialize", "append:", "id:", "div", "addClass:", "asJQuery", "addTab:", "current", "new", "selectTab:", "last", "tabs", "onResize:", "updateBodyMargin", "updatePosition", "onWindowResize:"], referencedClasses: [] }), smalltalk.TabManager); smalltalk.addMethod( '_renderOn_', smalltalk.method({ selector: 'renderOn:', category: 'rendering', fn: function (html){ var self=this; self['@ul']=(function($rec){smalltalk.send($rec, "_id_", ["jtalkTabs"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_ul", [])); smalltalk.send(self, "_renderTabs", []); return self;}, source: unescape('renderOn%3A%20html%0A%09ul%20%3A%3D%20html%20ul%0A%09%09id%3A%20%27jtalkTabs%27%3B%0A%09%09yourself.%0A%09self%20renderTabs'), messageSends: ["id:", "yourself", "ul", "renderTabs"], referencedClasses: [] }), smalltalk.TabManager); smalltalk.addMethod( '_renderTabFor_on_', smalltalk.method({ selector: 'renderTabFor:on:', category: 'rendering', fn: function (aWidget, html){ var self=this; var li=nil; li=smalltalk.send(html, "_li", []); (($receiver = smalltalk.send(self['@selectedTab'], "__eq", [aWidget])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(li, "_class_", ["selected"]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]); smalltalk.send(li, "_with_", [(function(){(($receiver = smalltalk.send(aWidget, "_canBeClosed", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function($rec){smalltalk.send($rec, "_class_", ["close"]);smalltalk.send($rec, "_with_", ["x"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_closeTab_", [aWidget]);})]);})(smalltalk.send(html, "_span", []));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function($rec){smalltalk.send($rec, "_class_", ["close"]);smalltalk.send($rec, "_with_", ["x"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_closeTab_", [aWidget]);})]);})(smalltalk.send(html, "_span", []));})]);return (function($rec){smalltalk.send($rec, "_with_", [smalltalk.send(aWidget, "_label", [])]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectTab_", [aWidget]);})]);})(smalltalk.send(html, "_span", []));})]); return self;}, source: unescape('renderTabFor%3A%20aWidget%20on%3A%20html%0A%20%20%20%20%7C%20li%20%7C%0A%20%20%20%20li%20%3A%3D%20html%20li.%0A%20%20%20%20selectedTab%20%3D%20aWidget%20ifTrue%3A%20%5B%0A%09li%20class%3A%20%27selected%27%5D.%0A%20%20%20%20li%20with%3A%20%5B%0A%20%20%20%20%20%20%20%20aWidget%20canBeClosed%20ifTrue%3A%20%5B%0A%09%20%20%20%20html%20span%20%0A%09%09class%3A%20%27close%27%3B%0A%09%09with%3A%20%27x%27%3B%0A%09%09onClick%3A%20%5Bself%20closeTab%3A%20aWidget%5D%5D.%0A%09html%20span%0A%09%20%20%20%20with%3A%20aWidget%20label%3B%0A%09%20%20%20%20onClick%3A%20%5Bself%20selectTab%3A%20aWidget%5D%5D'), messageSends: ["li", "ifTrue:", unescape("%3D"), "class:", "with:", "canBeClosed", "onClick:", "closeTab:", "span", "label", "selectTab:"], referencedClasses: [] }), smalltalk.TabManager); smalltalk.addMethod( '_renderTabs', smalltalk.method({ selector: 'renderTabs', category: 'rendering', fn: function (){ var self=this; smalltalk.send(self['@ul'], "_contents_", [(function(html){(function($rec){smalltalk.send($rec, "_class_", ["closeAll"]);smalltalk.send($rec, "_with_", ["x"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_close", []);})]);})(smalltalk.send(html, "_li", []));smalltalk.send(smalltalk.send(self, "_tabs", []), "_do_", [(function(each){return smalltalk.send(self, "_renderTabFor_on_", [each, html]);})]);return (function($rec){smalltalk.send($rec, "_class_", ["newtab"]);smalltalk.send($rec, "_with_", [unescape("%20+%20")]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_newBrowserTab", []);})]);})(smalltalk.send(html, "_li", []));})]); return self;}, source: unescape('renderTabs%0A%09ul%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%20%20%20%20html%20li%20%0A%09%09class%3A%20%27closeAll%27%3B%0A%09%09with%3A%20%27x%27%3B%0A%09%09onClick%3A%20%5Bself%20close%5D.%0A%09%20%20%20%20self%20tabs%20do%3A%20%5B%3Aeach%20%7C%0A%09%09self%20renderTabFor%3A%20each%20on%3A%20html%5D.%0A%09%20%20%20%20html%20li%0A%09%09class%3A%20%27newtab%27%3B%0A%09%09with%3A%20%27%20+%20%27%3B%0A%09%09onClick%3A%20%5Bself%20newBrowserTab%5D%5D'), messageSends: ["contents:", "class:", "with:", "onClick:", "close", "li", "do:", "tabs", "renderTabFor:on:", "newBrowserTab"], referencedClasses: [] }), smalltalk.TabManager); smalltalk.addMethod( '_update', smalltalk.method({ selector: 'update', category: 'updating', fn: function (){ var self=this; smalltalk.send(self, "_renderTabs", []); return self;}, source: unescape('update%0A%09self%20renderTabs'), messageSends: ["renderTabs"], referencedClasses: [] }), smalltalk.TabManager); smalltalk.TabManager.klass.iVarNames = ['current']; smalltalk.addMethod( '_current', smalltalk.method({ selector: 'current', category: 'instance creation', fn: function (){ var self=this; return (($receiver = self['@current']) == nil || $receiver == undefined) ? (function(){return self['@current']=smalltalk.send(self, "_new", [], smalltalk.Widget.klass);})() : $receiver; return self;}, source: unescape('current%0A%20%20%20%20%5Ecurrent%20ifNil%3A%20%5Bcurrent%20%3A%3D%20super%20new%5D'), messageSends: ["ifNil:", "new"], referencedClasses: [] }), smalltalk.TabManager.klass); smalltalk.addMethod( '_new', smalltalk.method({ selector: 'new', category: 'instance creation', fn: function (){ var self=this; smalltalk.send(self, "_shouldNotImplement", []); return self;}, source: unescape('new%0A%20%20%20%20self%20shouldNotImplement'), messageSends: ["shouldNotImplement"], referencedClasses: [] }), smalltalk.TabManager.klass); smalltalk.addClass('TabWidget', smalltalk.Widget, ['div'], 'IDE'); smalltalk.addMethod( '_label', smalltalk.method({ selector: 'label', category: 'accessing', fn: function (){ var self=this; smalltalk.send(self, "_subclassResponsibility", []); return self;}, source: unescape('label%0A%20%20%20%20self%20subclassResponsibility'), messageSends: ["subclassResponsibility"], referencedClasses: [] }), smalltalk.TabWidget); smalltalk.addMethod( '_open', smalltalk.method({ selector: 'open', category: 'actions', fn: function (){ var self=this; smalltalk.send(smalltalk.send((smalltalk.TabManager || TabManager), "_current", []), "_addTab_", [self]); smalltalk.send(smalltalk.send((smalltalk.TabManager || TabManager), "_current", []), "_selectTab_", [self]); return self;}, source: unescape('open%0A%20%20%20%20TabManager%20current%20addTab%3A%20self.%0A%20%20%20%20TabManager%20current%20selectTab%3A%20self'), messageSends: ["addTab:", "current", "selectTab:"], referencedClasses: [smalltalk.TabManager] }), smalltalk.TabWidget); smalltalk.addMethod( '_show', smalltalk.method({ selector: 'show', category: 'actions', fn: function (){ var self=this; smalltalk.send(smalltalk.send(self['@div'], "_asJQuery", []), "_show", []); return self;}, source: unescape('show%0A%09div%20asJQuery%20show'), messageSends: ["show", "asJQuery"], referencedClasses: [] }), smalltalk.TabWidget); smalltalk.addMethod( '_hide', smalltalk.method({ selector: 'hide', category: 'actions', fn: function (){ var self=this; smalltalk.send(smalltalk.send(self['@div'], "_asJQuery", []), "_hide", []); return self;}, source: unescape('hide%0A%09div%20asJQuery%20hide'), messageSends: ["hide", "asJQuery"], referencedClasses: [] }), smalltalk.TabWidget); smalltalk.addMethod( '_remove', smalltalk.method({ selector: 'remove', category: 'actions', fn: function (){ var self=this; smalltalk.send(smalltalk.send(self['@div'], "_asJQuery", []), "_remove", []); return self;}, source: unescape('remove%0A%09div%20asJQuery%20remove'), messageSends: ["remove", "asJQuery"], referencedClasses: [] }), smalltalk.TabWidget); smalltalk.addMethod( '_renderOn_', smalltalk.method({ selector: 'renderOn:', category: 'rendering', fn: function (html){ var self=this; self['@div']=(function($rec){smalltalk.send($rec, "_class_", ["jtalkTool"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_div", [])); smalltalk.send(self, "_renderTab", []); return self;}, source: unescape('renderOn%3A%20html%0A%09div%20%3A%3D%20html%20div%0A%09%09class%3A%20%27jtalkTool%27%3B%0A%09%09yourself.%0A%09self%20renderTab'), messageSends: ["class:", "yourself", "div", "renderTab"], referencedClasses: [] }), smalltalk.TabWidget); smalltalk.addMethod( '_renderBoxOn_', smalltalk.method({ selector: 'renderBoxOn:', category: 'rendering', fn: function (html){ var self=this; return self;}, source: unescape('renderBoxOn%3A%20html'), messageSends: [], referencedClasses: [] }), smalltalk.TabWidget); smalltalk.addMethod( '_renderButtonsOn_', smalltalk.method({ selector: 'renderButtonsOn:', category: 'rendering', fn: function (html){ var self=this; return self;}, source: unescape('renderButtonsOn%3A%20html'), messageSends: [], referencedClasses: [] }), smalltalk.TabWidget); smalltalk.addMethod( '_update', smalltalk.method({ selector: 'update', category: 'rendering', fn: function (){ var self=this; smalltalk.send(self, "_renderTab", []); return self;}, source: unescape('update%0A%09self%20renderTab'), messageSends: ["renderTab"], referencedClasses: [] }), smalltalk.TabWidget); smalltalk.addMethod( '_renderTab', smalltalk.method({ selector: 'renderTab', category: 'rendering', fn: function (){ var self=this; smalltalk.send(self['@div'], "_contents_", [(function(html){(function($rec){smalltalk.send($rec, "_class_", ["jt_box"]);return smalltalk.send($rec, "_with_", [(function(){return smalltalk.send(self, "_renderBoxOn_", [html]);})]);})(smalltalk.send(html, "_div", []));return (function($rec){smalltalk.send($rec, "_class_", ["jt_buttons"]);return smalltalk.send($rec, "_with_", [(function(){return smalltalk.send(self, "_renderButtonsOn_", [html]);})]);})(smalltalk.send(html, "_div", []));})]); return self;}, source: unescape('renderTab%0A%09div%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%20%20%20%20html%20div%0A%09%09class%3A%20%27jt_box%27%3B%0A%09%09with%3A%20%5Bself%20renderBoxOn%3A%20html%5D.%0A%09%20%20%20%20html%20div%0A%09%09class%3A%20%27jt_buttons%27%3B%0A%09%09with%3A%20%5Bself%20renderButtonsOn%3A%20html%5D%5D'), messageSends: ["contents:", "class:", "with:", "renderBoxOn:", "div", "renderButtonsOn:"], referencedClasses: [] }), smalltalk.TabWidget); smalltalk.addMethod( '_canBeClosed', smalltalk.method({ selector: 'canBeClosed', category: 'testing', fn: function (){ var self=this; return false; return self;}, source: unescape('canBeClosed%0A%20%20%20%20%5Efalse'), messageSends: [], referencedClasses: [] }), smalltalk.TabWidget); smalltalk.addMethod( '_open', smalltalk.method({ selector: 'open', category: 'instance creation', fn: function (){ var self=this; return smalltalk.send(smalltalk.send(self, "_new", []), "_open", []); return self;}, source: unescape('open%0A%20%20%20%20%5Eself%20new%20open'), messageSends: ["open", "new"], referencedClasses: [] }), smalltalk.TabWidget.klass); smalltalk.addClass('Workspace', smalltalk.TabWidget, ['sourceArea'], 'IDE'); smalltalk.addMethod( '_label', smalltalk.method({ selector: 'label', category: 'accessing', fn: function (){ var self=this; return unescape("%5BWorkspace%5D"); return self;}, source: unescape('label%0A%20%20%20%20%5E%27%5BWorkspace%5D%27'), messageSends: [], referencedClasses: [] }), smalltalk.Workspace); smalltalk.addMethod( '_clearWorkspace', smalltalk.method({ selector: 'clearWorkspace', category: 'actions', fn: function (){ var self=this; smalltalk.send(self['@sourceArea'], "_clear", []); return self;}, source: unescape('clearWorkspace%0A%20%20%20%20sourceArea%20clear'), messageSends: ["clear"], referencedClasses: [] }), smalltalk.Workspace); smalltalk.addMethod( '_doIt', smalltalk.method({ selector: 'doIt', category: 'actions', fn: function (){ var self=this; smalltalk.send(self['@sourceArea'], "_doIt", []); return self;}, source: unescape('doIt%0A%20%20%20sourceArea%20doIt'), messageSends: ["doIt"], referencedClasses: [] }), smalltalk.Workspace); smalltalk.addMethod( '_printIt', smalltalk.method({ selector: 'printIt', category: 'actions', fn: function (){ var self=this; smalltalk.send(self['@sourceArea'], "_printIt", []); return self;}, source: unescape('printIt%0A%09sourceArea%20printIt'), messageSends: ["printIt"], referencedClasses: [] }), smalltalk.Workspace); smalltalk.addMethod( '_inspectIt', smalltalk.method({ selector: 'inspectIt', category: 'actions', fn: function (){ var self=this; smalltalk.send(self['@sourceArea'], "_inspectIt", []); return self;}, source: unescape('inspectIt%0A%20%20%20%20sourceArea%20inspectIt'), messageSends: ["inspectIt"], referencedClasses: [] }), smalltalk.Workspace); smalltalk.addMethod( '_renderBoxOn_', smalltalk.method({ selector: 'renderBoxOn:', category: 'rendering', fn: function (html){ var self=this; self['@sourceArea']=smalltalk.send((smalltalk.SourceArea || SourceArea), "_new", []); smalltalk.send(self['@sourceArea'], "_renderOn_", [html]); return self;}, source: unescape('renderBoxOn%3A%20html%0A%20%20%20%20sourceArea%20%3A%3D%20SourceArea%20new.%0A%20%20%20%20sourceArea%20renderOn%3A%20html'), messageSends: ["new", "renderOn:"], referencedClasses: [] }), smalltalk.Workspace); smalltalk.addMethod( '_renderButtonsOn_', smalltalk.method({ selector: 'renderButtonsOn:', category: 'rendering', fn: function (html){ var self=this; (function($rec){smalltalk.send($rec, "_with_", ["DoIt"]);smalltalk.send($rec, "_title_", [unescape("ctrl+d")]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_doIt", []);})]);})(smalltalk.send(html, "_button", [])); (function($rec){smalltalk.send($rec, "_with_", ["PrintIt"]);smalltalk.send($rec, "_title_", [unescape("ctrl+p")]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_printIt", []);})]);})(smalltalk.send(html, "_button", [])); (function($rec){smalltalk.send($rec, "_with_", ["InspectIt"]);smalltalk.send($rec, "_title_", [unescape("ctrl+i")]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_inspectIt", []);})]);})(smalltalk.send(html, "_button", [])); (function($rec){smalltalk.send($rec, "_with_", ["Clear workspace"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_clearWorkspace", []);})]);})(smalltalk.send(html, "_button", [])); return self;}, source: unescape('renderButtonsOn%3A%20html%0A%20%20%20%20html%20button%0A%09with%3A%20%27DoIt%27%3B%0A%09title%3A%20%27ctrl+d%27%3B%0A%09onClick%3A%20%5Bself%20doIt%5D.%0A%20%20%20%20html%20button%0A%09with%3A%20%27PrintIt%27%3B%0A%09title%3A%20%27ctrl+p%27%3B%0A%09onClick%3A%20%5Bself%20printIt%5D.%0A%20%20%20%20html%20button%0A%09with%3A%20%27InspectIt%27%3B%0A%09title%3A%20%27ctrl+i%27%3B%0A%09onClick%3A%20%5Bself%20inspectIt%5D.%0A%20%20%20%20html%20button%0A%09with%3A%20%27Clear%20workspace%27%3B%0A%09onClick%3A%20%5Bself%20clearWorkspace%5D'), messageSends: ["with:", "title:", "onClick:", "doIt", "button", "printIt", "inspectIt", "clearWorkspace"], referencedClasses: [] }), smalltalk.Workspace); smalltalk.addClass('Transcript', smalltalk.TabWidget, ['textarea'], 'IDE'); smalltalk.addMethod( '_label', smalltalk.method({ selector: 'label', category: 'accessing', fn: function (){ var self=this; return unescape("%5BTranscript%5D"); return self;}, source: unescape('label%0A%20%20%20%20%5E%27%5BTranscript%5D%27'), messageSends: [], referencedClasses: [] }), smalltalk.Transcript); smalltalk.addMethod( '_show_', smalltalk.method({ selector: 'show:', category: 'actions', fn: function (anObject){ var self=this; smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val_", [smalltalk.send(smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val", []), "__comma", [smalltalk.send(anObject, "_asString", [])])]); return self;}, source: unescape('show%3A%20anObject%0A%20%20%20%20textarea%20asJQuery%20val%3A%20textarea%20asJQuery%20val%2C%20anObject%20asString.'), messageSends: ["val:", "asJQuery", unescape("%2C"), "val", "asString"], referencedClasses: [] }), smalltalk.Transcript); smalltalk.addMethod( '_cr', smalltalk.method({ selector: 'cr', category: 'actions', fn: function (){ var self=this; smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val_", [smalltalk.send(smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val", []), "__comma", [smalltalk.send((smalltalk.String || String), "_cr", [])])]); return self;}, source: unescape('cr%0A%20%20%20%20textarea%20asJQuery%20val%3A%20textarea%20asJQuery%20val%2C%20String%20cr.'), messageSends: ["val:", "asJQuery", unescape("%2C"), "val", "cr"], referencedClasses: [smalltalk.String] }), smalltalk.Transcript); smalltalk.addMethod( '_clear', smalltalk.method({ selector: 'clear', category: 'actions', fn: function (){ var self=this; smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val_", [""]); return self;}, source: unescape('clear%0A%20%20%20%20textarea%20asJQuery%20val%3A%20%27%27'), messageSends: ["val:", "asJQuery"], referencedClasses: [] }), smalltalk.Transcript); smalltalk.addMethod( '_renderBoxOn_', smalltalk.method({ selector: 'renderBoxOn:', category: 'rendering', fn: function (html){ var self=this; self['@textarea']=smalltalk.send(html, "_textarea", []); smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_call_", ["tabby"]); (function($rec){smalltalk.send($rec, "_class_", ["jt_transcript"]);return smalltalk.send($rec, "_at_put_", ["spellcheck", "false"]);})(self['@textarea']); return self;}, source: unescape('renderBoxOn%3A%20html%0A%20%20%20%20textarea%20%3A%3D%20html%20textarea.%0A%20%20%20%20textarea%20asJQuery%20call%3A%20%27tabby%27.%0A%20%20%20%20textarea%20%0A%09class%3A%20%27jt_transcript%27%3B%0A%09at%3A%20%27spellcheck%27%20put%3A%20%27false%27'), messageSends: ["textarea", "call:", "asJQuery", "class:", "at:put:"], referencedClasses: [] }), smalltalk.Transcript); smalltalk.addMethod( '_renderButtonsOn_', smalltalk.method({ selector: 'renderButtonsOn:', category: 'rendering', fn: function (html){ var self=this; (function($rec){smalltalk.send($rec, "_with_", ["Clear transcript"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_clear", []);})]);})(smalltalk.send(html, "_button", [])); return self;}, source: unescape('renderButtonsOn%3A%20html%0A%20%20%20%20html%20button%0A%09with%3A%20%27Clear%20transcript%27%3B%0A%09onClick%3A%20%5Bself%20clear%5D'), messageSends: ["with:", "onClick:", "clear", "button"], referencedClasses: [] }), smalltalk.Transcript); smalltalk.Transcript.klass.iVarNames = ['current']; smalltalk.addMethod( '_open', smalltalk.method({ selector: 'open', category: 'instance creation', fn: function (){ var self=this; (function($rec){smalltalk.send($rec, "_open", []);return smalltalk.send($rec, "_selectTab_", [smalltalk.send(self, "_current", [])]);})(smalltalk.send((smalltalk.TabManager || TabManager), "_current", [])); return self;}, source: unescape('open%0A%20%20%20%20TabManager%20current%20%0A%09open%3B%0A%09selectTab%3A%20self%20current'), messageSends: ["open", "selectTab:", "current"], referencedClasses: [smalltalk.TabManager] }), smalltalk.Transcript.klass); smalltalk.addMethod( '_new', smalltalk.method({ selector: 'new', category: 'instance creation', fn: function (){ var self=this; smalltalk.send(self, "_shouldNotImplement", []); return self;}, source: unescape('new%0A%20%20%20%20self%20shouldNotImplement'), messageSends: ["shouldNotImplement"], referencedClasses: [] }), smalltalk.Transcript.klass); smalltalk.addMethod( '_current', smalltalk.method({ selector: 'current', category: 'instance creation', fn: function (){ var self=this; return (($receiver = self['@current']) == nil || $receiver == undefined) ? (function(){return self['@current']=smalltalk.send(self, "_new", [], smalltalk.TabWidget.klass);})() : $receiver; return self;}, source: unescape('current%0A%20%20%20%20%5Ecurrent%20ifNil%3A%20%5Bcurrent%20%3A%3D%20super%20new%5D'), messageSends: ["ifNil:", "new"], referencedClasses: [] }), smalltalk.Transcript.klass); smalltalk.addMethod( '_show_', smalltalk.method({ selector: 'show:', category: 'printing', fn: function (anObject){ var self=this; smalltalk.send(smalltalk.send(self, "_current", []), "_show_", [anObject]); return self;}, source: unescape('show%3A%20anObject%0A%20%20%20%20self%20current%20show%3A%20anObject'), messageSends: ["show:", "current"], referencedClasses: [] }), smalltalk.Transcript.klass); smalltalk.addMethod( '_cr', smalltalk.method({ selector: 'cr', category: 'printing', fn: function (){ var self=this; smalltalk.send(smalltalk.send(self, "_current", []), "_show_", [smalltalk.send((smalltalk.String || String), "_cr", [])]); return self;}, source: unescape('cr%0A%20%20%20%20self%20current%20show%3A%20String%20cr'), messageSends: ["show:", "current", "cr"], referencedClasses: [smalltalk.String] }), smalltalk.Transcript.klass); smalltalk.addMethod( '_clear', smalltalk.method({ selector: 'clear', category: 'printing', fn: function (){ var self=this; smalltalk.send(smalltalk.send(self, "_current", []), "_clear", []); return self;}, source: unescape('clear%0A%20%20%20%20self%20current%20clear'), messageSends: ["clear", "current"], referencedClasses: [] }), smalltalk.Transcript.klass); smalltalk.addClass('Browser', smalltalk.TabWidget, ['selectedCategory', 'selectedClass', 'selectedProtocol', 'selectedMethod', 'commitButton', 'categoriesList', 'classesList', 'protocolsList', 'methodsList', 'sourceArea', 'tabsList', 'selectedTab', 'saveButton', 'classButtons', 'methodButtons', 'unsavedChanges', 'input'], 'IDE'); smalltalk.addMethod( '_label', smalltalk.method({ selector: 'label', category: 'accessing', fn: function (){ var self=this; return (($receiver = self['@selectedClass']) == nil || $receiver == undefined) ? (function(){return unescape("Browser%20%28nil%29");})() : (function(){return smalltalk.send(self['@selectedClass'], "_name", []);})(); return self;}, source: unescape('label%0A%20%20%20%20%5EselectedClass%20%0A%09ifNil%3A%20%5B%27Browser%20%28nil%29%27%5D%0A%09ifNotNil%3A%20%5BselectedClass%20name%5D'), messageSends: ["ifNil:ifNotNil:", "name"], referencedClasses: [] }), smalltalk.Browser); smalltalk.addMethod( '_categories', smalltalk.method({ selector: 'categories', category: 'accessing', fn: function (){ var self=this; var categories=nil; categories=smalltalk.send((smalltalk.Array || Array), "_new", []); smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_classes", []), "_do_", [(function(each){return (($receiver = smalltalk.send(categories, "_includes_", [smalltalk.send(each, "_category", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(categories, "_add_", [smalltalk.send(each, "_category", [])]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(categories, "_add_", [smalltalk.send(each, "_category", [])]);})]);})]); return smalltalk.send(categories, "_sort", []); return self;}, source: unescape('categories%0A%20%20%20%20%7C%20categories%20%7C%0A%20%20%20%20categories%20%3A%3D%20Array%20new.%0A%20%20%20%20Smalltalk%20current%20classes%20do%3A%20%5B%3Aeach%20%7C%0A%09%28categories%20includes%3A%20each%20category%29%20ifFalse%3A%20%5B%0A%09%20%20%20%20categories%20add%3A%20each%20category%5D%5D.%0A%20%20%20%20%5Ecategories%20sort'), messageSends: ["new", "do:", "classes", "current", "ifFalse:", "includes:", "category", "add:", "sort"], referencedClasses: [smalltalk.Array,smalltalk.Smalltalk] }), smalltalk.Browser); smalltalk.addMethod( '_classes', smalltalk.method({ selector: 'classes', category: 'accessing', fn: function (){ var self=this; return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_classes", []), "_select_", [(function(each){return smalltalk.send(smalltalk.send(each, "_category", []), "__eq", [self['@selectedCategory']]);})]), "_sort_", [(function(a, b){return (($receiver = smalltalk.send(a, "_name", [])).klass === smalltalk.Number) ? $receiver smalltalk.send(b, "_name", []) : smalltalk.send($receiver, "__gt", [smalltalk.send(b, "_name", [])]);})]); return self;}, source: unescape('classes%0A%20%20%20%20%5E%28self%20allClasses%20%0A%09select%3A%20%5B%3Aeach%20%7C%20self%20selectedCategories%20includes%3A%20each%20category%5D%29%0A%09sort%3A%20%5B%3Aa%20%3Ab%20%7C%20a%20name%20%3E%20b%20name%5D'), messageSends: ["sort:", "select:", "allClasses", "includes:", "selectedCategories", "category", unescape("%3E"), "name"], referencedClasses: [] }), smalltalk.TestRunner); smalltalk.addMethod( '_selectedCategories', smalltalk.method({ selector: 'selectedCategories', category: 'accessing', fn: function (){ var self=this; return (($receiver = self['@selectedCategories']) == nil || $receiver == undefined) ? (function(){return self['@selectedCategories']=smalltalk.send((smalltalk.Array || Array), "_new", []);})() : $receiver; return self;}, source: unescape('selectedCategories%0A%09%5EselectedCategories%20ifNil%3A%20%5BselectedCategories%20%3A%3D%20Array%20new%5D'), messageSends: ["ifNil:", "new"], referencedClasses: [smalltalk.Array] }), smalltalk.TestRunner); smalltalk.addMethod( '_allClasses', smalltalk.method({ selector: 'allClasses', category: 'accessing', fn: function (){ var self=this; return smalltalk.send((smalltalk.TestCase || TestCase), "_allSubclasses", []); return self;}, source: unescape('allClasses%0A%09%5ETestCase%20allSubclasses'), messageSends: ["allSubclasses"], referencedClasses: [] }), smalltalk.TestRunner); smalltalk.addMethod( '_selectedClasses', smalltalk.method({ selector: 'selectedClasses', category: 'accessing', fn: function (){ var self=this; return (($receiver = self['@selectedClasses']) == nil || $receiver == undefined) ? (function(){return self['@selectedClasses']=smalltalk.send((smalltalk.Array || Array), "_new", []);})() : $receiver; return self;}, source: unescape('selectedClasses%0A%09%5EselectedClasses%20%20ifNil%3A%20%5BselectedClasses%20%3A%3D%20Array%20new%5D'), messageSends: ["ifNil:", "new"], referencedClasses: [smalltalk.Array] }), smalltalk.TestRunner); smalltalk.addMethod( '_progressBar', smalltalk.method({ selector: 'progressBar', category: 'accessing', fn: function (){ var self=this; return (($receiver = self['@progressBar']) == nil || $receiver == undefined) ? (function(){return self['@progressBar']=smalltalk.send((smalltalk.ProgressBar || ProgressBar), "_new", []);})() : $receiver; return self;}, source: unescape('progressBar%0A%09%5EprogressBar%20ifNil%3A%20%5BprogressBar%20%3A%3D%20ProgressBar%20new%5D'), messageSends: ["ifNil:", "new"], referencedClasses: [smalltalk.ProgressBar] }), smalltalk.TestRunner); smalltalk.addMethod( '_selectedMethods', smalltalk.method({ selector: 'selectedMethods', category: 'accessing', fn: function (){ var self=this; return (($receiver = self['@selectedMethods']) == nil || $receiver == undefined) ? (function(){return smalltalk.send(smalltalk.send(self, "_selectedClasses", []), "_collect_", [(function(each){return smalltalk.send(smalltalk.send(smalltalk.send(each, "_methodDictionary", []), "_keys", []), "_select_", [(function(key){return smalltalk.send(key, "_beginsWith_", ["test"]);})]);})]);})() : $receiver; return self;}, source: unescape('selectedMethods%0A%09%5EselectedMethods%20ifNil%3A%20%5Bself%20selectedClasses%20collect%3A%20%5B%3Aeach%20%7C%0A%09%09each%20methodDictionary%20keys%20select%3A%20%5B%3Akey%20%7C%20%20key%20beginsWith%3A%20%27test%27%20%5D%5D%5D'), messageSends: ["ifNil:", "collect:", "selectedClasses", "select:", "keys", "methodDictionary", "beginsWith:"], referencedClasses: [] }), smalltalk.TestRunner); smalltalk.addMethod( '_statusInfo', smalltalk.method({ selector: 'statusInfo', category: 'accessing', fn: function (){ var self=this; return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_printTotal", []), "__comma", [smalltalk.send(self, "_printPasses", [])]), "__comma", [smalltalk.send(self, "_printErrors", [])]), "__comma", [smalltalk.send(self, "_printFailures", [])]); return self;}, source: unescape('statusInfo%0A%09%5Eself%20printTotal%2C%20self%20printPasses%2C%20self%20printErrors%2C%20self%20printFailures'), messageSends: [unescape("%2C"), "printTotal", "printPasses", "printErrors", "printFailures"], referencedClasses: [] }), smalltalk.TestRunner); smalltalk.addMethod( '_result', smalltalk.method({ selector: 'result', category: 'accessing', fn: function (){ var self=this; return self['@result']; return self;}, source: unescape('result%0A%09%5Eresult'), messageSends: [], referencedClasses: [] }), smalltalk.TestRunner); smalltalk.addMethod( '_failedMethods', smalltalk.method({ selector: 'failedMethods', category: 'accessing', fn: function (){ var self=this; smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_failures", []), "_collect_", [(function(each){return (function($rec){smalltalk.send($rec, "_class_", ["failures"]);return smalltalk.send($rec, "_with_", [each]);})(smalltalk.send((typeof html == 'undefined' ? nil : html), "_li", []));})]); return self;}, source: unescape('failedMethods%0A%09self%20result%20failures%20collect%3A%20%5B%3Aeach%20%7C%0A%09%09html%20li%20%0A%09%09%09class%3A%20%27failures%27%3B%0A%09%09%09with%3A%20each%5D'), messageSends: ["collect:", "failures", "result", "class:", "with:", "li"], referencedClasses: [] }), smalltalk.TestRunner); smalltalk.addMethod( '_selectAllCategories', smalltalk.method({ selector: 'selectAllCategories', category: 'actions', fn: function (){ var self=this; smalltalk.send(smalltalk.send(self, "_categories", []), "_do_", [(function(each){return (($receiver = smalltalk.send(self['@selectedCategories'], "_includes_", [each])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(smalltalk.send(self, "_selectedCategories", []), "_add_", [each]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(smalltalk.send(self, "_selectedCategories", []), "_add_", [each]);})]);})]); (function($rec){smalltalk.send($rec, "_updateCategoriesList", []);return smalltalk.send($rec, "_updateClassesList", []);})(self); return self;}, source: unescape('selectAllCategories%0A%09self%20categories%20do%3A%20%5B%3Aeach%20%7C%20%0A%09%09%28selectedCategories%20includes%3A%20each%29%20ifFalse%3A%20%5B%0A%09%09%09self%20selectedCategories%20add%3A%20each%5D%5D.%0A%09self%20%0A%09%20%20%20%20updateCategoriesList%3B%0A%09%20%20%20%20updateClassesList'), messageSends: ["do:", "categories", "ifFalse:", "includes:", "add:", "selectedCategories", "updateCategoriesList", "updateClassesList"], referencedClasses: [] }), smalltalk.TestRunner); smalltalk.addMethod( '_toggleCategory_', smalltalk.method({ selector: 'toggleCategory:', category: 'actions', fn: function (aCategory){ var self=this; (($receiver = smalltalk.send(self, "_isSelectedCategory_", [aCategory])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self['@selectedCategories'], "_add_", [aCategory]);})() : (function(){return smalltalk.send(self['@selectedCategories'], "_remove_", [aCategory]);})()) : smalltalk.send($receiver, "_ifFalse_ifTrue_", [(function(){return smalltalk.send(self['@selectedCategories'], "_add_", [aCategory]);}), (function(){return smalltalk.send(self['@selectedCategories'], "_remove_", [aCategory]);})]); (function($rec){smalltalk.send($rec, "_updateCategoriesList", []);return smalltalk.send($rec, "_updateClassesList", []);})(self); return self;}, source: unescape('toggleCategory%3A%20aCategory%0A%09%28self%20isSelectedCategory%3A%20aCategory%29%20%0A%09%09ifFalse%3A%20%5BselectedCategories%20add%3A%20aCategory%5D%0A%09%09ifTrue%3A%20%5BselectedCategories%20remove%3A%20aCategory%5D.%0A%09self%20%0A%09%20%20%20%20updateCategoriesList%3B%0A%09%20%20%20%20updateClassesList'), messageSends: ["ifFalse:ifTrue:", "isSelectedCategory:", "add:", "remove:", "updateCategoriesList", "updateClassesList"], referencedClasses: [] }), smalltalk.TestRunner); smalltalk.addMethod( '_toggleClass_', smalltalk.method({ selector: 'toggleClass:', category: 'actions', fn: function (aClass){ var self=this; (($receiver = smalltalk.send(self, "_isSelectedClass_", [aClass])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self['@selectedClasses'], "_add_", [aClass]);})() : (function(){return smalltalk.send(self['@selectedClasses'], "_remove_", [aClass]);})()) : smalltalk.send($receiver, "_ifFalse_ifTrue_", [(function(){return smalltalk.send(self['@selectedClasses'], "_add_", [aClass]);}), (function(){return smalltalk.send(self['@selectedClasses'], "_remove_", [aClass]);})]); smalltalk.send(self, "_updateClassesList", []); return self;}, source: unescape('toggleClass%3A%20aClass%0A%09%28self%20isSelectedClass%3A%20aClass%29%20%0A%09%09ifFalse%3A%20%5BselectedClasses%20add%3A%20aClass%5D%0A%09%09ifTrue%3A%20%5BselectedClasses%20remove%3A%20aClass%5D.%0A%09self%20%0A%09%20%20%20%20updateClassesList'), messageSends: ["ifFalse:ifTrue:", "isSelectedClass:", "add:", "remove:", "updateClassesList"], referencedClasses: [] }), smalltalk.TestRunner); smalltalk.addMethod( '_selectAllClasses', smalltalk.method({ selector: 'selectAllClasses', category: 'actions', fn: function (){ var self=this; smalltalk.send(smalltalk.send(self, "_classes", []), "_do_", [(function(each){return (($receiver = smalltalk.send(self['@selectedClasses'], "_includes_", [each])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(smalltalk.send(self, "_selectedClasses", []), "_add_", [each]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(smalltalk.send(self, "_selectedClasses", []), "_add_", [each]);})]);})]); (function($rec){smalltalk.send($rec, "_updateCategoriesList", []);return smalltalk.send($rec, "_updateClassesList", []);})(self); return self;}, source: unescape('selectAllClasses%0A%09self%20classes%20do%3A%20%5B%3Aeach%20%7C%20%0A%09%09%28selectedClasses%20includes%3A%20each%29%20ifFalse%3A%20%5B%0A%09%09%09self%20selectedClasses%20add%3A%20each%5D%5D.%0A%09self%20%0A%09%20%20%20%20updateCategoriesList%3B%0A%09%20%20%20%20updateClassesList'), messageSends: ["do:", "classes", "ifFalse:", "includes:", "add:", "selectedClasses", "updateCategoriesList", "updateClassesList"], referencedClasses: [] }), smalltalk.TestRunner); smalltalk.addMethod( '_run_', smalltalk.method({ selector: 'run:', category: 'actions', fn: function (aCollection){ var self=this; self['@result']=smalltalk.send((smalltalk.TestResult || TestResult), "_new", []); (function($rec){smalltalk.send($rec, "_updateStatusDiv", []);return smalltalk.send($rec, "_updateMethodsList", []);})(self); smalltalk.send(smalltalk.send(self, "_progressBar", []), "_updatePercent_", [(0)]); smalltalk.send(self['@result'], "_total_", [smalltalk.send(aCollection, "_inject_into_", [(0), (function(acc, each){return (($receiver = acc).klass === smalltalk.Number) ? $receiver +smalltalk.send(smalltalk.send(each, "_methods", []), "_size", []) : smalltalk.send($receiver, "__plus", [smalltalk.send(smalltalk.send(each, "_methods", []), "_size", [])]);})])]); smalltalk.send(aCollection, "_do_", [(function(each){return smalltalk.send((function(){smalltalk.send(each, "_runCaseFor_", [self['@result']]);smalltalk.send(smalltalk.send(self, "_progressBar", []), "_updatePercent_", [(($receiver = (($receiver = smalltalk.send(self['@result'], "_runs", [])).klass === smalltalk.Number) ? $receiver /smalltalk.send(self['@result'], "_total", []) : smalltalk.send($receiver, "__slash", [smalltalk.send(self['@result'], "_total", [])])).klass === smalltalk.Number) ? $receiver *(100) : smalltalk.send($receiver, "__star", [(100)])]);smalltalk.send(self, "_updateStatusDiv", []);return smalltalk.send(self, "_updateMethodsList", []);}), "_valueWithTimeout_", [(100)]);})]); return self;}, source: unescape('run%3A%20aCollection%0A%09result%20%3A%3D%20TestResult%20new.%0A%09self%20%0A%09%09updateStatusDiv%3B%0A%09%09updateMethodsList.%0A%09self%20progressBar%20updatePercent%3A%200.%0A%09result%20total%3A%20%28aCollection%20inject%3A%200%20into%3A%20%5B%3Aacc%20%3Aeach%20%7C%20acc%20+%20each%20methods%20size%5D%29.%0A%09aCollection%20do%3A%20%5B%3Aeach%20%7C%20%0A%09%09%5Beach%20runCaseFor%3A%20result.%0A%09%09self%20progressBar%20updatePercent%3A%20result%20runs%20/%20result%20total%20*%20100.%0A%09%09self%20updateStatusDiv.%0A%09%09self%20updateMethodsList%5D%20valueWithTimeout%3A%20100%5D.'), messageSends: ["new", "updateStatusDiv", "updateMethodsList", "updatePercent:", "progressBar", "total:", "inject:into:", unescape("+"), "size", "methods", "do:", "valueWithTimeout:", "runCaseFor:", unescape("*"), unescape("/"), "runs", "total"], referencedClasses: [] }), smalltalk.TestRunner); smalltalk.addMethod( '_initialize', smalltalk.method({ selector: 'initialize', category: 'initialization', fn: function (){ var self=this; smalltalk.send(self, "_initialize", [], smalltalk.TabWidget); self['@result']=smalltalk.send((smalltalk.TestResult || TestResult), "_new", []); return self;}, source: unescape('initialize%0A%09super%20initialize.%0A%09result%20%3A%3D%20TestResult%20new'), messageSends: ["initialize", "new"], referencedClasses: [] }), smalltalk.TestRunner); smalltalk.addMethod( '_printErrors', smalltalk.method({ selector: 'printErrors', category: 'printing', fn: function (){ var self=this; return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_errors", []), "_size", []), "_asString", []), "__comma", [unescape("%20errors%2C%20")]); return self;}, source: unescape('printErrors%0A%09%5Eself%20result%20errors%20size%20asString%20%2C%20%27%20errors%2C%20%27'), messageSends: [unescape("%2C"), "asString", "size", "errors", "result"], referencedClasses: [] }), smalltalk.TestRunner); smalltalk.addMethod( '_printFailures', smalltalk.method({ selector: 'printFailures', category: 'printing', fn: function (){ var self=this; return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_failures", []), "_size", []), "_asString", []), "__comma", [" failures"]); return self;}, source: unescape('printFailures%0A%09%5Eself%20result%20failures%20size%20asString%2C%20%27%20failures%27'), messageSends: [unescape("%2C"), "asString", "size", "failures", "result"], referencedClasses: [] }), smalltalk.TestRunner); smalltalk.addMethod( '_printPasses', smalltalk.method({ selector: 'printPasses', category: 'printing', fn: function (){ var self=this; return smalltalk.send(smalltalk.send((($receiver = smalltalk.send(smalltalk.send(self, "_result", []), "_total", [])).klass === smalltalk.Number) ? $receiver -(($receiver = smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_errors", []), "_size", [])).klass === smalltalk.Number) ? $receiver +smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_failures", []), "_size", []) : smalltalk.send($receiver, "__plus", [smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_failures", []), "_size", [])]) : smalltalk.send($receiver, "__minus", [(($receiver = smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_errors", []), "_size", [])).klass === smalltalk.Number) ? $receiver +smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_failures", []), "_size", []) : smalltalk.send($receiver, "__plus", [smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_failures", []), "_size", [])])]), "_asString", []), "__comma", [unescape("%20passes%2C%20")]); return self;}, source: unescape('printPasses%0A%09%5E%28%28%28self%20result%20total%29%20-%20%28self%20result%20errors%20size%20+%20%28self%20result%20failures%20size%29%29%29%20asString%29%20%2C%20%27%20passes%2C%20%27'), messageSends: [unescape("%2C"), "asString", unescape("-"), "total", "result", unescape("+"), "size", "errors", "failures"], referencedClasses: [] }), smalltalk.TestRunner); smalltalk.addMethod( '_printTotal', smalltalk.method({ selector: 'printTotal', category: 'printing', fn: function (){ var self=this; return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_total", []), "_asString", []), "__comma", [unescape("%20runs%2C%20")]); return self;}, source: unescape('printTotal%0A%09%5Eself%20result%20total%20asString%2C%20%27%20runs%2C%20%27'), messageSends: [unescape("%2C"), "asString", "total", "result"], referencedClasses: [] }), smalltalk.TestRunner); smalltalk.addMethod( '_renderBoxOn_', smalltalk.method({ selector: 'renderBoxOn:', category: 'rendering', fn: function (html){ var self=this; (function($rec){smalltalk.send($rec, "_renderCategoriesOn_", [html]);smalltalk.send($rec, "_renderClassesOn_", [html]);return smalltalk.send($rec, "_renderResultsOn_", [html]);})(self); return self;}, source: unescape('renderBoxOn%3A%20html%0A%20%20%20%20self%20%0A%09renderCategoriesOn%3A%20html%3B%0A%09renderClassesOn%3A%20html%3B%0A%09renderResultsOn%3A%20html'), messageSends: ["renderCategoriesOn:", "renderClassesOn:", "renderResultsOn:"], referencedClasses: [] }), smalltalk.TestRunner); smalltalk.addMethod( '_renderButtonsOn_', smalltalk.method({ selector: 'renderButtonsOn:', category: 'rendering', fn: function (html){ var self=this; (function($rec){smalltalk.send($rec, "_with_", ["Run selected"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_run_", [smalltalk.send(smalltalk.send(self, "_selectedClasses", []), "_collect_", [(function(each){return smalltalk.send(each, "_new", []);})])]);})]);})(smalltalk.send(html, "_button", [])); return self;}, source: unescape('renderButtonsOn%3A%20html%0A%20%20%20%20html%20button%0A%09with%3A%20%27Run%20selected%27%3B%0A%09onClick%3A%20%5Bself%20run%3A%20%28self%20selectedClasses%20collect%3A%20%5B%3Aeach%20%7C%20each%20new%5D%29%5D'), messageSends: ["with:", "onClick:", "run:", "collect:", "selectedClasses", "new", "button"], referencedClasses: [] }), smalltalk.TestRunner); smalltalk.addMethod( '_renderCategoriesOn_', smalltalk.method({ selector: 'renderCategoriesOn:', category: 'rendering', fn: function (html){ var self=this; self['@categoriesList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column sunit categories"]); smalltalk.send(self, "_updateCategoriesList", []); return self;}, source: unescape('renderCategoriesOn%3A%20html%0A%20%20%20%20%09categoriesList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20sunit%20categories%27.%0A%09self%20updateCategoriesList'), messageSends: ["class:", "ul", "updateCategoriesList"], referencedClasses: [] }), smalltalk.TestRunner); smalltalk.addMethod( '_renderClassesOn_', smalltalk.method({ selector: 'renderClassesOn:', category: 'rendering', fn: function (html){ var self=this; self['@classesList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column sunit classes"]); smalltalk.send(self, "_updateClassesList", []); return self;}, source: unescape('renderClassesOn%3A%20html%0A%20%20%20%20%09classesList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20sunit%20classes%27.%0A%09self%20updateClassesList'), messageSends: ["class:", "ul", "updateClassesList"], referencedClasses: [] }), smalltalk.TestRunner); smalltalk.addMethod( '_renderResultsOn_', smalltalk.method({ selector: 'renderResultsOn:', category: 'rendering', fn: function (html){ var self=this; self['@statusDiv']=smalltalk.send(html, "_div", []); smalltalk.send(html, "_with_", [smalltalk.send(self, "_progressBar", [])]); self['@methodsList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column sunit methods"]); smalltalk.send(self, "_updateMethodsList", []); smalltalk.send(self, "_updateStatusDiv", []); return self;}, source: unescape('renderResultsOn%3A%20html%0A%20%20%20%20%09statusDiv%20%3A%3D%20html%20div.%0A%09html%20with%3A%20self%20progressBar.%0A%20%20%20%09methodsList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20sunit%20methods%27.%0A%09self%20updateMethodsList.%0A%09self%20updateStatusDiv'), messageSends: ["div", "with:", "progressBar", "class:", "ul", "updateMethodsList", "updateStatusDiv"], referencedClasses: [] }), smalltalk.TestRunner); smalltalk.addMethod( '_renderFailuresOn_', smalltalk.method({ selector: 'renderFailuresOn:', category: 'rendering', fn: function (html){ var self=this; smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_failures", []), "_do_", [(function(each){return (function($rec){smalltalk.send($rec, "_class_", ["failures"]);return smalltalk.send($rec, "_with_", [each]);})(smalltalk.send(html, "_li", []));})]); return self;}, source: unescape('renderFailuresOn%3A%20html%0A%09self%20result%20failures%20do%3A%20%5B%3Aeach%20%7C%0A%09%09html%20li%20%0A%09%09%09class%3A%20%27failures%27%3B%0A%09%09%09with%3A%20each%5D'), messageSends: ["do:", "failures", "result", "class:", "with:", "li"], referencedClasses: [] }), smalltalk.TestRunner); smalltalk.addMethod( '_renderErrorsOn_', smalltalk.method({ selector: 'renderErrorsOn:', category: 'rendering', fn: function (html){ var self=this; smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_errors", []), "_do_", [(function(each){return (function($rec){smalltalk.send($rec, "_class_", ["errors"]);return smalltalk.send($rec, "_with_", [each]);})(smalltalk.send(html, "_li", []));})]); return self;}, source: unescape('renderErrorsOn%3A%20html%0A%09self%20result%20errors%20do%3A%20%5B%3Aeach%20%7C%0A%09%09html%20li%20%0A%09%09%09class%3A%20%27errors%27%3B%0A%09%09%09with%3A%20each%5D'), messageSends: ["do:", "errors", "result", "class:", "with:", "li"], referencedClasses: [] }), smalltalk.TestRunner); smalltalk.addMethod( '_isSelectedClass_', smalltalk.method({ selector: 'isSelectedClass:', category: 'testing', fn: function (aClass){ var self=this; return smalltalk.send(smalltalk.send(self, "_selectedClasses", []), "_includes_", [aClass]); return self;}, source: unescape('isSelectedClass%3A%20aClass%0A%09%5E%28self%20selectedClasses%20includes%3A%20aClass%29'), messageSends: ["includes:", "selectedClasses"], referencedClasses: [] }), smalltalk.TestRunner); smalltalk.addMethod( '_isSelectedCategory_', smalltalk.method({ selector: 'isSelectedCategory:', category: 'testing', fn: function (aCategory){ var self=this; return smalltalk.send(smalltalk.send(self, "_selectedCategories", []), "_includes_", [aCategory]); return self;}, source: unescape('isSelectedCategory%3A%20aCategory%0A%09%5E%28self%20selectedCategories%20includes%3A%20aCategory%29'), messageSends: ["includes:", "selectedCategories"], referencedClasses: [] }), smalltalk.TestRunner); smalltalk.addMethod( '_updateCategoriesList', smalltalk.method({ selector: 'updateCategoriesList', category: 'updating', fn: function (){ var self=this; smalltalk.send(self['@categoriesList'], "_contents_", [(function(html){(function($rec){smalltalk.send($rec, "_class_", ["all"]);smalltalk.send($rec, "_with_", ["All"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectAllCategories", []);})]);})(smalltalk.send(html, "_li", []));return smalltalk.send(smalltalk.send(self, "_categories", []), "_do_", [(function(each){var li=nil; li=smalltalk.send(html, "_li", []);(($receiver = smalltalk.send(smalltalk.send(self, "_selectedCategories", []), "_includes_", [each])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(li, "_class_", ["selected"]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);return (function($rec){smalltalk.send($rec, "_with_", [each]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_toggleCategory_", [each]);})]);})(li);})]);})]); return self;}, source: unescape('updateCategoriesList%0A%20%20%20%20categoriesList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%20%20%20%20html%20li%20%0A%09%09class%3A%20%27all%27%3B%0A%09%09with%3A%20%27All%27%3B%0A%09%09onClick%3A%20%5Bself%20selectAllCategories%5D.%0A%09self%20categories%20do%3A%20%5B%3Aeach%20%7C%7C%20li%20%7C%0A%09%20%20%20%20li%20%3A%3D%20html%20li.%0A%09%20%20%20%20%28self%20selectedCategories%20includes%3A%20each%29%20ifTrue%3A%20%5B%0A%09%09li%20class%3A%20%27selected%27%5D.%0A%09%20%20%20%20li%0A%09%09with%3A%20each%3B%0A%09%09onClick%3A%20%5Bself%20toggleCategory%3A%20each%5D%5D%5D'), messageSends: ["contents:", "class:", "with:", "onClick:", "selectAllCategories", "li", "do:", "categories", "ifTrue:", "includes:", "selectedCategories", "toggleCategory:"], referencedClasses: [] }), smalltalk.TestRunner); smalltalk.addMethod( '_updateClassesList', smalltalk.method({ selector: 'updateClassesList', category: 'updating', fn: function (){ var self=this; smalltalk.send(self['@classesList'], "_contents_", [(function(html){(($receiver = smalltalk.send(smalltalk.send(self, "_selectedCategories", []), "_isEmpty", [])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function($rec){smalltalk.send($rec, "_class_", ["all"]);smalltalk.send($rec, "_with_", ["All"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectAllClasses", []);})]);})(smalltalk.send(html, "_li", []));})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function($rec){smalltalk.send($rec, "_class_", ["all"]);smalltalk.send($rec, "_with_", ["All"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectAllClasses", []);})]);})(smalltalk.send(html, "_li", []));})]);return smalltalk.send(smalltalk.send(self, "_classes", []), "_do_", [(function(each){var li=nil; li=smalltalk.send(html, "_li", []);(($receiver = smalltalk.send(smalltalk.send(self, "_selectedClasses", []), "_includes_", [each])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(li, "_class_", ["selected"]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);return (function($rec){smalltalk.send($rec, "_with_", [smalltalk.send(each, "_name", [])]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_toggleClass_", [each]);})]);})(li);})]);})]); return self;}, source: unescape('updateClassesList%0A%20%20%20%20classesList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%28self%20selectedCategories%20isEmpty%29%20ifFalse%3A%20%5B%0A%09%09html%20li%0A%09%09%09class%3A%20%27all%27%3B%0A%09%09%09with%3A%20%27All%27%3B%0A%09%09%09onClick%3A%20%5Bself%20selectAllClasses%5D%5D.%0A%09self%20classes%20do%3A%20%5B%3Aeach%20%7C%7C%20li%20%7C%0A%09%09li%20%3A%3D%20html%20li.%0A%09%09%28self%20selectedClasses%20includes%3A%20each%29%20ifTrue%3A%20%5B%0A%09%09%09li%20class%3A%20%27selected%27%5D.%0A%09%09li%0A%09%09%09with%3A%20each%20name%3B%0A%09%09%09onClick%3A%20%5Bself%20toggleClass%3A%20each%5D%5D%5D'), messageSends: ["contents:", "ifFalse:", "isEmpty", "selectedCategories", "class:", "with:", "onClick:", "selectAllClasses", "li", "do:", "classes", "ifTrue:", "includes:", "selectedClasses", "name", "toggleClass:"], referencedClasses: [] }), smalltalk.TestRunner); smalltalk.addMethod( '_updateMethodsList', smalltalk.method({ selector: 'updateMethodsList', category: 'updating', fn: function (){ var self=this; smalltalk.send(self['@methodsList'], "_contents_", [(function(html){smalltalk.send(self, "_renderFailuresOn_", [html]);return smalltalk.send(self, "_renderErrorsOn_", [html]);})]); return self;}, source: unescape('updateMethodsList%0A%09methodsList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%09self%20renderFailuresOn%3A%20html.%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20self%20renderErrorsOn%3A%20html%5D'), messageSends: ["contents:", "renderFailuresOn:", "renderErrorsOn:"], referencedClasses: [] }), smalltalk.TestRunner); smalltalk.addMethod( '_updateStatusDiv', smalltalk.method({ selector: 'updateStatusDiv', category: 'updating', fn: function (){ var self=this; smalltalk.send(self['@statusDiv'], "_class_", [smalltalk.send("sunit status ", "__comma", [smalltalk.send(self['@result'], "_status", [])])]); smalltalk.send(self['@statusDiv'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(html, "_span", []), "_with_", [smalltalk.send(self, "_statusInfo", [])]);})]); return self;}, source: unescape('updateStatusDiv%0A%09statusDiv%20class%3A%20%27sunit%20status%20%27%2C%20result%20status.%0A%09statusDiv%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%09html%20span%20with%3A%20self%20statusInfo%5D'), messageSends: ["class:", unescape("%2C"), "status", "contents:", "with:", "span", "statusInfo"], referencedClasses: [] }), smalltalk.TestRunner); smalltalk.addMethod( '_inspect', smalltalk.method({ selector: 'inspect', category: '*IDE', fn: function (){ var self=this; (function($rec){smalltalk.send($rec, "_inspect_", [self]);return smalltalk.send($rec, "_open", []);})(smalltalk.send((smalltalk.Inspector || Inspector), "_new", [])); return self;}, source: unescape('inspect%0A%09Inspector%20new%20%0A%09%09inspect%3A%20self%3B%0A%09%09open'), messageSends: ["inspect:", "open", "new"], referencedClasses: [smalltalk.Inspector] }), smalltalk.Object); smalltalk.addMethod( '_inspectOn_', smalltalk.method({ selector: 'inspectOn:', category: '*IDE', fn: function (anInspector){ var self=this; var variables=nil; variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []); smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]); smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_allInstanceVariableNames", []), "_do_", [(function(each){return smalltalk.send(variables, "_at_put_", [each, smalltalk.send(self, "_instVarAt_", [each])]);})]); (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector); return self;}, source: unescape('inspectOn%3A%20anInspector%0A%09%7C%20variables%20%7C%0A%09variables%20%3A%3D%20Dictionary%20new.%0A%09variables%20at%3A%20%27%23self%27%20put%3A%20self.%0A%09self%20class%20allInstanceVariableNames%20do%3A%20%5B%3Aeach%20%7C%0A%09%09variables%20at%3A%20each%20put%3A%20%28self%20instVarAt%3A%20each%29%5D.%0A%09anInspector%20%0A%09%09setLabel%3A%20self%20printString%3B%0A%09%09setVariables%3A%20variables'), messageSends: ["new", "at:put:", "do:", "allInstanceVariableNames", "class", "instVarAt:", "setLabel:", "printString", "setVariables:"], referencedClasses: [smalltalk.Dictionary] }), smalltalk.Object); smalltalk.addMethod( '_inspectOn_', smalltalk.method({ selector: 'inspectOn:', category: '*IDE', fn: function (anInspector){ var self=this; var variables=nil; variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []); smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]); smalltalk.send(variables, "_at_put_", [unescape("%23year"), smalltalk.send(self, "_year", [])]); smalltalk.send(variables, "_at_put_", [unescape("%23month"), smalltalk.send(self, "_month", [])]); smalltalk.send(variables, "_at_put_", [unescape("%23day"), smalltalk.send(self, "_day", [])]); smalltalk.send(variables, "_at_put_", [unescape("%23hours"), smalltalk.send(self, "_hours", [])]); smalltalk.send(variables, "_at_put_", [unescape("%23minutes"), smalltalk.send(self, "_minutes", [])]); smalltalk.send(variables, "_at_put_", [unescape("%23seconds"), smalltalk.send(self, "_seconds", [])]); smalltalk.send(variables, "_at_put_", [unescape("%23milliseconds"), smalltalk.send(self, "_milliseconds", [])]); (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector); return self;}, source: unescape('inspectOn%3A%20anInspector%0A%09%7C%20variables%20%7C%0A%09variables%20%3A%3D%20Dictionary%20new.%0A%09variables%20at%3A%20%27%23self%27%20put%3A%20self.%0A%09variables%20at%3A%20%27%23year%27%20put%3A%20self%20year.%0A%09variables%20at%3A%20%27%23month%27%20put%3A%20self%20month.%0A%09variables%20at%3A%20%27%23day%27%20put%3A%20self%20day.%0A%09variables%20at%3A%20%27%23hours%27%20put%3A%20self%20hours.%0A%09variables%20at%3A%20%27%23minutes%27%20put%3A%20self%20minutes.%0A%09variables%20at%3A%20%27%23seconds%27%20put%3A%20self%20seconds.%0A%09variables%20at%3A%20%27%23milliseconds%27%20put%3A%20self%20milliseconds.%0A%09anInspector%20%0A%09%09setLabel%3A%20self%20printString%3B%0A%09%09setVariables%3A%20variables'), messageSends: ["new", "at:put:", "year", "month", "day", "hours", "minutes", "seconds", "milliseconds", "setLabel:", "printString", "setVariables:"], referencedClasses: [smalltalk.Dictionary] }), smalltalk.Date); smalltalk.addMethod( '_inspectOn_', smalltalk.method({ selector: 'inspectOn:', category: '*IDE', fn: function (anInspector){ var self=this; var variables=nil; variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []); smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]); smalltalk.send(self, "_withIndexDo_", [(function(each, i){return smalltalk.send(variables, "_at_put_", [i, each]);})]); (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector); return self;}, source: unescape('inspectOn%3A%20anInspector%0A%09%7C%20variables%20%7C%0A%09variables%20%3A%3D%20Dictionary%20new.%0A%09variables%20at%3A%20%27%23self%27%20put%3A%20self.%0A%09self%20withIndexDo%3A%20%5B%3Aeach%20%3Ai%20%7C%0A%09%09variables%20at%3A%20i%20put%3A%20each%5D.%0A%09anInspector%20%0A%09%09setLabel%3A%20self%20printString%3B%0A%09%09setVariables%3A%20variables'), messageSends: ["new", "at:put:", "withIndexDo:", "setLabel:", "printString", "setVariables:"], referencedClasses: [smalltalk.Dictionary] }), smalltalk.Collection); smalltalk.addMethod( '_inspectOn_', smalltalk.method({ selector: 'inspectOn:', category: '*IDE', fn: function (anInspector){ var self=this; var label=nil; smalltalk.send(self, "_inspectOn_", [anInspector], smalltalk.SequenceableCollection); (($receiver = (($receiver = smalltalk.send(smalltalk.send(self, "_printString", []), "_size", [])).klass === smalltalk.Number) ? $receiver >(30) : smalltalk.send($receiver, "__gt", [(30)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return label=smalltalk.send(smalltalk.send(smalltalk.send(self, "_printString", []), "_copyFrom_to_", [(1), (30)]), "__comma", [unescape("...%27")]);})() : (function(){return label=smalltalk.send(self, "_printString", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return label=smalltalk.send(smalltalk.send(smalltalk.send(self, "_printString", []), "_copyFrom_to_", [(1), (30)]), "__comma", [unescape("...%27")]);}), (function(){return label=smalltalk.send(self, "_printString", []);})]); smalltalk.send(anInspector, "_setLabel_", [label]); return self;}, source: unescape('inspectOn%3A%20anInspector%0A%09%7C%20label%20%7C%0A%09super%20inspectOn%3A%20anInspector.%0A%09self%20printString%20size%20%3E%2030%20%0A%09%09ifTrue%3A%20%5Blabel%20%3A%3D%20%28self%20printString%20copyFrom%3A%201%20to%3A%2030%29%2C%20%27...%27%27%27%5D%0A%09%09ifFalse%3A%20%5Blabel%20%3A%3D%20self%20printString%5D.%20%0A%09anInspector%20setLabel%3A%20label'), messageSends: ["inspectOn:", "ifTrue:ifFalse:", unescape("%3E"), "size", "printString", unescape("%2C"), "copyFrom:to:", "setLabel:"], referencedClasses: [] }), smalltalk.String); smalltalk.addMethod( '_inspectOn_', smalltalk.method({ selector: 'inspectOn:', category: '*IDE', fn: function (anInspector){ var self=this; var variables=nil; variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []); smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]); smalltalk.send(variables, "_at_put_", [unescape("%23home"), smalltalk.send(self, "_home", [])]); smalltalk.send(variables, "_at_put_", [unescape("%23receiver"), smalltalk.send(self, "_receiver", [])]); smalltalk.send(variables, "_at_put_", [unescape("%23selector"), smalltalk.send(self, "_selector", [])]); smalltalk.send(variables, "_at_put_", [unescape("%23temps"), smalltalk.send(self, "_temps", [])]); smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_instanceVariableNames", []), "_do_", [(function(each){return smalltalk.send(variables, "_at_put_", [each, smalltalk.send(self, "_instVarAt_", [each])]);})]); (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector); return self;}, source: unescape('inspectOn%3A%20anInspector%0A%09%7C%20variables%20%7C%0A%09variables%20%3A%3D%20Dictionary%20new.%0A%09variables%20at%3A%20%27%23self%27%20put%3A%20self.%0A%09variables%20at%3A%20%27%23home%27%20put%3A%20self%20home.%0A%09variables%20at%3A%20%27%23receiver%27%20put%3A%20self%20receiver.%0A%09variables%20at%3A%20%27%23selector%27%20put%3A%20self%20selector.%0A%09variables%20at%3A%20%27%23temps%27%20put%3A%20self%20temps.%0A%09self%20class%20instanceVariableNames%20do%3A%20%5B%3Aeach%20%7C%0A%09%09variables%20at%3A%20each%20put%3A%20%28self%20instVarAt%3A%20each%29%5D.%0A%09anInspector%20%0A%09%09setLabel%3A%20self%20printString%3B%0A%09%09setVariables%3A%20variables'), messageSends: ["new", "at:put:", "home", "receiver", "selector", "temps", "do:", "instanceVariableNames", "class", "instVarAt:", "setLabel:", "printString", "setVariables:"], referencedClasses: [smalltalk.Dictionary] }), smalltalk.MethodContext); smalltalk.addMethod( '_inspectOn_', smalltalk.method({ selector: 'inspectOn:', category: '*IDE', fn: function (anInspector){ var self=this; var variables=nil; variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []); smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]); smalltalk.send(variables, "_at_put_", [unescape("%23keys"), smalltalk.send(self, "_keys", [])]); smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return smalltalk.send(variables, "_at_put_", [key, value]);})]); (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector); return self;}, source: unescape('inspectOn%3A%20anInspector%0A%09%7C%20variables%20%7C%0A%09variables%20%3A%3D%20Dictionary%20new.%0A%09variables%20at%3A%20%27%23self%27%20put%3A%20self.%0A%09variables%20at%3A%20%27%23keys%27%20put%3A%20self%20keys.%0A%09self%20keysAndValuesDo%3A%20%5B%3Akey%20%3Avalue%20%7C%0A%09%09variables%20at%3A%20key%20put%3A%20value%5D.%0A%09anInspector%20%0A%09%09setLabel%3A%20self%20printString%3B%0A%09%09setVariables%3A%20variables'), messageSends: ["new", "at:put:", "keys", "keysAndValuesDo:", "setLabel:", "printString", "setVariables:"], referencedClasses: [smalltalk.Dictionary] }), smalltalk.Dictionary);