Rev | Line | |
---|
[483] | 1 | dojo.provide("dojox.lang.tests.docs"); |
---|
| 2 | |
---|
| 3 | dojo.require("dojox.lang.docs"); |
---|
| 4 | dojo.require("dijit.ColorPalette"); |
---|
| 5 | |
---|
| 6 | tests.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.