Title: [166242] trunk/Tools
- Revision
- 166242
- Author
- aes...@apple.com
- Date
- 2014-03-25 12:48:15 -0700 (Tue, 25 Mar 2014)
Log Message
Add some debug logging to an API test that's failing on Mountain Lion.
* TestWebKitAPI/Tests/WebKit2Cocoa/Download.mm:
(-[DownloadDelegate _download:didReceiveResponse:]):
(-[DownloadDelegate _downloadDidFinish:]):
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (166241 => 166242)
--- trunk/Tools/ChangeLog 2014-03-25 19:17:54 UTC (rev 166241)
+++ trunk/Tools/ChangeLog 2014-03-25 19:48:15 UTC (rev 166242)
@@ -1,3 +1,11 @@
+2014-03-25 Andy Estes <aes...@apple.com>
+
+ Add some debug logging to an API test that's failing on Mountain Lion.
+
+ * TestWebKitAPI/Tests/WebKit2Cocoa/Download.mm:
+ (-[DownloadDelegate _download:didReceiveResponse:]):
+ (-[DownloadDelegate _downloadDidFinish:]):
+
2014-03-25 Anders Carlsson <ander...@apple.com>
Add goBack: and goForward: IBActions and move stopLoading: to a new WKIBActions category on WKWebView
Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/Download.mm (166241 => 166242)
--- trunk/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/Download.mm 2014-03-25 19:17:54 UTC (rev 166241)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/Download.mm 2014-03-25 19:48:15 UTC (rev 166242)
@@ -78,6 +78,8 @@
- (void)_download:(_WKDownload *)download didReceiveResponse:(NSURLResponse *)response
{
+ NSLog(@"[response sourceURL]: %@\n", [response URL]);
+ NSLog(@"[self sourceURL]: %@\n", [self sourceURL]);
EXPECT_EQ(_download, download);
EXPECT_TRUE(_expectedContentLength == 0);
EXPECT_TRUE(_receivedContentLength == 0);
@@ -106,6 +108,8 @@
- (void)_downloadDidFinish:(_WKDownload *)download
{
+ NSLog(@"_expectedContentLength: %lld\n", _expectedContentLength);
+ NSLog(@"_receivedContentLength: %llu\n", _receivedContentLength);
EXPECT_EQ(_download, download);
EXPECT_TRUE(_expectedContentLength == NSURLResponseUnknownLength || static_cast<uint64_t>(_expectedContentLength) == _receivedContentLength);
EXPECT_TRUE([[NSFileManager defaultManager] contentsEqualAtPath:_destinationPath andPath:[_sourceURL path]]);
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes