function canXhr(url) {
  var xhr = new XMLHttpRequest();
  xhr.open('GET', url, false);
  var success = true;
  try {
    xhr.send();
  } catch(e) {
    assertEq('NetworkError', e.name);
    success = false;
  }
  return success;
}
// found in the LICENSE file.
found in the LICENSE file.
found in the LICENSE file .
function canXhr(url) {
  var xhr = new XMLHttpRequest();
  xhr.open('GET', url, false);
  var success = true;
  try {
    xhr.send();
  } catch(e) {
    assertEq('NetworkError', e.name);
    success = false;
  }
  return success;
}
function canXhr ( url ) { var xhr = new XMLHttpRequest ( ) ; xhr . open ( 'GET' , url , false ) ; var success = true ; try { xhr . send ( ) ; } catch ( e ) { assertEq ( 'NetworkError' , e . name ) ; success = false ; } return success ; }
found in the LICENSE file.
found in the LICENSE file .