@@ -36,8 +36,8 @@ class TestNSXMLDocument : XCTestCase {
36
36
( " test_processingInstruction " , test_processingInstruction) ,
37
37
( " test_parseXMLString " , test_parseXMLString) ,
38
38
( " test_prefixes " , test_prefixes) ,
39
- ( " test_validation_success " , test_validation_success) ,
40
- ( " test_validation_failure " , test_validation_failure) ,
39
+ // ("test_validation_success", test_validation_success),
40
+ // ("test_validation_failure", test_validation_failure),
41
41
( " test_dtd " , test_dtd) ,
42
42
( " test_documentWithDTD " , test_documentWithDTD) ,
43
43
( " test_dtd_attributes " , test_dtd_attributes)
@@ -56,7 +56,7 @@ class TestNSXMLDocument : XCTestCase {
56
56
( " test_processingInstruction " , test_processingInstruction) ,
57
57
( " test_parseXMLString " , test_parseXMLString) ,
58
58
( " test_prefixes " , test_prefixes) ,
59
- ( " test_validation_success " , test_validation_success) ,
59
+ // ("test_validation_success", test_validation_success),
60
60
// ("test_validation_failure", test_validation_failure),
61
61
( " test_dtd " , test_dtd) ,
62
62
// ("test_documentWithDTD", test_documentWithDTD),
@@ -289,6 +289,8 @@ class TestNSXMLDocument : XCTestCase {
289
289
XCTAssertEqual ( element. localName, " root " )
290
290
}
291
291
292
+ /*
293
+ * <rdar://31567922> Re-enable these tests in a way that does not depend on the internet.
292
294
func test_validation_success() throws {
293
295
let validString = "<?xml version=\"1.0\" standalone=\"yes\"?><!DOCTYPE foo [ <!ELEMENT foo (#PCDATA)> ]><foo>Hello world</foo>"
294
296
do {
@@ -330,7 +332,7 @@ class TestNSXMLDocument : XCTestCase {
330
332
} catch let error as NSError {
331
333
XCTAssert((error.userInfo[NSLocalizedDescriptionKey] as! String).contains("Element true was declared EMPTY this one has content"))
332
334
}
333
- }
335
+ }*/
334
336
335
337
func test_dtd( ) throws {
336
338
let node = XMLNode . dtdNode ( withXMLString: " <!ELEMENT foo (#PCDATA)> " ) as! XMLDTDNode
0 commit comments