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
e2e64c32
Commit
e2e64c32
authored
Aug 02, 2011
by
Gabriel L. Oliveira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor, fix test and reuse mixin methods
parent
b153c8ae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
14 deletions
+15
-14
testUNGDocs.py
testUNGDocs.py
+15
-14
No files found.
testUNGDocs.py
View file @
e2e64c32
...
@@ -1188,25 +1188,26 @@ class TestUNGDocs(UNGTestMixin):
...
@@ -1188,25 +1188,26 @@ class TestUNGDocs(UNGTestMixin):
test_time
=
int
(
unittest
.
time
.
time
())
test_time
=
int
(
unittest
.
time
.
time
())
#create 3 documents
#create 3 documents
for
doc_index
in
range
(
3
):
for
doc_index
in
range
(
3
):
web_page_name
=
"Functional UNG Test %d - Web Page %d"
%
(
test_time
,
doc_index
)
web_page_name
=
"Functional UNG Test %d - Web Page %d"
%
(
test_time
,
web_page_url
=
self
.
create_document
(
'page'
,
web_page_name
)
doc_index
)
self
.
create_document
(
'page'
,
name
=
web_page_name
)
#assert no checkbox is checked
#assert no checkbox is checked
self
.
open_ung_default_page
()
self
.
open_ung_default_page
(
'ung'
)
self
.
failIf
(
self
.
selenium
.
is_checked
(
"//tr[@class='
your_
listbox-data-line-0 DataA']/td[1]/input"
))
self
.
failIf
(
self
.
selenium
.
is_checked
(
"//tr[@class='listbox-data-line-0 DataA']/td[1]/input"
))
self
.
failIf
(
self
.
selenium
.
is_checked
(
"//tr[@class='
your_
listbox-data-line-1 DataB']/td[1]/input"
))
self
.
failIf
(
self
.
selenium
.
is_checked
(
"//tr[@class='listbox-data-line-1 DataB']/td[1]/input"
))
self
.
failIf
(
self
.
selenium
.
is_checked
(
"//tr[@class='
your_
listbox-data-line-2 DataA']/td[1]/input"
))
self
.
failIf
(
self
.
selenium
.
is_checked
(
"//tr[@class='listbox-data-line-2 DataA']/td[1]/input"
))
#click button to check all
#click button to check all
self
.
selenium
.
click
(
"//input[@name='
your_
listbox_checkAll:method']"
)
self
.
selenium
.
click
(
"//input[@name='listbox_checkAll:method']"
)
#check all checkboxes are selected
#check all checkboxes are selected
self
.
failUnless
(
self
.
selenium
.
is_checked
(
"//tr[@class='
your_
listbox-data-line-0 DataA']/td[1]/input"
))
self
.
failUnless
(
self
.
selenium
.
is_checked
(
"//tr[@class='listbox-data-line-0 DataA']/td[1]/input"
))
self
.
failUnless
(
self
.
selenium
.
is_checked
(
"//tr[@class='
your_
listbox-data-line-1 DataB']/td[1]/input"
))
self
.
failUnless
(
self
.
selenium
.
is_checked
(
"//tr[@class='listbox-data-line-1 DataB']/td[1]/input"
))
self
.
failUnless
(
self
.
selenium
.
is_checked
(
"//tr[@class='
your_
listbox-data-line-2 DataA']/td[1]/input"
))
self
.
failUnless
(
self
.
selenium
.
is_checked
(
"//tr[@class='listbox-data-line-2 DataA']/td[1]/input"
))
#click button to deselect all
#click button to deselect all
self
.
selenium
.
click
(
"//input[@name='
your_
listbox_uncheckAll:method']"
)
self
.
selenium
.
click
(
"//input[@name='listbox_uncheckAll:method']"
)
#check all cheboxes are deselected
#check all cheboxes are deselected
self
.
failIf
(
self
.
selenium
.
is_checked
(
"//tr[@class='
your_
listbox-data-line-0 DataA']/td[1]/input"
))
self
.
failIf
(
self
.
selenium
.
is_checked
(
"//tr[@class='listbox-data-line-0 DataA']/td[1]/input"
))
self
.
failIf
(
self
.
selenium
.
is_checked
(
"//tr[@class='
your_
listbox-data-line-1 DataB']/td[1]/input"
))
self
.
failIf
(
self
.
selenium
.
is_checked
(
"//tr[@class='listbox-data-line-1 DataB']/td[1]/input"
))
self
.
failIf
(
self
.
selenium
.
is_checked
(
"//tr[@class='
your_
listbox-data-line-2 DataA']/td[1]/input"
))
self
.
failIf
(
self
.
selenium
.
is_checked
(
"//tr[@class='listbox-data-line-2 DataA']/td[1]/input"
))
def
test_pagination_with_many_documents
(
self
):
def
test_pagination_with_many_documents
(
self
):
"""UNG Docs should paginate when many documents are present.
"""UNG Docs should paginate when many documents are present.
...
...
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