source: Dev/trunk/src/client/dojox/mvc/tests/doh/ModelRefController.js

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

Added Dojo 1.9.3 release.

File size: 841 bytes
Line 
1define([
2        "doh",
3        "dojo/_base/declare",
4        "dojo/_base/lang",
5        "dojo/Stateful",
6        "dijit/_WidgetBase",
7        "dijit/_TemplatedMixin",
8        "dijit/_WidgetsInTemplateMixin",
9        "../doh/ModelRefController",
10        "dojo/text!../templates/ModelRefControllerInTemplate.html"
11], function(doh, declare, lang, Stateful, _WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin, ModelRefController, template){
12        doh.register("dojox.mvc.tests.doh.ModelRefController", [
13                {
14                        name: "attachPoint",
15                        runTest: function(){
16                                lang.setObject("model", new Stateful());
17                                var w = new (declare([_WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin], {
18                                        templateString: template
19                                }))();
20                                w.startup();
21                                doh.t(w.controllerNode, "The controllerNode exists in the template widget");
22                        },
23                        tearDown: function(){
24                                lang.setObject("model", void 0);
25                        }
26                }
27        ]);
28});
Note: See TracBrowser for help on using the repository browser.