Commit ef5cec2d authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web/dms] Use renderJS to display web page content

rJS gadget uses text content as value
parent 3d8ce06c
......@@ -81,7 +81,7 @@
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string>text_content</string> </value>
<value> <string>my_text_content</string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
......
......@@ -81,7 +81,7 @@
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string>text_content</string> </value>
<value> <string>my_text_content</string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
......
......@@ -325,7 +325,7 @@ class TestEditorField(ERP5TypeTestCase, ZopeTestCase.Functional):
# Make sure default view is read only
html_text = page.WebPage_view()
self.assertFalse(page.WebPage_view.my_text_content.get_value('editable'))
self.assertTrue(self._isReadOnlyEditor(html_text, page, page.asStrippedHTML()))
self.assertTrue(self._isReadOnlyEditor(html_text, page, page.getTextContent()))
def test_EditWebPageFCKEditorText(self):
"""
......@@ -347,7 +347,7 @@ class TestEditorField(ERP5TypeTestCase, ZopeTestCase.Functional):
# Make sure default view is read only
html_text = page.WebPage_view()
self.assertFalse(page.WebPage_view.my_text_content.get_value('editable'))
self.assertTrue(self._isReadOnlyEditor(html_text, page, page.asStrippedHTML()))
self.assertTrue(self._isReadOnlyEditor(html_text, page, page.getTextContent()))
def test_EditWebPageTextAreaHTML(self):
"""
......@@ -369,7 +369,7 @@ class TestEditorField(ERP5TypeTestCase, ZopeTestCase.Functional):
# Make sure default view is read only
html_text = page.WebPage_view()
self.assertFalse(page.WebPage_view.my_text_content.get_value('editable'))
self.assertTrue(self._isReadOnlyEditor(html_text, page, page.asStrippedHTML()))
self.assertTrue(self._isReadOnlyEditor(html_text, page, page.getTextContent()))
def test_EditWebPageTextAreaText(self):
"""
......@@ -391,7 +391,7 @@ class TestEditorField(ERP5TypeTestCase, ZopeTestCase.Functional):
# Make sure default view is read only
html_text = page.WebPage_view()
self.assertFalse(page.WebPage_view.my_text_content.get_value('editable'))
self.assertTrue(self._isReadOnlyEditor(html_text, page, page.asStrippedHTML()))
self.assertTrue(self._isReadOnlyEditor(html_text, page, page.getTextContent()))
def test_suite():
suite = unittest.TestSuite()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment