function sanityCheckWithTimeRange(expectUpdateTimer) {
  if (!expectUpdateTimer) {
    expectEquals(null, timelineView().updateIntervalId_);
  } else {
    expectNotEquals(null, timelineView().updateIntervalId_);
  }
  assertNotEquals(startTime, null);
  assertNotEquals(endTime, null);
  expectEquals(startTime, graphView().startTime_);
  expectEquals(endTime, graphView().endTime_);
  sanityCheck(false);
}
/**
 * Checks what sanityCheck does, but also checks that |startTime| and |endTime|
 * are the same as those used by the graph, as well as whether we have a timer
 * running to update the graph's end time.  To avoid flake, this should only
 * be used synchronously relative to when |startTime| and |endTime| were set,
 * unless |expectUpdateTimer| is false.
 * @param {bool} expectUpdateTimer true if the TimelineView should currently
 *     have an update end time timer running.
 */
Checks what sanityCheck does, but also checks that |startTime| and |endTime|
are the same as those used by the graph, as well as whether we have a timer
running to update the graph's end time.
Checks what sanityCheck does but also checks that |startTime| and |endTime| are the same as those used by the graph as well as whether we have a timer running to update the graph ' s end time .
function sanityCheckWithTimeRange(expectUpdateTimer) {
  if (!expectUpdateTimer) {
    expectEquals(null, timelineView().updateIntervalId_);
  } else {
    expectNotEquals(null, timelineView().updateIntervalId_);
  }
  assertNotEquals(startTime, null);
  assertNotEquals(endTime, null);
  expectEquals(startTime, graphView().startTime_);
  expectEquals(endTime, graphView().endTime_);
  sanityCheck(false);
}
function sanityCheckWithTimeRange ( expectUpdateTimer ) { if ( ! expectUpdateTimer ) { expectEquals ( null , timelineView ( ) . updateIntervalId_ ) ; } else { expectNotEquals ( null , timelineView ( ) . updateIntervalId_ ) ; } assertNotEquals ( startTime , null ) ; assertNotEquals ( endTime , null ) ; expectEquals ( startTime , graphView ( ) . startTime_ ) ; expectEquals ( endTime , graphView ( ) . endTime_ ) ; sanityCheck ( false ) ; }
Checks what sanityCheck does, but also checks that |startTime| and |endTime|
 are the same as those used by the graph, as well as whether we have a timer
 running to update the graph's end time.
Checks what sanityCheck does but also checks that |startTime| and |endTime| are the same as those used by the graph as well as whether we have a timer running to update the graph ' s end time .