Dojox DocTester test

Default Usage

You can just "throw" your doctests inside a node and give it the dojoType="dojox.widget.DocTester", and you will get the box below. Including the buttons and the summary below the box.
>>> 1+1 2 >>> "one" + "two" "three" >>> (new dojo._Url("http://localhost/?a=1&b=2")).query "a=1&b=2" >>> dojo.trim(" 123 ") "123" >>> var one = 1 >>> "two" + one "two1" >>> var one = 1 >>> 2 + one "21" >>> var l = [1,5,8,9,0]; >>> dojo.indexOf(l, 8); 2