FontAutoTest.swift 840 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // FontAutoTest.swift
  3. // KdanAuto
  4. //
  5. // Created by 朱东勇 on 2022/11/25.
  6. //
  7. import Foundation
  8. class FontAutoTest : AutoTest {
  9. //
  10. // override func type() -> String {
  11. // return "PDFConvert_Font_Auto_Test"
  12. // }
  13. override func name() -> String {
  14. return _name
  15. }
  16. override func keys() -> NSArray {
  17. return ["字体名称", "字体大小", "字体样式", "快照"]
  18. }
  19. override class func shared() -> AutoTest? {
  20. return FontAutoTest()
  21. }
  22. // Auto Test refrence Check File
  23. override func autoTest(_ complention:@escaping (_ object:AutoTest, _ report:NSAttributedString?) -> ()) {
  24. clearCacheFiles()
  25. _status = .Process
  26. _status = .Finished
  27. complention(self, reportString)
  28. }
  29. }