B2G/gecko/content/base/test/file_CSP_evalscript_main.js
// some javascript for the CSP eval() tests
some javascript for the CSP eval() tests
some javascript for the CSP eval () tests
function logResult(str, passed) {
  var elt = document.createElement('div');
  var color = passed ? "#cfc;" : "#fcc";
  elt.setAttribute('style', 'background-color:' + color + '; width:100%; border:1px solid black; padding:3px; margin:4px;');
  elt.innerHTML = str;
  document.body.appendChild(elt);
}
function logResult ( str , passed ) { var elt = document . createElement ( 'div' ) ; var color = passed ? "#cfc;" : "#fcc" ; elt . setAttribute ( 'style' , 'background-color:' + color + '; width:100%; border:1px solid black; padding:3px; margin:4px;' ) ; elt . innerHTML = str ; document . body . appendChild ( elt ) ; }
some javascript for the CSP eval() tests
some javascript for the CSP eval () tests