Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
officejs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
officejs
Commits
67e765be
Commit
67e765be
authored
Aug 02, 2011
by
Gabriel L. Oliveira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reuse method to create web_illustration
parent
b7c948e5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
17 deletions
+3
-17
testUNGDocs.py
testUNGDocs.py
+3
-17
No files found.
testUNGDocs.py
View file @
67e765be
...
...
@@ -12,24 +12,10 @@ stroke='#000000' fill='#FF0000'/> </g></svg>")
class
TestUNGDocs
(
UNGTestMixin
):
"""Tests related to UNG Docs"""
def
test_web_illustration
(
self
):
"""test the action of add, fill, rename and search for a Web
Illustration document"""
#XXX when gadgets are enabled, this test may fail
# due to delay loading gadgets on every load of a page
#XXX the action of rename a document, clicking on 'document-title'
# may fail. I think, due to delay on animation when clicking to
# rename the document, and then clicking it again
# because selenium can do it really fast
#XXX may slowing down the speed it may test pass every time it's runned
#self.selenium.set_speed(1000)
#XXX even slowing down steps, the action of rename a document
# still fails saving the new name, and the 'document-title' remains
# showing the last one ('Web Page')
self
.
selenium
.
open
(
"ERP5Site_createNewWebDocument?template=web_illustration_template"
)
self
.
selenium
.
wait_for_page_to_load
(
"30000"
)
url
=
self
.
selenium
.
get_eval
(
'selenium.browserbot.getCurrentWindow().location'
).
split
(
'?'
)[
0
]
def
test_web_illustration
(
self
):
"""test add, fill, rename and search for a Web Illustration document"""
url
=
self
.
create_document
(
'illustration'
)
try
:
self
.
selenium
.
set_timeout
(
1
)
self
.
selenium
.
open
(
url
+
"/setTextContent?value=%s"
%
SVG_CONTENT
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment