From: Cheng Zhao Date: Tue, 17 Dec 2013 15:03:36 +0000 (+0800) Subject: Fix protocol spec on Windows. X-Git-Tag: v0.8.0~4^2~11 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=d8eb465eb9c1c334d9d79273528e7932824d22e4;p=electron.git Fix protocol spec on Windows. --- diff --git a/spec/api-protocol-spec.coffee b/spec/api-protocol-spec.coffee index d017b85e..0a5a713e 100644 --- a/spec/api-protocol-spec.coffee +++ b/spec/api-protocol-spec.coffee @@ -116,7 +116,7 @@ describe 'protocol module', -> protocol.interceptProtocol targetScheme, (request) -> if process.platform is 'win32' pathInUrl = path.normalize request.url.substr(8) - assert.equal pathInUrl, __filename + assert.equal pathInUrl.toLowerCase(), __filename.toLowerCase() else assert.equal request.url, "#{targetScheme}://#{__filename}"