Changeset 13189 for dijit/trunk/tests/form/Form.html
- Timestamp:
- 03/24/08 20:23:35 (8 months ago)
- Files:
-
- 1 modified
-
dijit/trunk/tests/form/Form.html (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dijit/trunk/tests/form/Form.html
r13120 r13189 95 95 [ 96 96 function getValues(){ 97 doh.is( dojo.toJson(original), dojo.toJson(dijit.byId("myForm").getValues()) ); 97 var values = dijit.byId("myForm").getValues(); 98 99 // FF3 sticks in some tabs and newlines that mess up the equality check 100 // Need better way to compare two HTML trees but for now do this. 101 values.richtext = values.richtext.replace(/[\n\t]/, "", "g"); 102 103 doh.is( dojo.toJson(original), dojo.toJson(values) ); 98 104 }, 99 105 function setValues(){ … … 146 152 return true; 147 153 </script> 154 <script type="dojo/method" event="onReset"> 155 return confirm('reset Form?'); 156 </script> 148 157 <p>Just HTML text</p> 149 158 <table style="border: 1px solid #9f9f9f;" cellspacing="10"> … … 321 330 <td>richtext</td> 322 331 <td> 323 <textarea dojoType="dijit.Editor" name="richtext" pluginsConfig="[{items:['bold','italic']}]"> 324 <h1>original</h1> 325 <p>This is the default content</p> 326 </textarea> 332 <textarea dojoType="dijit.Editor" name="richtext" pluginsConfig="[{items:['bold','italic']}]"><h1>original</h1><p>This is the default content</p></textarea> 327 333 </td> 328 334 </tr>