PageRenderTime 32ms CodeModel.GetById 24ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/js/lib/Socket.IO-node/support/expresso/deps/jscoverage/tests/javascript-ignore.expected/ignore.js

http://github.com/onedayitwillmake/RealtimeMultiplayerNodeJs
JavaScript | 106 lines | 105 code | 0 blank | 1 comment | 18 complexity | 172bb0461c7dc5e8d7176d9817cc590e MD5 | raw file
  1/* automatically generated by JSCoverage - do not edit */
  2if (! top._$jscoverage) {
  3  top._$jscoverage = {};
  4}
  5var _$jscoverage = top._$jscoverage;
  6if (! _$jscoverage['ignore.js']) {
  7  _$jscoverage['ignore.js'] = [];
  8  _$jscoverage['ignore.js'][1] = 0;
  9  _$jscoverage['ignore.js'][3] = 0;
 10  _$jscoverage['ignore.js'][4] = 0;
 11  _$jscoverage['ignore.js'][6] = 0;
 12  _$jscoverage['ignore.js'][7] = 0;
 13  _$jscoverage['ignore.js'][10] = 0;
 14  _$jscoverage['ignore.js'][14] = 0;
 15  _$jscoverage['ignore.js'][16] = 0;
 16  _$jscoverage['ignore.js'][17] = 0;
 17  _$jscoverage['ignore.js'][22] = 0;
 18  _$jscoverage['ignore.js'][23] = 0;
 19  _$jscoverage['ignore.js'][27] = 0;
 20  _$jscoverage['ignore.js'][32] = 0;
 21  _$jscoverage['ignore.js'][34] = 0;
 22  _$jscoverage['ignore.js'][35] = 0;
 23  _$jscoverage['ignore.js'][37] = 0;
 24  _$jscoverage['ignore.js'][38] = 0;
 25  _$jscoverage['ignore.js'][42] = 0;
 26  _$jscoverage['ignore.js'][43] = 0;
 27  _$jscoverage['ignore.js'][44] = 0;
 28}
 29_$jscoverage['ignore.js'].conditionals = [];
 30_$jscoverage['ignore.js'][1]++;
 31function createRequest() {
 32  _$jscoverage['ignore.js'][3]++;
 33  if (window.XMLHttpRequest) {
 34    _$jscoverage['ignore.js'].conditionals[6] = 11;
 35    _$jscoverage['ignore.js'][4]++;
 36    return new XMLHttpRequest();
 37  }
 38  else {
 39    _$jscoverage['ignore.js'].conditionals[4] = 5;
 40    _$jscoverage['ignore.js'][6]++;
 41    if (window.ActiveXObject) {
 42      _$jscoverage['ignore.js'].conditionals[9] = 11;
 43      _$jscoverage['ignore.js'][7]++;
 44      return new ActiveXObject("Msxml2.XMLHTTP");
 45    }
 46    else {
 47      _$jscoverage['ignore.js'].conditionals[7] = 8;
 48      _$jscoverage['ignore.js'][10]++;
 49      throw "no XMLHttpRequest implementation available";
 50    }
 51  }
 52}
 53_$jscoverage['ignore.js'][14]++;
 54function createRequest2() {
 55  _$jscoverage['ignore.js'][16]++;
 56  if (window.XMLHttpRequest) {
 57    _$jscoverage['ignore.js'][17]++;
 58    return new XMLHttpRequest();
 59  }
 60  else {
 61    _$jscoverage['ignore.js'].conditionals[17] = 18;
 62  }
 63  _$jscoverage['ignore.js'][22]++;
 64  if (window.ActiveXObject) {
 65    _$jscoverage['ignore.js'][23]++;
 66    return new ActiveXObject("Msxml2.XMLHTTP");
 67  }
 68  else {
 69    _$jscoverage['ignore.js'].conditionals[23] = 24;
 70  }
 71  _$jscoverage['ignore.js'][27]++;
 72  throw "no XMLHttpRequest implementation available";
 73}
 74_$jscoverage['ignore.js'][32]++;
 75function log(s) {
 76  _$jscoverage['ignore.js'][34]++;
 77  if (window.console && window.console.log) {
 78    _$jscoverage['ignore.js'].conditionals[37] = 39;
 79    _$jscoverage['ignore.js'][35]++;
 80    console.log(s);
 81  }
 82  else {
 83    _$jscoverage['ignore.js'].conditionals[35] = 36;
 84    _$jscoverage['ignore.js'][37]++;
 85    if (window.opera && window.opera.postError) {
 86      _$jscoverage['ignore.js'][38]++;
 87      opera.postError(s);
 88    }
 89    else {
 90      _$jscoverage['ignore.js'].conditionals[38] = 39;
 91    }
 92  }
 93}
 94_$jscoverage['ignore.js'][42]++;
 95var request = createRequest();
 96_$jscoverage['ignore.js'][43]++;
 97var request2 = createRequest2();
 98_$jscoverage['ignore.js'][44]++;
 99log("created requests");
100if (!( 0)) {
101  _$jscoverage['ignore.js'].conditionals[26] = 28;
102}
103if (!( ! window.XMLHttpRequest)) {
104  _$jscoverage['ignore.js'].conditionals[20] = 29;
105}
106_$jscoverage['ignore.js'].source = ["function createRequest() {","//#JSCOVERAGE_IF","  if (window.XMLHttpRequest) {","    return new XMLHttpRequest();","  }","  else if (window.ActiveXObject) {","    return new ActiveXObject('Msxml2.XMLHTTP');","  }","  else {","    throw 'no XMLHttpRequest implementation available';","  }","}","","function createRequest2() {","//#JSCOVERAGE_IF","  if (window.XMLHttpRequest) {","    return new XMLHttpRequest();","  }","","//#JSCOVERAGE_IF ! window.XMLHttpRequest","//#JSCOVERAGE_IF","  if (window.ActiveXObject) {","    return new ActiveXObject('Msxml2.XMLHTTP');","  }","","//#JSCOVERAGE_IF 0","  throw 'no XMLHttpRequest implementation available';","//#JSCOVERAGE_ENDIF","//#JSCOVERAGE_ENDIF","}","","function log(s) {","//#JSCOVERAGE_IF","  if (window.console && window.console.log) {","    console.log(s);","  }","  else if (window.opera && window.opera.postError) {","    opera.postError(s);","  }","}","","var request = createRequest();","var request2 = createRequest2();","log('created requests');"];