Debian Codegraph @

dojox/mvc/tests/doh/doh_mvc_template_repeat_exprchar.html

raw symbols SCIP
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta http-equiv="Content-type" content="text/html; charset=utf-8">
5 <title>MVC DOH Test</title>
6
7 <style>
8 @import "../../../../dojo/resources/dojo.css";
9 @import "../../../../dijit/tests/css/dijitTests.css";
10 @import "../css/app-format.css";
11 </style>
12
13 <!-- required: the default dijit theme: -->
14 <link id="themeStyles" rel="stylesheet" href="../../../../dijit/themes/claro/claro.css"/>
15
16 <!-- required: dojo.js -->
17 <script src="../../../../dojo/dojo.js" type="text/javascript" data-dojo-config="isDebug: 1, parseOnLoad: 0"></script>
18 <script type="text/javascript" src="./helpers.js"></script>
19
20 <script type="text/javascript">
21 require([
22 "doh/runner",
23 "dojo/parser",
24 "dojo/when",
25 "dijit/registry",
26 "dojox/mvc/getStateful",
27 "dojox/mvc/ModelRefController",
28 "dojox/mvc/tests/test_templatedWidget/myMvcTemplated",
29 "dojo/domReady!"
30 ], function(doh, parser, when, registry, getStateful, ModelRefController, myMvcTemplated){
31 ctrl = new ModelRefController({model: getStateful([
32 {
33 First: "Anne",
34 Last: "Ackerman",
35 Location: "NY",
36 Office: "1S76",
37 Email: "[email protected]",
38 Tel: "123-764-8237",
39 Fax: "123-764-8228"
40 }, {
41 First: "Ben",
42 Last: "Beckham",
43 Location: "NY",
44 Office: "5N47",
45 Email: "[email protected]",
46 Tel: "123-764-8599",
47 Fax: "123-764-8600"
48 }, {
49 First: "John",
50 Last: "Jacklin",
51 Location: "CA",
52 Office: "6701",
53 Email: "[email protected]",
54 Tel: "408-764-1234",
55 Fax: "408-764-4321"
56 }
57 ])});
58
59 when(parser.parse(), function(){
60 // should be able to verify all of the inputs
61 doh.register("Check values", [
62 {
63 name : "Input0",
64 runTest: function(){
65 doh.is("Anne", registry.byId("nameInput0").value, "nameInput0 should be Anne");
66 doh.is("Anne", registry.byId("anameInput0").value, "anameInput0 should be Anne");
67 doh.is("Anne", registry.byId("bnameInput0").value, "bnameInput0 should be Anne");
68 doh.is("Anne", registry.byId("9nameInput0").value, "9nameInput0 should be Anne");
69 }
70 }, {
71 name : "Input1",
72 runTest: function(){
73 doh.is("Ben", registry.byId("nameInput1").value, "nameInput1 should be Ben");
74 doh.is("Ben", registry.byId("anameInput1").value, "anameInput1 should be Ben");
75 doh.is("Ben", registry.byId("bnameInput1").value, "bnameInput1 should be Ben");
76 doh.is("Ben", registry.byId("9nameInput1").value, "9nameInput1 should be Ben");
77 }
78 }, {
79 name : "Input2",
80 runTest: function(){
81 doh.is("John", registry.byId("nameInput2").value, "nameInput2 should be John");
82 doh.is("John", registry.byId("anameInput2").value, "anameInput2 should be John");
83 doh.is("John", registry.byId("bnameInput2").value, "bnameInput2 should be John");
84 doh.is("John", registry.byId("9nameInput2").value, "9nameInput2 should be John");
85 }
86 }
87 ]);
88
89 doh.run();
90 });
91 });
92 </script>
93 </head>
94 <body class="claro" style="background-image: url(./images/master_detail.png)">
95 <div id="wrapper">
96 <div id="main">
97 <div id="leftNav"></div>
98 <div id="mainContent">
99 <div>
100 Test exprchar. Widget template test uses exprchar of # and others for template:#{this.index} etc.
101 </div>
102 <br/>
103 <div id="container2" data-dojo-type="dojox.mvc.tests.test_templatedWidget.myMvcTemplated" data-dojo-props="ctrl: ctrl"></div>
104 </div>
105 </div>
106 </div>
107 </body>
108 </html>