Skip to content

Commit

Permalink
test suite fixup for Opera 12 that leaks a URL global lazily.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Jul 19, 2012
1 parent 857e0fa commit ac7b9f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/js/unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ test("globals set up", function() {
var leakedGlobArr = [''].concat(globArr).concat([''])
.join(',')
.replace(',Modernizr','').replace(',html5','')
.replace('URL','') // lazily added in Opera it seems.
.replace(/,script\w+/,'') // placed by jQuery
.split(',');

Expand Down

0 comments on commit ac7b9f5

Please sign in to comment.