Commit 3be3e341 authored by S Anand's avatar S Anand

Add explicit test cases for columns

parent 6bad2b6b
Pipeline #84548 passed with stage
in 2 minutes and 29 seconds
......@@ -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()
})
})
......
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