web/test/unittest_form.py
branchstable
changeset 2348 acf4b6a59558
parent 2346 d0026f2c6a81
child 2366 e4229723b824
equal deleted inserted replaced
2347:66d04a868313 2348:acf4b6a59558
   154         self._test_richtextfield('''<select id="description_format:%(eid)s" name="description_format:%(eid)s" size="1" style="display: block" tabindex="0">
   154         self._test_richtextfield('''<select id="description_format:%(eid)s" name="description_format:%(eid)s" size="1" style="display: block" tabindex="0">
   155 <option value="text/cubicweb-page-template">text/cubicweb-page-template</option>
   155 <option value="text/cubicweb-page-template">text/cubicweb-page-template</option>
   156 <option value="text/html">text/html</option>
   156 <option value="text/html">text/html</option>
   157 <option value="text/plain">text/plain</option>
   157 <option value="text/plain">text/plain</option>
   158 <option selected="selected" value="text/rest">text/rest</option>
   158 <option selected="selected" value="text/rest">text/rest</option>
   159 </select><textarea cols="60" id="description:%(eid)s" name="description:%(eid)s" onkeyup="autogrow(this)" rows="5" tabindex="1"/>''')
   159 </select><textarea cols="80" id="description:%(eid)s" name="description:%(eid)s" onkeyup="autogrow(this)" rows="20" tabindex="1"/>''')
   160 
   160 
   161 
   161 
   162     def test_richtextfield_2(self):
   162     def test_richtextfield_2(self):
   163         self.req.use_fckeditor = lambda: True
   163         self.req.use_fckeditor = lambda: True
   164         self._test_richtextfield('<input name="description_format:%(eid)s" style="display: block" type="hidden" value="text/rest"/><textarea cols="80" cubicweb:type="wysiwyg" id="description:%(eid)s" name="description:%(eid)s" onkeyup="autogrow(this)" rows="20" tabindex="0"/>')
   164         self._test_richtextfield('<input name="description_format:%(eid)s" style="display: block" type="hidden" value="text/rest"/><textarea cols="80" cubicweb:type="wysiwyg" id="description:%(eid)s" name="description:%(eid)s" onkeyup="autogrow(this)" rows="20" tabindex="0"/>')