mirror of
https://github.com/nasa/openmct.git
synced 2024-12-19 05:07:52 +00:00
[Events] All tests work
All of the tests for the RT Events are working. #26.
This commit is contained in:
parent
56c3e72d32
commit
14694c675b
@ -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";
|
||||
},
|
||||
/**
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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-
|
||||
|
@ -1,6 +1,6 @@
|
||||
[
|
||||
"DomainColumn",
|
||||
"policies/RTMessagesViewPolicy",
|
||||
"RangeColumn",
|
||||
"RTEventListController",
|
||||
"policies/RTMessagesViewPolicy"
|
||||
"RTEventListController"
|
||||
]
|
Loading…
Reference in New Issue
Block a user