c73767a0bc
This patch makes `HTMLOutputFormat` correctly escape all < and > characters that occur in source code. Otherwise, a web browser rendering the resulting HTML will interpret those characters as tags.
23 lines
606 B
Swift
23 lines
606 B
Swift
import Foundation
|
|
import XCTest
|
|
|
|
/// Abstract base class for all Splash tests
|
|
class SplashTestCase: XCTestCase {
|
|
#if !os(Linux)
|
|
func testHasLinuxVerificationTest() {
|
|
let concreteType = type(of: self)
|
|
|
|
guard concreteType != SyntaxHighlighterTestCase.self else {
|
|
return
|
|
}
|
|
|
|
guard concreteType != SplashTestCase.self else {
|
|
return
|
|
}
|
|
|
|
XCTAssertTrue(concreteType.testNames.contains("testAllTestsRunOnLinux"),
|
|
"\(concreteType) doesn't have a test that verifies that its tests run on Linux")
|
|
}
|
|
#endif
|
|
}
|