Use fullPath and name getters instead of getPath() and getName().

This commit is contained in:
Glenn Ruehle committed 2013-07-23 11:38:53 -07:00
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);
}
});