File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -37,17 +37,18 @@ final class KeyboardLayoutTests: XCTestCase {
3737 private let QWERTYVKeyCode = 9
3838 private let DvorakVKeyCode = 47 // swiftlint:disable:this identifier_name
3939
40- private var selectedInputSource : InputSource ?
40+ private static var selectedInputSource : InputSource ?
4141
42- override func setUp( ) {
42+ override static func setUp( ) {
4343 super. setUp ( )
4444 selectedInputSource = InputSource ( source: TISCopyCurrentKeyboardLayoutInputSource ( ) . takeUnretainedValue ( ) )
4545 }
4646
47- override func tearDown( ) {
47+ override static func tearDown( ) {
4848 super. tearDown ( )
4949 guard let selectedInputSource else { return }
50- selectInputSource ( id: selectedInputSource. id)
50+ TISEnableInputSource ( selectedInputSource. source)
51+ TISSelectInputSource ( selectedInputSource. source)
5152 }
5253
5354 // MARK: - Tests
You can’t perform that action at this time.
0 commit comments