function testLogText() {
  var divLogs = document.getElementById('log-entries');
  assertNotEquals(null, divLogs, 'The <div> with logs not found.');
  assertNotEquals(
      null, divLogs.innerHTML.match(/text for testing/),
      'The logged text not found.');
  assertEquals(
      null, divLogs.innerHTML.match(/<script>/),
      'The logged text was not escaped.');
}
// found in the LICENSE file.
found in the LICENSE file.
found in the LICENSE file .
function testLogText() {
  var divLogs = document.getElementById('log-entries');
  assertNotEquals(null, divLogs, 'The <div> with logs not found.');
  assertNotEquals(
      null, divLogs.innerHTML.match(/text for testing/),
      'The logged text not found.');
  assertEquals(
      null, divLogs.innerHTML.match(/<script>/),
      'The logged text was not escaped.');
}
function testLogText ( ) { var divLogs = document . getElementById ( 'log-entries' ) ; assertNotEquals ( null , divLogs , 'The <div> with logs not found.' ) ; assertNotEquals ( null , divLogs . innerHTML . match ( / text for testing / ) , 'The logged text not found.' ) ; assertEquals ( null , divLogs . innerHTML . match ( / <script> / ) , 'The logged text was not escaped.' ) ; }
found in the LICENSE file.
found in the LICENSE file .