Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
g1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
76
Issues
76
List
Boards
Labels
Service Desk
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cto
g1
Commits
3be3e341
Commit
3be3e341
authored
May 01, 2019
by
S Anand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add explicit test cases for columns
parent
6bad2b6b
Pipeline
#84548
passed with stage
in 2 minutes and 29 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
test/test-formhandler-unit.html
test/test-formhandler-unit.html
+12
-4
No files found.
test/test-formhandler-unit.html
View file @
3be3e341
...
...
@@ -56,8 +56,13 @@
pageSize
:
2
})
.
on
(
'
load
'
,
function
(
args
)
{
t
.
equals
(
$
(
'
.star_order th
'
).
get
(
0
).
getAttribute
(
'
data-col
'
),
'
Stripes
'
)
t
.
equals
(
$
(
'
.star_order th
'
).
get
(
args
.
meta
.
columns
.
length
-
1
).
getAttribute
(
'
data-col
'
),
'
ID
'
)
var
cols
=
$
(
'
.star_order th
'
).
map
(
function
()
{
return
this
.
getAttribute
(
'
data-col
'
)
}).
get
()
t
.
deepEquals
(
cols
,
[
"
Stripes
"
,
"
Continent
"
,
"
Cross
"
,
"
Name
"
,
"
Shapes
"
,
"
Symbols
"
,
"
Text&
"
,
"
Union-Flag
"
,
"
c1
"
,
"
c2
"
,
"
c3
"
,
"
c4
"
,
"
c5
"
,
"
c6
"
,
"
c7
"
,
"
c8
"
,
"
date col
"
,
"
Bool Col
"
,
"
ID
"
])
t
.
end
()
})
})
...
...
@@ -67,8 +72,11 @@
pageSize
:
2
})
.
on
(
'
load
'
,
function
(
args
)
{
t
.
equals
(
$
(
'
.star_order2 th
'
).
get
(
0
).
getAttribute
(
'
data-col
'
),
'
Continent
'
)
t
.
equals
(
$
(
'
.star_order2 th
'
).
get
(
args
.
meta
.
columns
.
length
-
1
).
getAttribute
(
'
data-col
'
),
'
Bool Col
'
)
var
cols
=
$
(
'
.star_order2 th
'
).
map
(
function
()
{
return
this
.
getAttribute
(
'
data-col
'
)
}).
get
()
t
.
deepEquals
(
cols
,
[
"
Continent
"
,
"
Cross
"
,
"
ID
"
,
"
Name
"
,
"
Shapes
"
,
"
Stripes
"
,
"
Symbols
"
,
"
Text&
"
,
"
Union-Flag
"
,
"
c1
"
,
"
c2
"
,
"
c3
"
,
"
c4
"
,
"
c5
"
,
"
c6
"
,
"
c7
"
,
"
c8
"
,
"
date col
"
,
"
Bool Col
"
])
t
.
end
()
})
})
...
...
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