mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
Use fullPath and name getters instead of getPath() and getName().
This commit is contained in:
1 parent
848e0b67f4
commit
819a20882d
40 files changed
+214
-218
No files matched your search
@@ -49,7 +49,7 @@ define(function (require, exports, module) {
|
||||
|
||||
CommandManager.register("test-file-open", Commands.FILE_OPEN, function (fileInfo) {
|
||||
// Register a command for FILE_OPEN, which the jump to def code will call
|
||||
return DocumentManager.getDocumentForPath(fileInfo.getPath()).done(function (doc) {
|
||||
return DocumentManager.getDocumentForPath(fileInfo.fullPath).done(function (doc) {
|
||||
DocumentManager.setCurrentDocument(doc);
|
||||
});
|
||||
});
|
||||
@@ -331,7 +331,7 @@ define(function (require, exports, module) {
|
||||
expect(newCursor.ch).toBe(expectedLocation.ch);
|
||||
if (expectedLocation.file) {
|
||||
var activeEditor = EditorManager.getActiveEditor();
|
||||
expect(activeEditor.document.file.getName()).toBe(expectedLocation.file);
|
||||
expect(activeEditor.document.file.name).toBe(expectedLocation.file);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user