adobe/brackets — pull request #10207 by peterflynn (2014-12-17 18:44:59+00:00)
Title: Cleaner fix for LiveDevMultiBrowser infinite loop

See discussion here for context: https://github.com/adobe/brackets/pull/10192#discussion_r21957109.

Move shared code into FileUtils (with unit tests) to minimize diff in the `_getInitialDocFromCurrent()` code that is duplicated between the two Live Preview impls.

Also...
- fixes an unhit edge case in getParentFolder() (now getParentDirectory()) that behaves differently across platforms
- removes duplicate copy of getFilenameWithoutExtension() in LiveDevelopment.js (copy in FileUtils was identical)
- add/fix some unit tests for two existing FileUtils APIs