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

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

Added Dojo 1.9.3 release.

File size: 569 bytes
Line 
1define([
2        "doh",
3        "dojo/Stateful",
4        "dojox/mvc/at",
5        "dijit/form/TextBox"
6], function(doh, Stateful, at, TextBox){
7        doh.register("dojox.mvc.tests.doh.wildcard", [
8                function wildcard(){
9                        var m0 = new Stateful({"placeHolder": "placeHolder0", "value": "Value0"}),
10                         m1 = new Stateful({"placeHolder": "placeHolder1", "value": "Value1"}),
11                         w = new TextBox({
12                                "*": at(m1, "*"),
13                                "placeHolder": at(m0, "placeHolder")
14                        }, document.createElement("div"));
15
16                        w.startup();
17
18                        doh.is("Value1", w.textbox.value, "Widget's value should come from m1");
19                }
20        ]);
21});
Note: See TracBrowser for help on using the repository browser.