(url)
| 102 | } |
| 103 | |
| 104 | function corsEnabled(url) { |
| 105 | var xhr = new XMLHttpRequest(); |
| 106 | |
| 107 | xhr.open('HEAD', url, false); |
| 108 | |
| 109 | try { |
| 110 | xhr.send(); |
| 111 | } catch (e) {} |
| 112 | |
| 113 | return xhr.status >= 200 && xhr.status <= 299; |
| 114 | } |
| 115 | |
| 116 | |
| 117 | function click(node) { |
no outgoing calls
no test coverage detected