]> khamidou — GitHub mirrors - electron.git/commitdiff
Fix protocol spec on Windows.
authorCheng Zhao <zcbenz@gmail.com>
Tue, 17 Dec 2013 15:03:36 +0000 (23:03 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 17 Dec 2013 15:03:36 +0000 (23:03 +0800)
spec/api-protocol-spec.coffee

index d017b85e5feafaab8e8b3fa036ce4d7783f30ea1..0a5a713eaac0c93e8eaa718d3541e7d12b642560 100644 (file)
@@ -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}"