diff options
Diffstat (limited to 'devtools/client/projecteditor/test/browser_projecteditor_rename_file_02.js')
-rw-r--r-- | devtools/client/projecteditor/test/browser_projecteditor_rename_file_02.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/devtools/client/projecteditor/test/browser_projecteditor_rename_file_02.js b/devtools/client/projecteditor/test/browser_projecteditor_rename_file_02.js new file mode 100644 index 000000000..a2964da2a --- /dev/null +++ b/devtools/client/projecteditor/test/browser_projecteditor_rename_file_02.js @@ -0,0 +1,26 @@ +/* vim: set ts=2 et sw=2 tw=80: */ +/* Any copyright is dedicated to the Public Domain. + http://creativecommons.org/publicdomain/zero/1.0/ */ + +"use strict"; + +// Test file rename functionality with non ascii characters + +add_task(function* () { + let projecteditor = yield addProjectEditorTabForTempDirectory(); + ok(true, "ProjectEditor has loaded"); + + let root = [...projecteditor.project.allStores()][0].root; + is(root.path, TEMP_PATH, "The root store is set to the correct temp path."); + + let childrenList = []; + for (let child of root.children) { + yield renameWithContextMenu(projecteditor, + projecteditor.projectTree.getViewContainer(child), ".ren\u0061\u0308med"); + childrenList.push(child.basename + ".ren\u0061\u0308med"); + } + for (let child of root.children) { + is(childrenList.indexOf(child.basename) == -1, false, + "Failed to update tree with non-ascii character"); + } +}); |