Skip to content

Commit 88e0c41

Browse files
committed
Show the test suite file name in the titlebar and yes, not showing anything the for the first time is a feature
1 parent 680596a commit 88e0c41

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

ide/main/src/content/editor.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -547,13 +547,11 @@ Editor.prototype.getOptions = function (options) {
547547
};
548548

549549
Editor.prototype.updateTitle = function () {
550-
var title;
551550
var testCase = this.getTestCase();
552-
if (testCase && testCase.file) {
553-
title = testCase.file.leafName + " - " + Editor.getString('selenium-ide.name') + " " + Editor.getString('selenium-ide.version');
554-
} else {
555-
title = Editor.getString('selenium-ide.name') + " " + Editor.getString('selenium-ide.version');
556-
}
551+
var title = testCase ? testCase.getTitle() : '';
552+
var testSuite = this.app.getTestSuite();
553+
title += " (" + (testSuite && testSuite.file ? testSuite.file.leafName : 'untitled suite') + ") ";
554+
title += " - " + Editor.getString('selenium-ide.name') + " " + Editor.getString('selenium-ide.version');
557555
if (testCase && testCase.modified) {
558556
title += " *";
559557
}

0 commit comments

Comments
 (0)