From bcec0d6695022582805afce211184c904e9e5baa Mon Sep 17 00:00:00 2001 From: David Roman <2538074+davdroman@users.noreply.github.com> Date: Wed, 17 Jul 2024 00:06:37 +0100 Subject: [PATCH] Revert "[Swift 6] Update Tests for Swift 6" This reverts commit b2f97b79d315ad8d42153fcccda4e561dc8757d6. --- Tests/Tests/PlatformVersionTests.swift | 6 ------ Tests/Tests/ViewTypes/ButtonTests.swift | 1 - Tests/Tests/ViewTypes/ColorPickerTests.swift | 1 - Tests/Tests/ViewTypes/DatePickerTests.swift | 1 - .../ViewTypes/DatePickerWithCompactFieldStyleTests.swift | 1 - Tests/Tests/ViewTypes/DatePickerWithFieldStyleTests.swift | 1 - .../Tests/ViewTypes/DatePickerWithGraphicalStyleTests.swift | 1 - .../ViewTypes/DatePickerWithStepperFieldStyleTests.swift | 1 - Tests/Tests/ViewTypes/DatePickerWithWheelStyleTests.swift | 1 - Tests/Tests/ViewTypes/FormTests.swift | 1 - Tests/Tests/ViewTypes/FormWithGroupedStyleTests.swift | 1 - Tests/Tests/ViewTypes/FullScreenCoverTests.swift | 2 -- Tests/Tests/ViewTypes/ListCellTests.swift | 2 -- Tests/Tests/ViewTypes/ListTests.swift | 3 --- Tests/Tests/ViewTypes/ListWithBorderedStyleTests.swift | 1 - Tests/Tests/ViewTypes/ListWithGroupedStyleTests.swift | 1 - Tests/Tests/ViewTypes/ListWithInsetGroupedStyleTests.swift | 1 - Tests/Tests/ViewTypes/ListWithInsetStyleTests.swift | 1 - Tests/Tests/ViewTypes/ListWithPlainStyleTests.swift | 1 - Tests/Tests/ViewTypes/ListWithSidebarStyleTests.swift | 1 - Tests/Tests/ViewTypes/MapTests.swift | 1 - Tests/Tests/ViewTypes/NavigationSplitViewTests.swift | 2 -- Tests/Tests/ViewTypes/NavigationStackTests.swift | 2 -- .../ViewTypes/NavigationViewWithColumnsStyleTests.swift | 2 -- .../Tests/ViewTypes/NavigationViewWithStackStyleTests.swift | 2 -- Tests/Tests/ViewTypes/PageControlTests.swift | 1 - Tests/Tests/ViewTypes/PickerWithMenuStyleTests.swift | 1 - Tests/Tests/ViewTypes/PickerWithSegmentedStyleTests.swift | 1 - Tests/Tests/ViewTypes/PickerWithWheelStyleTests.swift | 1 - Tests/Tests/ViewTypes/PopoverTests.swift | 2 -- .../ViewTypes/ProgressViewWithCircularStyleTests.swift | 1 - .../Tests/ViewTypes/ProgressViewWithLinearStyleTests.swift | 1 - Tests/Tests/ViewTypes/ScrollViewTests.swift | 3 --- Tests/Tests/ViewTypes/SearchFieldTests.swift | 4 ---- Tests/Tests/ViewTypes/SecureFieldTests.swift | 2 -- Tests/Tests/ViewTypes/SheetTests.swift | 4 ---- Tests/Tests/ViewTypes/SliderTests.swift | 1 - Tests/Tests/ViewTypes/StepperTests.swift | 1 - Tests/Tests/ViewTypes/TabViewTests.swift | 2 -- Tests/Tests/ViewTypes/TabViewWithPageStyleTests.swift | 2 -- Tests/Tests/ViewTypes/TableTests.swift | 3 --- Tests/Tests/ViewTypes/TextEditorTests.swift | 1 - Tests/Tests/ViewTypes/TextFieldTests.swift | 2 -- Tests/Tests/ViewTypes/TextFieldWithVerticalAxisTests.swift | 1 - Tests/Tests/ViewTypes/ToggleTests.swift | 1 - Tests/Tests/ViewTypes/ToggleWithButtonStyleTests.swift | 1 - Tests/Tests/ViewTypes/ToggleWithCheckboxStyleTests.swift | 1 - Tests/Tests/ViewTypes/ToggleWithSwitchStyleTests.swift | 1 - Tests/Tests/ViewTypes/VideoPlayerTests.swift | 1 - Tests/Tests/ViewTypes/ViewControllerTests.swift | 1 - Tests/Tests/ViewTypes/ViewTests.swift | 1 - Tests/Tests/ViewTypes/WindowTests.swift | 1 - 52 files changed, 80 deletions(-) diff --git a/Tests/Tests/PlatformVersionTests.swift b/Tests/Tests/PlatformVersionTests.swift index 14fbb92d..0b2e0169 100644 --- a/Tests/Tests/PlatformVersionTests.swift +++ b/Tests/Tests/PlatformVersionTests.swift @@ -2,7 +2,6 @@ import XCTest final class PlatformVersionTests: XCTestCase { - @MainActor func test_iOS_isCurrent() { #if os(iOS) if #available(iOS 17, *) { @@ -45,7 +44,6 @@ final class PlatformVersionTests: XCTestCase { #endif } - @MainActor func test_iOS_isCurrentOrPast() { #if os(iOS) if #available(iOS 17, *) { @@ -88,7 +86,6 @@ final class PlatformVersionTests: XCTestCase { #endif } - @MainActor func test_macOS_isCurrent() { #if os(macOS) if #available(macOS 14, *) { @@ -131,7 +128,6 @@ final class PlatformVersionTests: XCTestCase { #endif } - @MainActor func test_macOS_isCurrentOrPast() { #if os(macOS) if #available(macOS 14, *) { @@ -174,7 +170,6 @@ final class PlatformVersionTests: XCTestCase { #endif } - @MainActor func test_tvOS_isCurrent() { #if os(tvOS) if #available(tvOS 17, *) { @@ -217,7 +212,6 @@ final class PlatformVersionTests: XCTestCase { #endif } - @MainActor func test_tvOS_isCurrentOrPast() { #if os(tvOS) if #available(tvOS 17, *) { diff --git a/Tests/Tests/ViewTypes/ButtonTests.swift b/Tests/Tests/ViewTypes/ButtonTests.swift index f3c61583..28dcd444 100644 --- a/Tests/Tests/ViewTypes/ButtonTests.swift +++ b/Tests/Tests/ViewTypes/ButtonTests.swift @@ -9,7 +9,6 @@ final class ButtonTests: XCTestCase { typealias PlatformButton = NSButton #endif - @MainActor func testButton() { XCTAssertViewIntrospection(of: PlatformButton.self) { spies in let spy0 = spies[0] diff --git a/Tests/Tests/ViewTypes/ColorPickerTests.swift b/Tests/Tests/ViewTypes/ColorPickerTests.swift index 682a080f..f61bd4b9 100644 --- a/Tests/Tests/ViewTypes/ColorPickerTests.swift +++ b/Tests/Tests/ViewTypes/ColorPickerTests.swift @@ -14,7 +14,6 @@ final class ColorPickerTests: XCTestCase { typealias PlatformColorPicker = NSColorWell #endif - @MainActor func testColorPicker() throws { guard #available(iOS 14, macOS 11, *) else { throw XCTSkip() diff --git a/Tests/Tests/ViewTypes/DatePickerTests.swift b/Tests/Tests/ViewTypes/DatePickerTests.swift index cd1c0a4a..1cdaf623 100644 --- a/Tests/Tests/ViewTypes/DatePickerTests.swift +++ b/Tests/Tests/ViewTypes/DatePickerTests.swift @@ -11,7 +11,6 @@ final class DatePickerTests: XCTestCase { typealias PlatformDatePicker = NSDatePicker #endif - @MainActor func testDatePicker() { let date0 = Date(timeIntervalSince1970: 0) let date1 = Date(timeIntervalSince1970: 5) diff --git a/Tests/Tests/ViewTypes/DatePickerWithCompactFieldStyleTests.swift b/Tests/Tests/ViewTypes/DatePickerWithCompactFieldStyleTests.swift index 7d90e729..3698f84b 100644 --- a/Tests/Tests/ViewTypes/DatePickerWithCompactFieldStyleTests.swift +++ b/Tests/Tests/ViewTypes/DatePickerWithCompactFieldStyleTests.swift @@ -12,7 +12,6 @@ final class DatePickerWithCompactStyleTests: XCTestCase { typealias PlatformDatePickerWithCompactStyle = NSDatePicker #endif - @MainActor func testDatePickerWithCompactStyle() throws { guard #available(iOS 14, macOS 10.15.4, *) else { throw XCTSkip() diff --git a/Tests/Tests/ViewTypes/DatePickerWithFieldStyleTests.swift b/Tests/Tests/ViewTypes/DatePickerWithFieldStyleTests.swift index 83b9ee0b..e33f9b04 100644 --- a/Tests/Tests/ViewTypes/DatePickerWithFieldStyleTests.swift +++ b/Tests/Tests/ViewTypes/DatePickerWithFieldStyleTests.swift @@ -9,7 +9,6 @@ final class DatePickerWithFieldStyleTests: XCTestCase { typealias PlatformDatePickerWithFieldStyle = NSDatePicker #endif - @MainActor func testDatePickerWithFieldStyle() { let date0 = Date(timeIntervalSince1970: 0) let date1 = Date(timeIntervalSince1970: 5) diff --git a/Tests/Tests/ViewTypes/DatePickerWithGraphicalStyleTests.swift b/Tests/Tests/ViewTypes/DatePickerWithGraphicalStyleTests.swift index 14150dc0..8aa62db4 100644 --- a/Tests/Tests/ViewTypes/DatePickerWithGraphicalStyleTests.swift +++ b/Tests/Tests/ViewTypes/DatePickerWithGraphicalStyleTests.swift @@ -12,7 +12,6 @@ final class DatePickerWithGraphicalStyleTests: XCTestCase { typealias PlatformDatePickerWithGraphicalStyle = NSDatePicker #endif - @MainActor func testDatePickerWithGraphicalStyle() throws { guard #available(iOS 14, *) else { throw XCTSkip() diff --git a/Tests/Tests/ViewTypes/DatePickerWithStepperFieldStyleTests.swift b/Tests/Tests/ViewTypes/DatePickerWithStepperFieldStyleTests.swift index d36ec565..9b2a506d 100644 --- a/Tests/Tests/ViewTypes/DatePickerWithStepperFieldStyleTests.swift +++ b/Tests/Tests/ViewTypes/DatePickerWithStepperFieldStyleTests.swift @@ -9,7 +9,6 @@ final class DatePickerWithStepperFieldStyleTests: XCTestCase { typealias PlatformDatePickerWithStepperFieldStyle = NSDatePicker #endif - @MainActor func testDatePickerWithStepperFieldStyle() { let date0 = Date(timeIntervalSince1970: 0) let date1 = Date(timeIntervalSince1970: 5) diff --git a/Tests/Tests/ViewTypes/DatePickerWithWheelStyleTests.swift b/Tests/Tests/ViewTypes/DatePickerWithWheelStyleTests.swift index 1df9a8e1..ac1256f2 100644 --- a/Tests/Tests/ViewTypes/DatePickerWithWheelStyleTests.swift +++ b/Tests/Tests/ViewTypes/DatePickerWithWheelStyleTests.swift @@ -9,7 +9,6 @@ final class DatePickerWithWheelStyleTests: XCTestCase { typealias PlatformDatePickerWithWheelStyle = UIDatePicker #endif - @MainActor func testDatePickerWithWheelStyle() { let date0 = Date(timeIntervalSince1970: 0) let date1 = Date(timeIntervalSince1970: 5) diff --git a/Tests/Tests/ViewTypes/FormTests.swift b/Tests/Tests/ViewTypes/FormTests.swift index b1fc5c92..c6125c8b 100644 --- a/Tests/Tests/ViewTypes/FormTests.swift +++ b/Tests/Tests/ViewTypes/FormTests.swift @@ -11,7 +11,6 @@ final class FormTests: XCTestCase { typealias PlatformForm = NSScrollView #endif - @MainActor func testForm() throws { XCTAssertViewIntrospection(of: PlatformForm.self) { spies in let spy0 = spies[0] diff --git a/Tests/Tests/ViewTypes/FormWithGroupedStyleTests.swift b/Tests/Tests/ViewTypes/FormWithGroupedStyleTests.swift index 77615c2a..d6fdef3b 100644 --- a/Tests/Tests/ViewTypes/FormWithGroupedStyleTests.swift +++ b/Tests/Tests/ViewTypes/FormWithGroupedStyleTests.swift @@ -11,7 +11,6 @@ final class FormWithGroupedStyleTests: XCTestCase { typealias PlatformFormWithGroupedStyle = NSScrollView #endif - @MainActor func testFormWithGroupedStyle() throws { guard #available(iOS 16, tvOS 16, macOS 13, *) else { throw XCTSkip() diff --git a/Tests/Tests/ViewTypes/FullScreenCoverTests.swift b/Tests/Tests/ViewTypes/FullScreenCoverTests.swift index ef47c751..66944199 100644 --- a/Tests/Tests/ViewTypes/FullScreenCoverTests.swift +++ b/Tests/Tests/ViewTypes/FullScreenCoverTests.swift @@ -6,8 +6,6 @@ import XCTest @available(iOS 14, tvOS 14, *) @MainActor final class FullScreenCoverTests: XCTestCase { - - @MainActor func testPresentationAsFullScreenCover() throws { guard #available(iOS 14, tvOS 14, *) else { throw XCTSkip() diff --git a/Tests/Tests/ViewTypes/ListCellTests.swift b/Tests/Tests/ViewTypes/ListCellTests.swift index fcd9dfaa..2d4b65a9 100644 --- a/Tests/Tests/ViewTypes/ListCellTests.swift +++ b/Tests/Tests/ViewTypes/ListCellTests.swift @@ -10,7 +10,6 @@ final class ListCellTests: XCTestCase { typealias PlatformListCell = NSTableCellView #endif - @MainActor func testListCell() { XCTAssertViewIntrospection(of: PlatformListCell.self) { spies in let spy = spies[0] @@ -27,7 +26,6 @@ final class ListCellTests: XCTestCase { } } - @MainActor func testMaskedListCell() { XCTAssertViewIntrospection(of: PlatformListCell.self) { spies in let spy = spies[0] diff --git a/Tests/Tests/ViewTypes/ListTests.swift b/Tests/Tests/ViewTypes/ListTests.swift index dac4a092..fe722b93 100644 --- a/Tests/Tests/ViewTypes/ListTests.swift +++ b/Tests/Tests/ViewTypes/ListTests.swift @@ -10,7 +10,6 @@ final class ListTests: XCTestCase { typealias PlatformList = NSTableView #endif - @MainActor func testList() { XCTAssertViewIntrospection(of: PlatformList.self) { spies in let spy0 = spies[0] @@ -43,7 +42,6 @@ final class ListTests: XCTestCase { } #if !os(macOS) - @MainActor func testNestedList() { XCTAssertViewIntrospection(of: PlatformList.self) { spies in let spy0 = spies[0] @@ -70,7 +68,6 @@ final class ListTests: XCTestCase { } #endif - @MainActor func testMaskedList() { XCTAssertViewIntrospection(of: PlatformList.self) { spies in let spy0 = spies[0] diff --git a/Tests/Tests/ViewTypes/ListWithBorderedStyleTests.swift b/Tests/Tests/ViewTypes/ListWithBorderedStyleTests.swift index 8ecae8da..98ddfb17 100644 --- a/Tests/Tests/ViewTypes/ListWithBorderedStyleTests.swift +++ b/Tests/Tests/ViewTypes/ListWithBorderedStyleTests.swift @@ -10,7 +10,6 @@ final class ListWithBorderedStyleTests: XCTestCase { typealias PlatformListWithBorderedStyle = NSTableView #endif - @MainActor func testListWithBorderedStyle() throws { guard #available(macOS 12, *) else { throw XCTSkip() diff --git a/Tests/Tests/ViewTypes/ListWithGroupedStyleTests.swift b/Tests/Tests/ViewTypes/ListWithGroupedStyleTests.swift index fb53f0d2..5949ee45 100644 --- a/Tests/Tests/ViewTypes/ListWithGroupedStyleTests.swift +++ b/Tests/Tests/ViewTypes/ListWithGroupedStyleTests.swift @@ -9,7 +9,6 @@ final class ListWithGroupedStyleTests: XCTestCase { typealias PlatformListWithGroupedStyle = UIScrollView // covers both UITableView and UICollectionView #endif - @MainActor func testListWithGroupedStyle() { XCTAssertViewIntrospection(of: PlatformListWithGroupedStyle.self) { spies in let spy0 = spies[0] diff --git a/Tests/Tests/ViewTypes/ListWithInsetGroupedStyleTests.swift b/Tests/Tests/ViewTypes/ListWithInsetGroupedStyleTests.swift index c7802a91..12f6cd8f 100644 --- a/Tests/Tests/ViewTypes/ListWithInsetGroupedStyleTests.swift +++ b/Tests/Tests/ViewTypes/ListWithInsetGroupedStyleTests.swift @@ -10,7 +10,6 @@ final class ListWithInsetGroupedStyleTests: XCTestCase { typealias PlatformListWithInsetGroupedStyle = UIScrollView // covers both UITableView and UICollectionView #endif - @MainActor func testListWithInsetGroupedStyle() throws { guard #available(iOS 14, *) else { throw XCTSkip() diff --git a/Tests/Tests/ViewTypes/ListWithInsetStyleTests.swift b/Tests/Tests/ViewTypes/ListWithInsetStyleTests.swift index 7100af78..db88d126 100644 --- a/Tests/Tests/ViewTypes/ListWithInsetStyleTests.swift +++ b/Tests/Tests/ViewTypes/ListWithInsetStyleTests.swift @@ -12,7 +12,6 @@ final class ListWithInsetStyleTests: XCTestCase { typealias PlatformListWithInsetStyle = NSTableView #endif - @MainActor func testListWithInsetStyle() throws { guard #available(iOS 14, macOS 11, *) else { throw XCTSkip() diff --git a/Tests/Tests/ViewTypes/ListWithPlainStyleTests.swift b/Tests/Tests/ViewTypes/ListWithPlainStyleTests.swift index 18db01d0..1ad621f3 100644 --- a/Tests/Tests/ViewTypes/ListWithPlainStyleTests.swift +++ b/Tests/Tests/ViewTypes/ListWithPlainStyleTests.swift @@ -10,7 +10,6 @@ final class ListWithPlainStyleTests: XCTestCase { typealias PlatformListWithPlainStyle = NSTableView #endif - @MainActor func testListWithPlainStyle() { XCTAssertViewIntrospection(of: PlatformListWithPlainStyle.self) { spies in let spy0 = spies[0] diff --git a/Tests/Tests/ViewTypes/ListWithSidebarStyleTests.swift b/Tests/Tests/ViewTypes/ListWithSidebarStyleTests.swift index c4c5708d..43de00ef 100644 --- a/Tests/Tests/ViewTypes/ListWithSidebarStyleTests.swift +++ b/Tests/Tests/ViewTypes/ListWithSidebarStyleTests.swift @@ -12,7 +12,6 @@ final class ListWithSidebarStyleTests: XCTestCase { typealias PlatformListWithSidebarStyle = NSTableView #endif - @MainActor func testListWithSidebarStyle() throws { guard #available(iOS 14, macOS 10.15, *) else { throw XCTSkip() diff --git a/Tests/Tests/ViewTypes/MapTests.swift b/Tests/Tests/ViewTypes/MapTests.swift index 500bdf69..27032671 100644 --- a/Tests/Tests/ViewTypes/MapTests.swift +++ b/Tests/Tests/ViewTypes/MapTests.swift @@ -9,7 +9,6 @@ import XCTest final class MapTests: XCTestCase { typealias PlatformMap = MKMapView - @MainActor func testMap() throws { guard #available(iOS 14, tvOS 14, macOS 11, *) else { throw XCTSkip() diff --git a/Tests/Tests/ViewTypes/NavigationSplitViewTests.swift b/Tests/Tests/ViewTypes/NavigationSplitViewTests.swift index deec885f..391ebe9d 100644 --- a/Tests/Tests/ViewTypes/NavigationSplitViewTests.swift +++ b/Tests/Tests/ViewTypes/NavigationSplitViewTests.swift @@ -13,7 +13,6 @@ final class NavigationSplitViewTests: XCTestCase { typealias PlatformNavigationSplitView = NSSplitView #endif - @MainActor func testNavigationSplitView() throws { guard #available(iOS 16, tvOS 16, macOS 13, *) else { throw XCTSkip() @@ -43,7 +42,6 @@ final class NavigationSplitViewTests: XCTestCase { } } - @MainActor func testNavigationSplitViewAsAncestor() throws { guard #available(iOS 16, tvOS 16, macOS 13, *) else { throw XCTSkip() diff --git a/Tests/Tests/ViewTypes/NavigationStackTests.swift b/Tests/Tests/ViewTypes/NavigationStackTests.swift index 8e1f78b7..9ed4ac0c 100644 --- a/Tests/Tests/ViewTypes/NavigationStackTests.swift +++ b/Tests/Tests/ViewTypes/NavigationStackTests.swift @@ -10,7 +10,6 @@ final class NavigationStackTests: XCTestCase { typealias PlatformNavigationStack = UINavigationController #endif - @MainActor func testNavigationStack() throws { guard #available(iOS 16, tvOS 16, *) else { throw XCTSkip() @@ -31,7 +30,6 @@ final class NavigationStackTests: XCTestCase { } } - @MainActor func testNavigationStackAsAncestor() throws { guard #available(iOS 16, tvOS 16, *) else { throw XCTSkip() diff --git a/Tests/Tests/ViewTypes/NavigationViewWithColumnsStyleTests.swift b/Tests/Tests/ViewTypes/NavigationViewWithColumnsStyleTests.swift index d5b432b6..4a1ae555 100644 --- a/Tests/Tests/ViewTypes/NavigationViewWithColumnsStyleTests.swift +++ b/Tests/Tests/ViewTypes/NavigationViewWithColumnsStyleTests.swift @@ -12,7 +12,6 @@ final class NavigationViewWithColumnsStyleTests: XCTestCase { typealias PlatformNavigationViewWithColumnsStyle = NSSplitView #endif - @MainActor func testNavigationViewWithColumnsStyle() { XCTAssertViewIntrospection(of: PlatformNavigationViewWithColumnsStyle.self) { spies in let spy = spies[0] @@ -34,7 +33,6 @@ final class NavigationViewWithColumnsStyleTests: XCTestCase { } } - @MainActor func testNavigationViewWithColumnsStyleAsAncestor() { XCTAssertViewIntrospection(of: PlatformNavigationViewWithColumnsStyle.self) { spies in let spy = spies[0] diff --git a/Tests/Tests/ViewTypes/NavigationViewWithStackStyleTests.swift b/Tests/Tests/ViewTypes/NavigationViewWithStackStyleTests.swift index 3ff2d99c..95ad9133 100644 --- a/Tests/Tests/ViewTypes/NavigationViewWithStackStyleTests.swift +++ b/Tests/Tests/ViewTypes/NavigationViewWithStackStyleTests.swift @@ -9,7 +9,6 @@ final class NavigationViewWithStackStyleTests: XCTestCase { typealias PlatformNavigationViewWithStackStyle = UINavigationController #endif - @MainActor func testNavigationViewWithStackStyle() { XCTAssertViewIntrospection(of: PlatformNavigationViewWithStackStyle.self) { spies in let spy = spies[0] @@ -27,7 +26,6 @@ final class NavigationViewWithStackStyleTests: XCTestCase { } } - @MainActor func testNavigationViewWithStackStyleAsAncestor() { XCTAssertViewIntrospection(of: PlatformNavigationViewWithStackStyle.self) { spies in let spy = spies[0] diff --git a/Tests/Tests/ViewTypes/PageControlTests.swift b/Tests/Tests/ViewTypes/PageControlTests.swift index fd23828c..2b6aed8b 100644 --- a/Tests/Tests/ViewTypes/PageControlTests.swift +++ b/Tests/Tests/ViewTypes/PageControlTests.swift @@ -10,7 +10,6 @@ final class PageControlTests: XCTestCase { typealias PlatformPageControl = UIPageControl #endif - @MainActor func testPageControl() throws { guard #available(iOS 14, tvOS 14, *) else { throw XCTSkip() diff --git a/Tests/Tests/ViewTypes/PickerWithMenuStyleTests.swift b/Tests/Tests/ViewTypes/PickerWithMenuStyleTests.swift index 49c1551c..a7867271 100644 --- a/Tests/Tests/ViewTypes/PickerWithMenuStyleTests.swift +++ b/Tests/Tests/ViewTypes/PickerWithMenuStyleTests.swift @@ -9,7 +9,6 @@ final class PickerWithMenuStyleTests: XCTestCase { typealias PlatformPickerWithMenuStyle = NSPopUpButton #endif - @MainActor func testPickerWithMenuStyle() { XCTAssertViewIntrospection(of: PlatformPickerWithMenuStyle.self) { spies in let spy0 = spies[0] diff --git a/Tests/Tests/ViewTypes/PickerWithSegmentedStyleTests.swift b/Tests/Tests/ViewTypes/PickerWithSegmentedStyleTests.swift index 2311d69b..109c27d3 100644 --- a/Tests/Tests/ViewTypes/PickerWithSegmentedStyleTests.swift +++ b/Tests/Tests/ViewTypes/PickerWithSegmentedStyleTests.swift @@ -10,7 +10,6 @@ final class PickerWithSegmentedStyleTests: XCTestCase { typealias PlatformPickerWithSegmentedStyle = NSSegmentedControl #endif - @MainActor func testPickerWithSegmentedStyle() { XCTAssertViewIntrospection(of: PlatformPickerWithSegmentedStyle.self) { spies in let spy0 = spies[0] diff --git a/Tests/Tests/ViewTypes/PickerWithWheelStyleTests.swift b/Tests/Tests/ViewTypes/PickerWithWheelStyleTests.swift index 5f578428..10be27b9 100644 --- a/Tests/Tests/ViewTypes/PickerWithWheelStyleTests.swift +++ b/Tests/Tests/ViewTypes/PickerWithWheelStyleTests.swift @@ -9,7 +9,6 @@ final class PickerWithWheelStyleTests: XCTestCase { typealias PlatformPickerWithWheelStyle = UIPickerView #endif - @MainActor func testPickerWithWheelStyle() { XCTAssertViewIntrospection(of: PlatformPickerWithWheelStyle.self) { spies in let spy0 = spies[0] diff --git a/Tests/Tests/ViewTypes/PopoverTests.swift b/Tests/Tests/ViewTypes/PopoverTests.swift index bdc03a6e..9b31e073 100644 --- a/Tests/Tests/ViewTypes/PopoverTests.swift +++ b/Tests/Tests/ViewTypes/PopoverTests.swift @@ -5,8 +5,6 @@ import XCTest @MainActor final class PopoverTests: XCTestCase { - - @MainActor func testPopover() throws { XCTAssertViewIntrospection(of: UIPopoverPresentationController.self) { spies in let spy0 = spies[0] diff --git a/Tests/Tests/ViewTypes/ProgressViewWithCircularStyleTests.swift b/Tests/Tests/ViewTypes/ProgressViewWithCircularStyleTests.swift index c22b41a7..b39448a4 100644 --- a/Tests/Tests/ViewTypes/ProgressViewWithCircularStyleTests.swift +++ b/Tests/Tests/ViewTypes/ProgressViewWithCircularStyleTests.swift @@ -10,7 +10,6 @@ final class ProgressViewWithCircularStyleTests: XCTestCase { typealias PlatformProgressViewWithCircularStyle = NSProgressIndicator #endif - @MainActor func testProgressViewWithCircularStyle() throws { guard #available(iOS 14, tvOS 14, macOS 11, *) else { throw XCTSkip() diff --git a/Tests/Tests/ViewTypes/ProgressViewWithLinearStyleTests.swift b/Tests/Tests/ViewTypes/ProgressViewWithLinearStyleTests.swift index 8bb04b29..d6b889c2 100644 --- a/Tests/Tests/ViewTypes/ProgressViewWithLinearStyleTests.swift +++ b/Tests/Tests/ViewTypes/ProgressViewWithLinearStyleTests.swift @@ -10,7 +10,6 @@ final class ProgressViewWithLinearStyleTests: XCTestCase { typealias PlatformProgressViewWithLinearStyle = NSProgressIndicator #endif - @MainActor func testProgressViewWithLinearStyle() throws { guard #available(iOS 14, tvOS 14, macOS 11, *) else { throw XCTSkip() diff --git a/Tests/Tests/ViewTypes/ScrollViewTests.swift b/Tests/Tests/ViewTypes/ScrollViewTests.swift index bce98420..caa9c6dc 100644 --- a/Tests/Tests/ViewTypes/ScrollViewTests.swift +++ b/Tests/Tests/ViewTypes/ScrollViewTests.swift @@ -10,7 +10,6 @@ final class ScrollViewTests: XCTestCase { typealias PlatformScrollView = NSScrollView #endif - @MainActor func testScrollView() { XCTAssertViewIntrospection(of: PlatformScrollView.self) { spies in let spy0 = spies[0] @@ -51,7 +50,6 @@ final class ScrollViewTests: XCTestCase { } } - @MainActor func testNestedScrollView() { XCTAssertViewIntrospection(of: PlatformScrollView.self) { spies in let spy0 = spies[0] @@ -90,7 +88,6 @@ final class ScrollViewTests: XCTestCase { } } - @MainActor func testMaskedScrollView() { XCTAssertViewIntrospection(of: PlatformScrollView.self) { spies in let spy0 = spies[0] diff --git a/Tests/Tests/ViewTypes/SearchFieldTests.swift b/Tests/Tests/ViewTypes/SearchFieldTests.swift index ed88dba6..ce197d77 100644 --- a/Tests/Tests/ViewTypes/SearchFieldTests.swift +++ b/Tests/Tests/ViewTypes/SearchFieldTests.swift @@ -10,7 +10,6 @@ final class SearchFieldTests: XCTestCase { typealias PlatformSearchField = UISearchBar #endif - @MainActor func testSearchFieldInNavigationStack() throws { guard #available(iOS 15, tvOS 15, *) else { throw XCTSkip() @@ -30,7 +29,6 @@ final class SearchFieldTests: XCTestCase { } } - @MainActor func testSearchFieldInNavigationStackAsAncestor() throws { guard #available(iOS 15, tvOS 15, *) else { throw XCTSkip() @@ -50,7 +48,6 @@ final class SearchFieldTests: XCTestCase { } } - @MainActor func testSearchFieldInNavigationSplitView() throws { guard #available(iOS 15, tvOS 15, *) else { throw XCTSkip() @@ -76,7 +73,6 @@ final class SearchFieldTests: XCTestCase { } } - @MainActor func testSearchFieldInNavigationSplitViewAsAncestor() throws { guard #available(iOS 15, tvOS 15, *) else { throw XCTSkip() diff --git a/Tests/Tests/ViewTypes/SecureFieldTests.swift b/Tests/Tests/ViewTypes/SecureFieldTests.swift index afd25fd2..bc2174d6 100644 --- a/Tests/Tests/ViewTypes/SecureFieldTests.swift +++ b/Tests/Tests/ViewTypes/SecureFieldTests.swift @@ -10,7 +10,6 @@ final class SecureFieldTests: XCTestCase { typealias PlatformSecureField = NSTextField #endif - @MainActor func testSecureField() { XCTAssertViewIntrospection(of: PlatformSecureField.self) { spies in let spy0 = spies[0] @@ -54,7 +53,6 @@ final class SecureFieldTests: XCTestCase { } } - @MainActor func testSecureFieldsEmbeddedInList() { XCTAssertViewIntrospection(of: PlatformSecureField.self) { spies in let spy0 = spies[0] diff --git a/Tests/Tests/ViewTypes/SheetTests.swift b/Tests/Tests/ViewTypes/SheetTests.swift index 2c3e37cd..6607f96d 100644 --- a/Tests/Tests/ViewTypes/SheetTests.swift +++ b/Tests/Tests/ViewTypes/SheetTests.swift @@ -6,7 +6,6 @@ import XCTest @MainActor final class SheetTests: XCTestCase { #if os(iOS) - @MainActor func testSheet() throws { XCTAssertViewIntrospection(of: UIPresentationController.self) { spies in let spy0 = spies[0] @@ -23,7 +22,6 @@ final class SheetTests: XCTestCase { } } - @MainActor func testSheetAsSheetPresentationController() throws { guard #available(iOS 15, tvOS 15, *) else { throw XCTSkip() @@ -44,7 +42,6 @@ final class SheetTests: XCTestCase { } } #elseif os(tvOS) - @MainActor func testSheet() throws { XCTAssertViewIntrospection(of: UIPresentationController.self) { spies in let spy0 = spies[0] @@ -61,7 +58,6 @@ final class SheetTests: XCTestCase { } } #elseif os(visionOS) - @MainActor func testSheet() throws { XCTAssertViewIntrospection(of: UIPresentationController.self) { spies in let spy0 = spies[0] diff --git a/Tests/Tests/ViewTypes/SliderTests.swift b/Tests/Tests/ViewTypes/SliderTests.swift index 7b33a05c..cb2c6e9e 100644 --- a/Tests/Tests/ViewTypes/SliderTests.swift +++ b/Tests/Tests/ViewTypes/SliderTests.swift @@ -11,7 +11,6 @@ final class SliderTests: XCTestCase { typealias PlatformSlider = NSSlider #endif - @MainActor func testSlider() { XCTAssertViewIntrospection(of: PlatformSlider.self) { spies in let spy0 = spies[0] diff --git a/Tests/Tests/ViewTypes/StepperTests.swift b/Tests/Tests/ViewTypes/StepperTests.swift index 661a71e2..bf36df46 100644 --- a/Tests/Tests/ViewTypes/StepperTests.swift +++ b/Tests/Tests/ViewTypes/StepperTests.swift @@ -11,7 +11,6 @@ final class StepperTests: XCTestCase { typealias PlatformStepper = NSStepper #endif - @MainActor func testStepper() { XCTAssertViewIntrospection(of: PlatformStepper.self) { spies in let spy0 = spies[0] diff --git a/Tests/Tests/ViewTypes/TabViewTests.swift b/Tests/Tests/ViewTypes/TabViewTests.swift index bed2ef18..45b8db7f 100644 --- a/Tests/Tests/ViewTypes/TabViewTests.swift +++ b/Tests/Tests/ViewTypes/TabViewTests.swift @@ -11,7 +11,6 @@ final class TabViewTests: XCTestCase { typealias PlatformTabView = NSTabView #endif - @MainActor func testTabView() { XCTAssertViewIntrospection(of: PlatformTabView.self) { spies in let spy = spies[0] @@ -30,7 +29,6 @@ final class TabViewTests: XCTestCase { } } - @MainActor func testTabViewAsAncestor() { XCTAssertViewIntrospection(of: PlatformTabView.self) { spies in let spy = spies[0] diff --git a/Tests/Tests/ViewTypes/TabViewWithPageStyleTests.swift b/Tests/Tests/ViewTypes/TabViewWithPageStyleTests.swift index 3ad9d90a..3506ce46 100644 --- a/Tests/Tests/ViewTypes/TabViewWithPageStyleTests.swift +++ b/Tests/Tests/ViewTypes/TabViewWithPageStyleTests.swift @@ -10,7 +10,6 @@ final class TabViewWithPageStyleTests: XCTestCase { typealias PlatformTabViewWithPageStyle = UICollectionView #endif - @MainActor func testTabViewWithPageStyle() throws { guard #available(iOS 14, tvOS 14, *) else { throw XCTSkip() @@ -30,7 +29,6 @@ final class TabViewWithPageStyleTests: XCTestCase { } } - @MainActor func testTabViewWithPageStyleAsAncestor() throws { guard #available(iOS 14, tvOS 14, *) else { throw XCTSkip() diff --git a/Tests/Tests/ViewTypes/TableTests.swift b/Tests/Tests/ViewTypes/TableTests.swift index 9708d58c..2c13fe18 100644 --- a/Tests/Tests/ViewTypes/TableTests.swift +++ b/Tests/Tests/ViewTypes/TableTests.swift @@ -12,7 +12,6 @@ final class TableTests: XCTestCase { typealias PlatformTable = NSTableView #endif - @MainActor func testTable() throws { guard #available(iOS 16, macOS 12, *) else { throw XCTSkip() @@ -48,7 +47,6 @@ final class TableTests: XCTestCase { } } - @MainActor func testTableWithInsetStyle() throws { guard #available(iOS 16, macOS 12, *) else { throw XCTSkip() @@ -88,7 +86,6 @@ final class TableTests: XCTestCase { } #if os(macOS) - @MainActor func testTableWithBorderedStyle() throws { guard #available(macOS 12, *) else { throw XCTSkip() diff --git a/Tests/Tests/ViewTypes/TextEditorTests.swift b/Tests/Tests/ViewTypes/TextEditorTests.swift index 117b7f8f..17469009 100644 --- a/Tests/Tests/ViewTypes/TextEditorTests.swift +++ b/Tests/Tests/ViewTypes/TextEditorTests.swift @@ -12,7 +12,6 @@ final class TextEditorTests: XCTestCase { typealias PlatformTextEditor = NSTextView #endif - @MainActor func testTextEditor() throws { guard #available(iOS 14, macOS 11, *) else { throw XCTSkip() diff --git a/Tests/Tests/ViewTypes/TextFieldTests.swift b/Tests/Tests/ViewTypes/TextFieldTests.swift index d69e5ec7..fde6895e 100644 --- a/Tests/Tests/ViewTypes/TextFieldTests.swift +++ b/Tests/Tests/ViewTypes/TextFieldTests.swift @@ -10,7 +10,6 @@ final class TextFieldTests: XCTestCase { typealias PlatformTextField = NSTextField #endif - @MainActor func testTextField() { XCTAssertViewIntrospection(of: PlatformTextField.self) { spies in let spy0 = spies[0] @@ -54,7 +53,6 @@ final class TextFieldTests: XCTestCase { } } - @MainActor func testTextFieldsEmbeddedInList() { XCTAssertViewIntrospection(of: PlatformTextField.self) { spies in let spy0 = spies[0] diff --git a/Tests/Tests/ViewTypes/TextFieldWithVerticalAxisTests.swift b/Tests/Tests/ViewTypes/TextFieldWithVerticalAxisTests.swift index 77e897c7..b124e832 100644 --- a/Tests/Tests/ViewTypes/TextFieldWithVerticalAxisTests.swift +++ b/Tests/Tests/ViewTypes/TextFieldWithVerticalAxisTests.swift @@ -13,7 +13,6 @@ final class TextFieldWithVerticalAxisTests: XCTestCase { typealias PlatformTextField = NSTextField #endif - @MainActor func testTextFieldWithVerticalAxis() throws { guard #available(iOS 16, tvOS 16, macOS 13, *) else { throw XCTSkip() diff --git a/Tests/Tests/ViewTypes/ToggleTests.swift b/Tests/Tests/ViewTypes/ToggleTests.swift index 98e1c4aa..765d6ebb 100644 --- a/Tests/Tests/ViewTypes/ToggleTests.swift +++ b/Tests/Tests/ViewTypes/ToggleTests.swift @@ -11,7 +11,6 @@ final class ToggleTests: XCTestCase { typealias PlatformToggle = NSButton #endif - @MainActor func testToggle() { XCTAssertViewIntrospection(of: PlatformToggle.self) { spies in let spy0 = spies[0] diff --git a/Tests/Tests/ViewTypes/ToggleWithButtonStyleTests.swift b/Tests/Tests/ViewTypes/ToggleWithButtonStyleTests.swift index 131536f9..257a5ba4 100644 --- a/Tests/Tests/ViewTypes/ToggleWithButtonStyleTests.swift +++ b/Tests/Tests/ViewTypes/ToggleWithButtonStyleTests.swift @@ -10,7 +10,6 @@ final class ToggleWithButtonStyleTests: XCTestCase { typealias PlatformToggleWithButtonStyle = NSButton #endif - @MainActor func testToggleWithButtonStyle() throws { guard #available(macOS 12, *) else { throw XCTSkip() diff --git a/Tests/Tests/ViewTypes/ToggleWithCheckboxStyleTests.swift b/Tests/Tests/ViewTypes/ToggleWithCheckboxStyleTests.swift index c13b6aa4..499f2c07 100644 --- a/Tests/Tests/ViewTypes/ToggleWithCheckboxStyleTests.swift +++ b/Tests/Tests/ViewTypes/ToggleWithCheckboxStyleTests.swift @@ -9,7 +9,6 @@ final class ToggleWithCheckboxStyleTests: XCTestCase { typealias PlatformToggleWithCheckboxStyle = NSButton #endif - @MainActor func testToggleWithCheckboxStyle() throws { XCTAssertViewIntrospection(of: PlatformToggleWithCheckboxStyle.self) { spies in let spy0 = spies[0] diff --git a/Tests/Tests/ViewTypes/ToggleWithSwitchStyleTests.swift b/Tests/Tests/ViewTypes/ToggleWithSwitchStyleTests.swift index 2b1abf3d..6a3b7758 100644 --- a/Tests/Tests/ViewTypes/ToggleWithSwitchStyleTests.swift +++ b/Tests/Tests/ViewTypes/ToggleWithSwitchStyleTests.swift @@ -11,7 +11,6 @@ final class ToggleWithSwitchStyleTests: XCTestCase { typealias PlatformToggleWithSwitchStyle = NSSwitch #endif - @MainActor func testToggleWithSwitchStyle() { XCTAssertViewIntrospection(of: PlatformToggleWithSwitchStyle.self) { spies in let spy0 = spies[0] diff --git a/Tests/Tests/ViewTypes/VideoPlayerTests.swift b/Tests/Tests/ViewTypes/VideoPlayerTests.swift index 934738c2..c7019722 100644 --- a/Tests/Tests/ViewTypes/VideoPlayerTests.swift +++ b/Tests/Tests/ViewTypes/VideoPlayerTests.swift @@ -13,7 +13,6 @@ final class VideoPlayerTests: XCTestCase { typealias PlatformVideoPlayer = AVPlayerView #endif - @MainActor func testVideoPlayer() throws { guard #available(iOS 14, tvOS 14, macOS 11, *) else { throw XCTSkip() diff --git a/Tests/Tests/ViewTypes/ViewControllerTests.swift b/Tests/Tests/ViewTypes/ViewControllerTests.swift index 5f1fd87f..0f4d6d31 100644 --- a/Tests/Tests/ViewTypes/ViewControllerTests.swift +++ b/Tests/Tests/ViewTypes/ViewControllerTests.swift @@ -5,7 +5,6 @@ import XCTest @MainActor final class ViewControllerTests: XCTestCase { - @MainActor func testViewController() { XCTAssertViewIntrospection(of: PlatformViewController.self) { spies in let spy0 = spies[0] diff --git a/Tests/Tests/ViewTypes/ViewTests.swift b/Tests/Tests/ViewTypes/ViewTests.swift index 33a39507..b7457940 100644 --- a/Tests/Tests/ViewTypes/ViewTests.swift +++ b/Tests/Tests/ViewTypes/ViewTests.swift @@ -4,7 +4,6 @@ import XCTest @MainActor final class ViewTests: XCTestCase { - @MainActor func testView() { XCTAssertViewIntrospection(of: PlatformView.self) { spies in let spy0 = spies[0] diff --git a/Tests/Tests/ViewTypes/WindowTests.swift b/Tests/Tests/ViewTypes/WindowTests.swift index 1510ad05..cf474426 100644 --- a/Tests/Tests/ViewTypes/WindowTests.swift +++ b/Tests/Tests/ViewTypes/WindowTests.swift @@ -10,7 +10,6 @@ final class WindowTests: XCTestCase { typealias PlatformWindow = NSWindow #endif - @MainActor func testWindow() { XCTAssertViewIntrospection(of: PlatformWindow.self) { spies in let spy0 = spies[0]