protocol.unregisterProtocol 'test1'
it 'calls the callback when scheme is visited', (done) ->
- protocol.registerProtocol 'test2', (url) ->
+ protocol.registerProtocol 'test2', (url, referrer) ->
assert.equal url, 'test2://test2'
+ assert.equal referrer, window.location.toString()
protocol.unregisterProtocol 'test2'
done()
$.get 'test2://test2', ->
<html>
<head>
+ <meta name="referrer" content="always">
<link href="../node_modules/mocha/mocha.css" rel="stylesheet">
<script src="jquery-2.0.3.min.js"></script>
</head>