source: Dev/branches/rest-dojo-ui/client/dojox/lang/tests/docs.js @ 256

Last change on this file since 256 was 256, checked in by hendrikvanantwerpen, 13 years ago

Reworked project structure based on REST interaction and Dojo library. As
soon as this is stable, the old jQueryUI branch can be removed (it's
kept for reference).

File size: 1.0 KB
Line 
1dojo.provide("dojox.lang.tests.docs");
2
3dojo.require("dojox.lang.docs");
4dojo.require("dijit.ColorPalette");
5
6tests.register("dojox.lang.tests.docs", [
7        function notReady(t){
8                t.is(!dijit.ColorPalette.description, true);
9        },
10        function pastClassHasSchema(t){
11                dojox.lang.docs.init();
12                t.is(!!dijit.ColorPalette.description, true);
13                dojox.lang.docs.init(); // make sure it can be called twice without any problems
14                t.is(!!dijit.ColorPalette.properties.defaultTimeout.description, true);
15                t.is(dijit.ColorPalette.properties.defaultTimeout.type, "number");
16                t.is(dijit.ColorPalette.methods.onChange.parameters[0].type, "string");
17                t.is(dijit.ColorPalette.methods.onChange.parameters[0].name, "color");
18                t.is(dijit.ColorPalette["extends"], dijit._Widget);
19        },
20        function futureClassHasSchema(t){
21                dojo.require("dijit.Dialog");
22                t.is(!!dijit.Dialog.description, true);
23                t.is(!!dijit.Dialog.properties.autofocus.description, true);
24                t.is(dijit.Dialog.properties.autofocus.type, "boolean");
25        },
26        function testSchema(t){
27               
28        }
29]);
Note: See TracBrowser for help on using the repository browser.