jQuery UI Functional Test Suite

Say it in Smalltalk, Do it with jQuery

Class Transition

For additional documentation and examples please visit the official web-site.

Demo

Smalltalk

JQTransitionFunctionalTest>>renderContentOn: html
   html paragraph class: 'actions'; with: [
      #( green wide bold ) do: [ :each |
         html anchor
            onClick: ((html jQuery: '.box')
               toggleClass: each
               duration: 'slow');
            with: (each copyUpTo: $:) ] ].
   self renderBoxOn: html

Source

< =>
  < =>green</>
  < =>wide</>
  < =>bold</>
</>
< =>
  < =></>
</>
< =>/*<![CDATA[*/$("#id26").bind("click",function(){$(".box").toggleClass("green","slow")});$("#id27").bind("click",function(){$(".box").toggleClass("wide","slow")});$("#id28").bind("click",function(){$(".box").toggleClass("bold","slow")});/*]]>*/</>