Skip to content

Commit 3b06dd4

Browse files
AJ-72andreastt
authored andcommitted
ide: add tooltip text to scheduler switch
Tooltip of schedule button is changed to display as "Scheduler now on, Click to turn Scheduler off", if it is on. Fixes #370 Signed-off-by: Andreas Tolfsen <[email protected]>
1 parent b4d8238 commit 3b06dd4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ide/main/src/content/editor.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,7 @@ Editor.controller = {
423423
case "cmd_selenium_schedule":
424424
editor.scheduleButton.checked = !editor.scheduleButton.checked;
425425
if (editor.scheduleButton.checked) {
426+
editor.scheduleButton.setAttribute("tooltiptext","Scheduler now on, Click to turn Scheduler off")
426427
//TODO hasJobs() is not enough as there may be jobs that are not valid, need hasValidJobs()
427428
if (editor.scheduler.hasJobs()) {
428429
editor.toggleRecordingEnabled(false);
@@ -446,6 +447,7 @@ Editor.controller = {
446447
}
447448
}
448449
} else {
450+
editor.scheduleButton.setAttribute("tooltiptext","Click to turn scheduler on")
449451
editor.scheduler.stop();
450452
}
451453
break;

ide/main/src/content/selenium-ide-common.xul

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ limitations under the License.
276276
</stack>
277277
</vbox>
278278
</stack>
279-
<toolbarbutton id="schedule-button" type="menu-button" label="Scheduler" class="toolbar2 toolbarbutton-1" tooltiptext="Turn test scheduler on/off" command="cmd_selenium_schedule">
279+
<toolbarbutton id="schedule-button" type="menu-button" label="Scheduler" class="toolbar2 toolbarbutton-1" tooltiptext="Click to turn scheduler on" command="cmd_selenium_schedule">
280280
<menupopup id="schedulerPopup">
281281
<menuitem label="Play test suites periodically" oncommand="window.editor.openSeleniumIDEScheduler(event);" />
282282
<menuitem label="Toggle Scheduler" command="cmd_selenium_schedule" />

0 commit comments

Comments
 (0)