()
| 807 | } |
| 808 | |
| 809 | function makeSwitchGroup() { |
| 810 | var inputRecorderWrapper = makeInputRecorder(); |
| 811 | inputRecorderWrapper.setupInputId('__\0testHelper_switchGroup'); |
| 812 | var switchGroupWithRecordInputs = inputRecorderWrapper.inputRecorder.wrapUserInputListener({ |
| 813 | listener: dealSwitchGroup, |
| 814 | op: 'switchGroup' |
| 815 | }); |
| 816 | |
| 817 | return function (groupId, opt) { |
| 818 | (opt && opt.recordInputs) |
| 819 | ? switchGroupWithRecordInputs(groupId, opt) |
| 820 | : dealSwitchGroup(groupId); |
| 821 | }; |
| 822 | |
| 823 | function dealSwitchGroup(groupId) { |
| 824 | var groupCreatedToShow = retrieveAndVerifyGroup(groupId); |
| 825 | var groupSetCreated = groupCreatedToShow.groupParent; |
| 826 | groupSetCreated.switchGroup(groupId); |
| 827 | } |
| 828 | } |
| 829 | |
| 830 | function showHideGroupInGroupSet(groupCreated, showOrHide) { |
| 831 | groupCreated.inputsContainerEl.style.display = showOrHide |
no test coverage detected
searching dependent graphs…