Skip to content

Commit

Permalink
Undo logging changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
samsymons committed Oct 29, 2024
1 parent 94d7a1c commit edfdc60
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,7 @@ class ClickToLoadBlockingTests: XCTestCase {
mockWebsite = MockWebsite(resources: [resource])

schemeHandler.reset()
schemeHandler.requestHandlers[siteURL] = { url in
os_log("DEBUG: Returning request handler for %s", url.absoluteString)
schemeHandler.requestHandlers[siteURL] = { _ in
return self.mockWebsite.htmlRepresentation.data(using: .utf8)!
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import XCTest
import WebKit
import os.log

final class TestSchemeHandler: NSObject, WKURLSchemeHandler {
typealias RequestResponse = (URL) -> Data
Expand Down Expand Up @@ -48,8 +47,6 @@ final class TestSchemeHandler: NSObject, WKURLSchemeHandler {

let data = handler(url)

os_log("DEBUG: WebView loading URL scheme task with URL: %s, data length: %d", url.absoluteString, data.count)

let response = URLResponse(url: url,
mimeType: "text/html",
expectedContentLength: data.count,
Expand Down

0 comments on commit edfdc60

Please sign in to comment.