This repository has been archived by the owner on Apr 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
81eb5e2
commit da742a0
Showing
7 changed files
with
52 additions
and
7 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 |
---|---|---|
|
@@ -13,6 +13,7 @@ struct AboutModel { | |
let slogan: String | ||
let description: String | ||
let author: String | ||
let review: String | ||
let authorTwitterUsername: String | ||
let remoteXiOSGitHub: String | ||
let remoteXiOSContributors: String | ||
|
@@ -30,7 +31,7 @@ struct AboutModel { | |
self.remoteXiOSContributors = "贡献者列表" | ||
self.remoteXiOSGitHub = "GitHub" | ||
self.author = "RemoteX iOS App 由 \(self.authorTwitterUsername) 创建,并带领 RemoteX iOS 社区共同开发,详细贡献者信息请点击查看\(self.remoteXiOSContributors)。\n欢迎前往社区 \(self.remoteXiOSGitHub) 主页围观源代码。" | ||
|
||
self.review = "喜欢“RemoteX”吗?\n请前往 \(Constants.AppStore.TitleText) 为我们评分。" | ||
self.remoteXWebSite = "https://remotex.ooclab.org" | ||
self.remoteXSlack = "https://remotex.slack.com" | ||
self.remoteXEmail = "[email protected]" | ||
|
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 |
---|---|---|
|
@@ -25,13 +25,14 @@ class AboutNodeTests: FBSnapshotTestCase { | |
XCTAssert(aboutNode.subnodes[0].isKind(of: ASScrollNode.self)) | ||
|
||
let scrollNode = aboutNode.subnodes[0] | ||
XCTAssertEqual(scrollNode.subnodes.count, 6) | ||
XCTAssertEqual(scrollNode.subnodes.count, 7) | ||
let titleNode = scrollNode.subnodes[0] as! ASTextNode | ||
let sloganNode = scrollNode.subnodes[1] as! ASTextNode | ||
let descriptionNode = scrollNode.subnodes[2] as! ASTextNode | ||
let authorNode = scrollNode.subnodes[3] as! ASTextNode | ||
let linkInfoNode = scrollNode.subnodes[4] as! ASTextNode | ||
let versionNode = scrollNode.subnodes[5] as! ASTextNode | ||
let reviewNode = scrollNode.subnodes[4] as! ASTextNode | ||
let linkInfoNode = scrollNode.subnodes[5] as! ASTextNode | ||
let versionNode = scrollNode.subnodes[6] as! ASTextNode | ||
|
||
XCTAssertNotNil(titleNode) | ||
XCTAssertEqual(titleNode.view.frame, CGRect.init(x: 0, y: 0, width: 0, height: 0)) | ||
|
@@ -58,6 +59,11 @@ class AboutNodeTests: FBSnapshotTestCase { | |
let authorText = "RemoteX iOS App 由 @ArchimboldiMao 创建,并带领 RemoteX iOS 社区共同开发,详细贡献者信息请点击查看贡献者列表。\n欢迎前往社区 GitHub 主页围观源代码。" | ||
XCTAssertEqual(authorNode.attributedText?.string, authorText) | ||
|
||
XCTAssertNotNil(reviewNode) | ||
XCTAssertEqual(reviewNode.view.frame, CGRect.init(x: 0, y: 0, width: 0, height: 0)) | ||
let reviewText = "喜欢“RemoteX”吗?\n请前往 App Store 为我们评分。" | ||
XCTAssertEqual(reviewNode.attributedText?.string, reviewText) | ||
|
||
XCTAssertNotNil(linkInfoNode) | ||
XCTAssertEqual(linkInfoNode.view.frame, CGRect.init(x: 0, y: 0, width: 0, height: 0)) | ||
let linkInfoText = "联系方式\n网 站:https://remotex.ooclab.org\nSlack:https://remotex.slack.com\n邮 件:[email protected]\nqq群: remotex 633498747\n微信群: 加 lijian_gnu 拉入群" | ||
|
Binary file modified
BIN
+14.7 KB
(110%)
...OSTests/View/ReferenceImages_64/remotex_iOSTests.AboutNodeTests/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+14.7 KB
(110%)
...sts/View/ReferenceImages_iOS_10/remotex_iOSTests.AboutNodeTests/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.