forked from square/Blueprint
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added
layoutMode
to BlueprintViewRenderMetrics
to expose which la…
…yout mode was used to render a Blueprint view. (square#452)
- Loading branch information
1 parent
5dfe4b9
commit 75763cc
Showing
4 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import XCTest | ||
@testable import BlueprintUI | ||
|
||
class LayoutModeTests: XCTestCase { | ||
|
||
func testName() { | ||
// These names may end up being propagated as analytics properties, | ||
// so be aware that renaming them can impact existing queries/reports. | ||
XCTAssertEqual(LayoutMode.caffeinated.name, "Caffeinated") | ||
XCTAssertEqual(LayoutMode.legacy.name, "Legacy") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters