function runTestCase(testCase) {
    div.innerHTML = '';
    timeutil.setTimeTickOffset(testCase.tickOffset);

    var baseTime = 0;
    if (typeof testCase.baseTimeTicks != 'undefined')
      baseTime = timeutil.convertTimeTicksToTime(testCase.baseTimeTicks);

    var tablePrinter = createLogEntryTablePrinter(
        testCase.logEntries, baseTime, testCase.logCreationTime);
    tablePrinter.toText(0, div);

    // Strip any trailing newlines, since the whitespace when using innerText
    // can be a bit unpredictable.
    var actualText = div.innerText;
    actualText = actualText.replace(/^\s+|\s+$/g, '');

    expectEquals(testCase.expectedText, actualText);
  }
// and the resulting formatted text expectation.
and the resulting formatted text expectation.
and the resulting formatted text expectation .
function runTestCase(testCase) {
    div.innerHTML = '';
    timeutil.setTimeTickOffset(testCase.tickOffset);
    var baseTime = 0;
    if (typeof testCase.baseTimeTicks != 'undefined')
      baseTime = timeutil.convertTimeTicksToTime(testCase.baseTimeTicks);
    var tablePrinter = createLogEntryTablePrinter(
        testCase.logEntries, baseTime, testCase.logCreationTime);
    tablePrinter.toText(0, div);
    var actualText = div.innerText;
    actualText = actualText.replace(/^\s+|\s+$/g, '');
    expectEquals(testCase.expectedText, actualText);
  }
function runTestCase ( testCase ) { div . innerHTML = '' ; timeutil . setTimeTickOffset ( testCase . tickOffset ) ; var baseTime = 0 ; if ( typeof testCase . baseTimeTicks != 'undefined' ) baseTime = timeutil . convertTimeTicksToTime ( testCase . baseTimeTicks ) ; var tablePrinter = createLogEntryTablePrinter ( testCase . logEntries , baseTime , testCase . logCreationTime ) ; tablePrinter . toText ( 0 , div ) ; var actualText = div . innerText ; actualText = actualText . replace ( / ^\s+|\s+$ / g , '' ) ; expectEquals ( testCase . expectedText , actualText ) ; }
and the resulting formatted text expectation.
and the resulting formatted text expectation .
// Strip any trailing newlines, since the whitespace when using innerText // can be a bit unpredictable.