| 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <title>Dijit RadioButton Bidi test</title> |
| 5 | <link rel="stylesheet" href="../../../themes/claro/claro.css"> |
| 6 | |
| 7 | <script type="text/javascript" src="../../../../dojo/dojo.js" |
| 8 | data-dojo-config="isDebug: true, async: true, has: { 'dojo-bidi': true }"></script> |
| 9 | |
| 10 | <script> |
| 11 | require([ |
| 12 | "doh/runner", |
| 13 | "dojo/parser", |
| 14 | "dijit/registry", |
| 15 | "dijit/form/RadioButton", |
| 16 | "dojo/domReady!" |
| 17 | ], function(doh, parser, registry){ |
| 18 | doh.register("basic", [ |
| 19 | { |
| 20 | name: "creation", |
| 21 | runTest: function(){ |
| 22 | // then() calls in parser() make it asynchronous even when module already loaded |
| 23 | return parser.parse().then(function(){ |
| 24 | doh.t(registry.byId("radio"), "created"); |
| 25 | }); |
| 26 | } |
| 27 | } |
| 28 | ]); |
| 29 | |
| 30 | doh.run(); |
| 31 | }); |
| 32 | </script> |
| 33 | </head> |
| 34 | <body> |
| 35 | <div data-dojo-type="dijit/form/RadioButton" id="radio"></div> |
| 36 | </body> |
| 37 | </html> |