File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -547,13 +547,11 @@ Editor.prototype.getOptions = function (options) {
547
547
} ;
548
548
549
549
Editor . prototype . updateTitle = function ( ) {
550
- var title ;
551
550
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' ) ;
557
555
if ( testCase && testCase . modified ) {
558
556
title += " *" ;
559
557
}
You can’t perform that action at this time.
0 commit comments