Skip to content

Commit

Permalink
Detect broken URL support in PhantomJS and skip test
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Jan 16, 2017
1 parent c1df102 commit b285e61
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/test.js
@@ -1,6 +1,12 @@
var support = {
searchParams: 'URLSearchParams' in self,
url: 'URL' in self,
url: (function(url) {
try {
return new URL(url).toString() === url
} catch(e) {
return false
}
})('http://example.com/'),
blob: 'FileReader' in self && 'Blob' in self && (function() {
try {
new Blob()
Expand Down

0 comments on commit b285e61

Please sign in to comment.