-
Notifications
You must be signed in to change notification settings - Fork 15
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
de76664
commit a4defb1
Showing
38 changed files
with
1,349 additions
and
306 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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,13 +1,16 @@ | ||
PrimaryText.LightMode : 0x212121DD | ||
SecondaryText.LightMode : 0x7575758A | ||
PrimaryLight.LightMode : 0xCFD8DCFF | ||
Divider.LightMode : 0xBDBDBDFF | ||
ButtonBackground.LightMode : 0x212121DD | ||
ButtonTitle.LightMode : 0xFFFFFFDD | ||
TestResultsTopViewColorTop : 0xE7E6E7FF | ||
TestResultsTopViewColorBottom : 0xD1D0D1FF | ||
|
||
PrimaryText.DarkMode : 0xFFFFFFDD | ||
SecondaryText.DarkMode : 0xFFFFFF8A | ||
PrimaryLight.DarkMode : 0xECEFF1FF | ||
Divider.DarkMode : 0xF5F5F5FF | ||
ButtonBackground.DarkMode : 0xFAFAFADD | ||
ButtonTitle.DarkMode : 0xFFFFFFDD | ||
PrimaryText.LightMode : 0x000000DE | ||
SecondaryText.LightMode : 0x757575DE | ||
PrimaryLight.LightMode : 0xCFD8DCDE | ||
Divider.LightMode : 0xBDBDBDFF | ||
ButtonBackground.LightMode : 0x212121DD | ||
ButtonTitle.LightMode : 0xFFFFFFDD | ||
|
||
PrimaryText.DarkMode : 0xFFFFFFDE | ||
SecondaryText.DarkMode : 0xFFFFFFDE | ||
PrimaryLight.DarkMode : 0xECEFF1DE | ||
Divider.DarkMode : 0xF5F5F5FF | ||
ButtonBackground.DarkMode : 0xFAFAFADD | ||
ButtonTitle.DarkMode : 0xFFFFFFDD |
14 changes: 14 additions & 0 deletions
14
FBSnapshotsViewer/Test Results/Models/TestResultsDiffMode.swift
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,14 @@ | ||
// | ||
// TestResultsDiffMode.swift | ||
// FBSnapshotsViewer | ||
// | ||
// Created by Anton Domashnev on 13.06.17. | ||
// Copyright © 2017 Anton Domashnev. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
enum TestResultsDiffMode: AutoEquatable { | ||
case diff | ||
case mouseOver | ||
} |
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
22 changes: 22 additions & 0 deletions
22
FBSnapshotsViewer/Test Results/Presenter/TestResultsDisplayInfo.swift
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,22 @@ | ||
// | ||
// TestResultsDisplayInfo.swift | ||
// FBSnapshotsViewer | ||
// | ||
// Created by Anton Domashnev on 17.06.17. | ||
// Copyright © 2017 Anton Domashnev. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
struct TestResultsDisplayInfo: AutoEquatable { | ||
let sectionInfos: [TestResultsSectionDisplayInfo] | ||
let topTitle: String | ||
let testResultsDiffMode: TestResultsDiffMode | ||
|
||
init(sectionInfos: [TestResultsSectionDisplayInfo] = [], testResultsDiffMode: TestResultsDiffMode = .mouseOver) { | ||
self.sectionInfos = sectionInfos | ||
self.testResultsDiffMode = testResultsDiffMode | ||
let numberOfTests = sectionInfos.reduce(0, { $0 + $1.itemInfos.count }) | ||
self.topTitle = "\(numberOfTests) Test Result" + (numberOfTests > 1 ? "s" : "") | ||
} | ||
} |
Oops, something went wrong.