mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
💄 fix the protocol module spec on OS X.
This commit is contained in:
@@ -114,8 +114,11 @@ describe 'protocol API', ->
|
||||
free()
|
||||
assert false, 'Got error: ' + errorType + ' ' + error
|
||||
protocol.interceptProtocol targetScheme, (request) ->
|
||||
pathInUrl = path.normalize request.url.substr(8)
|
||||
assert.equal pathInUrl, __filename
|
||||
if process.platform is 'win32'
|
||||
pathInUrl = path.normalize request.url.substr(8)
|
||||
assert.equal pathInUrl, __filename
|
||||
else
|
||||
assert.equal request.url, "#{targetScheme}://#{__filename}"
|
||||
|
||||
it 'can override original protocol handler', (done) ->
|
||||
handler = remote.createFunctionWithReturnValue 'valar morghulis'
|
||||
|
||||
Reference in New Issue
Block a user