Commit 5db7cb93 authored by Gabriel Monnerat's avatar Gabriel Monnerat

- Add new test

- Fix issue with condition

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43827 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 04095347
......@@ -148,7 +148,7 @@ $().ready(function(){\n
$(this).css("padding-right", "24px")\n
}\n
});\n
if ($("div.gadget-column").length == 1) {\n
if ($("div.listbox-domain-tree-container").length >= 1) {\n
$("a.domain_selected").text($("a.tree-open:last").text());\n
var listboxTreeHeight = $("div.listbox-tree").css("height").replace("px", "");\n
var domainTreeHeight = $("div.listbox-domain-tree-container").css("height").replace("px", "");\n
......
......@@ -129,3 +129,12 @@ class TestUNG(ERP5TypeTestCase):
"<img src='ung_images/table.jpg'/>")
self.assertEquals(web_illustration.WebPage_getUNGIcon(),
"<img src='ung_images/svg.png'/>")
def testWebSection_deleteObjectList(self):
"""Test if objects are deleted correctly"""
web_page = self.portal.web_page_module.newContent(portal_type="Web Page")
self.portal.REQUEST.set("uids", [web_page.getUid(),])
self.stepTic()
self.portal.WebSection_deleteObjectList()
self.stepTic()
self.assertEquals(web_page.getValidationState(), "deleted")
\ No newline at end of file
252
\ No newline at end of file
253
\ No newline at end of file
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