Debian Codegraph @

dijit/tests/_BidiSupport/inheritance/Inher-Simple.html

raw symbols SCIP
1 <!DOCTYPE html>
2
3 <html>
4 <head>
5 <meta http-equiv="Content-type" content="text/html; charset=utf-8">
6 <title>DOH simple inheritance textDir Tests</title>
7
8 <style type="text/css">
9 @import "../../../../dijit/themes/tundra/tundra.css";
10 @import "../../../../dojo/resources/dojo.css";
11 </style>
12
13 <!-- required: dojo.js -->
14 <script type="text/javascript" src="../../../../dojo/dojo.js"
15 data-dojo-config="isDebug: true, has: { 'dojo-bidi': true }">
16 </script>
17
18 <script type="text/javascript">
19 dojo.require("dojo.parser");
20 dojo.require("doh.runner");
21 dojo.require("dijit.form.TextBox");
22 dojo.require("dijit.form.ComboBox");
23
24 dojo.ready(function(){
25
26 doh.register("parse", function(){
27 dojo.parser.parse();
28 });
29
30 doh.register("dijit.tests._BidiSupport.inheritance.Inher-Simple", [
31
32 function test_ltrTextBoxInheritFromDiv(){
33 doh.is("ltr", dijit.byId("ltrTextBox").focusNode.dir,"ltrTextBox");
34 },
35 function test_rtlTextBoxInheritBody(){
36 doh.is("rtl", dijit.byId("rtlTextBox").focusNode.dir, "rtlTextBox");
37 },
38 function test_ltrComboBoxInheritTable(){
39 doh.is("ltr", dijit.byId("fruitLtr").focusNode.dir, "fruitLtr");
40 },
41 function test_rtlComboBoxInheritTable(){
42 doh.is("rtl", dijit.byId("fruitRtl").focusNode.dir, "fruitRtl");
43 },
44 function test_autoComboBoxInheritTableLtr(){
45 dijit.byId("autoTextBox").set("value","Hello!!");
46 doh.is("ltr", dijit.byId("autoTextBox").focusNode.dir, "autoTextBox: Hello!!");
47 },
48 function test_autoComboBoxInheritTableRtl(){
49 dijit.byId("autoTextBox").set("value","\u05e9\u05dc\u05d5\u05dd\u0021\u0021");
50 doh.is("rtl", dijit.byId("autoTextBox").focusNode.dir, "autoTextBox: \u05e9\u05dc\u05d5\u05dd\u0021\u0021");
51 }
52 ]);
53
54 doh.run();
55 });
56 </script>
57 </head>
58 <body class="tundra" data-dojo-textdir="rtl">
59 <table data-dojo-textdir="auto">
60 <tr>
61 <td>
62 <div data-dojo-textdir="ltr">
63 <label for="ltrTextBox" >
64 <b>I'm a LTR TexBox </b>
65 </label>
66 <input data-dojo-type="dijit/form/TextBox" id="ltrTextBox" data-dojo-props='name:"ltrTextBox", value:"", type:"text"'/>
67 </div>
68 </td>
69 </tr>
70 <tr>
71 <td>
72 <label for="autoTextBox" >
73 <b>I'm a Auto TexBox </b>
74 </label>
75 <input data-dojo-type="dijit/form/TextBox" id="autoTextBox" data-dojo-props='name:"autoTextBox", value:"",type:"text"'/>
76 </td>
77 </tr>
78 <tr>
79 <td>
80 <select id="fruitLtr" data-dojo-type="dijit/form/ComboBox" data-dojo-props='name:"fruitLtr"'>
81 <option >Apples!</option>
82 <option >Oranges!</option>
83 <option selected>Pears!</option>
84 </select>
85 </td>
86 </tr>
87 <tr>
88 <td>
89 <select id="fruitRtl" data-dojo-type="dijit/form/ComboBox" data-dojo-props='name:"fruitRtr"'>
90 <option >&#1514;&#1508;&#1493;&#1495;&#1497;&#1501;.</option>
91 <option >&#1488;&#1490;&#1505;&#1497;&#1501;.</option>
92 <option selected>&#1488;&#1508;&#1512;&#1505;&#1511;&#1497;&#1501;.</option>
93 </select>
94 </td>
95 </tr>
96 </table>
97
98 <label for="rtlTextBox" >
99 <b>I'm a RTL TexBox </b>
100 </label>
101 <input data-dojo-type="dijit/form/TextBox" id="rtlTextBox" data-dojo-props='name:"rtlTextBox", value:"", type:"text"'/>
102 </body>
103 </html>