1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- import Foundation
- enum AutoTestStatus : Int {
-
- case Normal = 0
-
- case Wait = 1
-
- case Process = 2
-
- case Finished = 3
-
- }
- protocol AutoTestProtocal : NSObjectProtocol {
-
- func fileType() -> String
- func type() -> String
- func name() -> String
- func extention() -> String
- func params() -> NSDictionary
-
- func keys() -> NSArray
- func selectedKeys() -> NSArray
-
- func setSelectedKeys(_ keys:NSArray)
-
- func needCompareTest() -> Bool
-
- func autoTest(_ complention:@escaping (_ object:AutoTest, _ report:NSAttributedString?) -> ())
-
- func testReport() -> NSAttributedString?
-
-
- func degree() -> Double
- func degreeOfFile(_ fileName:String) -> Double
- func degreeOfFile(_ fileName:String, refFilePath:String?) -> Double
-
- func compareFiles() -> NSArray?
- func compareFiles(_ fileName: String) -> NSArray?
-
-
-
- func canUpdateRefImage() -> Bool
- func updateRefImage()
- func canUpdateRefImage(_ fileName:String) -> Bool
- func updateRefImage(_ fileName:String)
-
- var testlog : (_ msg:String, _ progress:Double) -> () { get }
-
- func status() -> AutoTestStatus
- }
|