 
 PathLoader = require '../lib/path-loader'
 DefaultFileIcons = require '../lib/default-file-icons'
+
+escapeSelector = (_selector) ->
+  _selector.replace(/\\/g, '\\\\')
 
 rmrf = (_path) ->
   if fs.statSync(_path).isDirectory()


          runs ->
            eachFilePath [rootDir1], (filePath) ->
              item = projectView.list.find("li:contains(#{filePath})").eq(0)
              expect(item).toExist()
              expect(item.find("div").eq(1)).toHaveText(path.join(path.basename(rootDir1), filePath))

            eachFilePath [rootDir2], (filePath) ->
              item = projectView.list.find("li:contains(#{filePath})").eq(0)
              expect(item).toExist()
              expect(item.find("div").eq(1)).toHaveText(path.join(path.basename(rootDir2), filePath))



          runs ->
            eachFilePath [rootDir1], (filePath) ->
              item = projectView.list.find("li:contains(#{escapeSelector(filePath)})").eq(0)
              expect(item).toExist()
              expect(item).not.toHaveText(path.basename(rootDir1))

