[Events] All tests work

All of the tests for the RT Events are working. #26.
This commit is contained in:
Sarah Hale 2015-06-29 13:13:05 -07:00
parent 56c3e72d32
commit 14694c675b
4 changed files with 7 additions and 5 deletions

View File

@ -47,6 +47,8 @@ define(
* @returns {string} the title to display
*/
getTitle: function () {
// At the moment there does not appear to be a way to get the
// column's title through metadata for real time telemetry
return "Time";
},
/**

View File

@ -46,6 +46,7 @@ define(
rows = [];
function getTelemetryObjects() {
//console.log("handle.getTelemetryObjects() ", handle.getTelemetryObjects());
return handle ? handle.getTelemetryObjects() : [];
}
@ -65,7 +66,7 @@ define(
columns = [];
columns.push(new DomainColumn(telemetryFormatter, telemetryHandler.getMetadata()));
columns.push(new DomainColumn(telemetryFormatter));
columns.push(new RangeColumn());
headers = columns.map(function (column) {
@ -92,7 +93,6 @@ define(
return column.getValue(telemetryObject, handle).text;
}));
// Remove first rows when adding past the max rows limit
//rows.splice(ROW_COUNT, Number.MAX_VALUE);
rows.splice(0, rows.length - ROW_COUNT);
lastUpdated[id] = domainValue;
}

View File

@ -32,7 +32,7 @@ define(
/**
* A column which will report telemetry range values
* (typically, measurements.) Used by the RTScrollingListController.
* (typically, measurements.) Used by the RTEventListController.
*
* @constructor
* @param rangeMetadata an object with the machine- and human-

View File

@ -1,6 +1,6 @@
[
"DomainColumn",
"policies/RTMessagesViewPolicy",
"RangeColumn",
"RTEventListController",
"policies/RTMessagesViewPolicy"
"RTEventListController"
]