source: Dev/trunk/src/client/dojox/widget/tests/test_DocTester.html

Last change on this file was 483, checked in by hendrikvanantwerpen, 11 years ago

Added Dojo 1.9.3 release.

File size: 1.2 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2<html>
3<head>
4        <title>Dojox DocTester Test</title>
5        <style type="text/css">
6                @import "../../../dojo/resources/dojo.css";
7                @import "../../../dijit/themes/tundra/tundra.css";
8                @import "../../../dijit/themes/dijit.css";
9                @import "../../../dijit/tests/css/dijitTests.css";
10                @import "../DocTester/DocTester.css";
11        </style>
12
13        <script type="text/javascript" src="../../../dojo/dojo.js" data-dojo-config="isDebug:true, parseOnLoad: true"></script>
14        <script type="text/javascript" src="../DocTester.js"></script>
15</head>
16<body class="tundra">
17
18        <h1 class="testTitle">Dojox DocTester test</h1>
19
20        <h2>Default Usage</h2>
21        You can just "throw" your doctests inside a node and give it the <code>dojoType="dojox.widget.DocTester"</code>, and you will get the box below.
22        Including the buttons and the summary below the box.
23       
24        <div id="t1" dojoType="dojox.widget.DocTester">
25                >>> 1+1
26                2
27                >>> "one" + "two"
28                "three"
29                >>> (new dojo._Url("http://localhost/?a=1&b=2")).query
30                "a=1&b=2"
31                >>> dojo.trim(" 123 ")
32                "123"
33                >>> var one = 1
34                >>> "two" + one
35                "two1"
36               
37                >>> var one = 1
38                >>> 2 + one
39                "21"
40               
41                >>> var l = [1,5,8,9,0];
42                >>> dojo.indexOf(l, 8);
43                2
44        </div>
45
46</body>
47</html>
Note: See TracBrowser for help on using the repository browser.