GUI -- TableService can take a div, config object, and data object in order to programmatically render and load data into a table. Test functions added.
Change-Id: I585cee8331612be984ca7ead2829525af7f3d3e5
diff --git a/web/gui/src/main/webapp/tests/app/fw/widget/table-spec.js b/web/gui/src/main/webapp/tests/app/fw/widget/table-spec.js
index 1e853c0..fcabb2e 100644
--- a/web/gui/src/main/webapp/tests/app/fw/widget/table-spec.js
+++ b/web/gui/src/main/webapp/tests/app/fw/widget/table-spec.js
@@ -37,8 +37,8 @@
"serial": "None",
"annotations": {
"protocol": "OF_10"
- }
- },
+ }
+ },
{
"id": "of:0000000000000004",
"available": false,
@@ -79,7 +79,6 @@
d3.select('#myDiv').remove();
});
-
it('should define TableService', function () {
expect(ts).toBeDefined();
});
@@ -88,7 +87,7 @@
var table = div.select('table'),
tableHeaders;
expect(table).toBeTruthy();
- expect(table.attr('fixed-header')).toBeTruthy();
+ expect(table.attr('fixed-header')).toBeFalsy();
expect(table.select('thead')).toBeTruthy();
expect(table.select('tbody')).toBeTruthy();