3
3
file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
4
5
5
import XCTest
6
- class DesktopModeTests : BaseTestCase {
6
+ class DesktopModeTests : IphoneOnlyTestCase {
7
7
8
8
func testClearPrivateData( ) {
9
+ if skipPlatform { return }
10
+
9
11
navigator. openURL ( path ( forTestPage: " test-user-agent.html " ) )
10
12
waitUntilPageLoad ( )
11
13
XCTAssert ( app. webViews. staticTexts. matching ( identifier: " MOBILE_UA " ) . count > 0 )
@@ -28,6 +30,8 @@ class DesktopModeTests: BaseTestCase {
28
30
}
29
31
30
32
func testSameHostInMultipleTabs( ) {
33
+ if skipPlatform { return }
34
+
31
35
navigator. openURL ( path ( forTestPage: " test-user-agent.html " ) )
32
36
waitUntilPageLoad ( )
33
37
XCTAssert ( app. webViews. staticTexts. matching ( identifier: " MOBILE_UA " ) . count > 0 )
@@ -56,6 +60,8 @@ class DesktopModeTests: BaseTestCase {
56
60
}
57
61
58
62
func testPrivateModeOffAlsoRemovesFromNormalMode( ) {
63
+ if skipPlatform { return }
64
+
59
65
navigator. openURL ( path ( forTestPage: " test-user-agent.html " ) )
60
66
waitUntilPageLoad ( )
61
67
XCTAssert ( app. webViews. staticTexts. matching ( identifier: " MOBILE_UA " ) . count > 0 )
@@ -84,6 +90,8 @@ class DesktopModeTests: BaseTestCase {
84
90
}
85
91
86
92
func testPrivateModeOnHasNoAffectOnNormalMode( ) {
93
+ if skipPlatform { return }
94
+
87
95
navigator. openURL ( path ( forTestPage: " test-user-agent.html " ) )
88
96
waitUntilPageLoad ( )
89
97
XCTAssert ( app. webViews. staticTexts. matching ( identifier: " MOBILE_UA " ) . count > 0 )
0 commit comments