@@ -36,8 +36,6 @@ class FeatureFlagManagerTests: XCTestCase, FeatureFlaggable {
36
36
XCTAssertTrue ( featureFlags. isFeatureEnabled ( . bottomSearchBar, checking: . userOnly) )
37
37
XCTAssertTrue ( featureFlags. isFeatureEnabled ( . inactiveTabs, checking: . buildOnly) )
38
38
XCTAssertTrue ( featureFlags. isFeatureEnabled ( . inactiveTabs, checking: . userOnly) )
39
- XCTAssertTrue ( featureFlags. isFeatureEnabled ( . jumpBackIn, checking: . buildOnly) )
40
- XCTAssertTrue ( featureFlags. isFeatureEnabled ( . jumpBackIn, checking: . userOnly) )
41
39
XCTAssertTrue ( featureFlags. isFeatureEnabled ( . reportSiteIssue, checking: . buildOnly) )
42
40
XCTAssertTrue ( featureFlags. isFeatureEnabled ( . reportSiteIssue, checking: . userOnly) )
43
41
}
@@ -46,22 +44,6 @@ class FeatureFlagManagerTests: XCTestCase, FeatureFlaggable {
46
44
XCTAssertEqual ( featureFlags. getCustomState ( for: . searchBarPosition) , SearchBarPosition . top)
47
45
}
48
46
49
- // Changing the prefs manually, to make sure settings are respected through
50
- // the FFMs interface
51
- func testManagerRespectsProfileChangesForBoolSettings( ) {
52
- let mockProfile = MockProfile ( databasePrefix: " FeatureFlagsManagerTests_ " )
53
- mockProfile. prefs. clearAll ( )
54
- LegacyFeatureFlagsManager . shared. initializeDeveloperFeatures ( with: mockProfile)
55
-
56
- XCTAssertTrue ( featureFlags. isFeatureEnabled ( . jumpBackIn, checking: . buildOnly) )
57
- XCTAssertTrue ( featureFlags. isFeatureEnabled ( . jumpBackIn, checking: . userOnly) )
58
- // Changing the prefs manually, to make sure settings are respected through
59
- // the FFMs interface
60
- mockProfile. prefs. setBool ( false , forKey: PrefsKeys . FeatureFlags. JumpBackInSection)
61
- XCTAssertTrue ( featureFlags. isFeatureEnabled ( . jumpBackIn, checking: . buildOnly) )
62
- XCTAssertFalse ( featureFlags. isFeatureEnabled ( . jumpBackIn, checking: . userOnly) )
63
- }
64
-
65
47
// Changing the prefs manually, to make sure settings are respected through
66
48
// the FFMs interface
67
49
func testManagerRespectsProfileChangesForCustomSettings( ) {
@@ -76,14 +58,6 @@ class FeatureFlagManagerTests: XCTestCase, FeatureFlaggable {
76
58
XCTAssertEqual ( featureFlags. getCustomState ( for: . searchBarPosition) , SearchBarPosition . bottom)
77
59
}
78
60
79
- func testManagerInterfaceForUpdatingBoolFlags( ) {
80
- XCTAssertTrue ( featureFlags. isFeatureEnabled ( . jumpBackIn, checking: . buildOnly) )
81
- XCTAssertTrue ( featureFlags. isFeatureEnabled ( . jumpBackIn, checking: . userOnly) )
82
- featureFlags. set ( feature: . jumpBackIn, to: false )
83
- XCTAssertTrue ( featureFlags. isFeatureEnabled ( . jumpBackIn, checking: . buildOnly) )
84
- XCTAssertFalse ( featureFlags. isFeatureEnabled ( . jumpBackIn, checking: . userOnly) )
85
- }
86
-
87
61
func testManagerInterfaceForUpdatingCustomFlags( ) {
88
62
// Search Bar
89
63
XCTAssertEqual ( featureFlags. getCustomState ( for: . searchBarPosition) , SearchBarPosition . top)
0 commit comments