Changeset 150472 in webkit
- Timestamp:
- May 21, 2013, 1:21:24 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/platform/wk2/TestExpectations (modified) (2 diffs)
-
Tools/ChangeLog (modified) (1 diff)
-
Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp (modified) (15 diffs)
-
Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r150471 r150472 1 2013-05-21 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, rolling out r150386 and r150397. 4 http://trac.webkit.org/changeset/150386 5 http://trac.webkit.org/changeset/150397 6 https://bugs.webkit.org/show_bug.cgi?id=116572 7 8 Broke a test; Alex is going to try again later. (Requested by 9 thorton on #webkit). 10 11 * platform/wk2/TestExpectations: 12 1 13 2013-05-20 Ryosuke Niwa <rniwa@webkit.org> 2 14 -
trunk/LayoutTests/platform/wk2/TestExpectations
r150413 r150472 275 275 webkit.org/b/114074 fast/loader/willsendrequest-returns-null-for-memory-cache-load.html [ Failure ] 276 276 277 webkit.org/b/116491 loader/go-back-cached-main-resource.html [ Failure ]278 279 277 ### END OF (1) Classified failures with bug reports 280 278 ######################################## … … 463 461 # Unexpected redirection happens. 464 462 http/tests/loading/redirect-methods.html 463 464 # Should pass now but need to be checked first. 465 platform/mac/fast/loader/file-url-mimetypes-2.html 466 platform/mac/fast/loader/file-url-mimetypes-3.html 467 platform/mac/fast/loader/file-url-mimetypes.html 468 webarchive/loading/cache-expired-subresource.html 469 webarchive/loading/test-loading-archive.html 470 webarchive/loading/test-loading-archive-subresource-null-mimetype.html 465 471 466 472 # Should pass now on ports other than EFL and GTK. -
trunk/Tools/ChangeLog
r150461 r150472 1 2013-05-21 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, rolling out r150386 and r150397. 4 http://trac.webkit.org/changeset/150386 5 http://trac.webkit.org/changeset/150397 6 https://bugs.webkit.org/show_bug.cgi?id=116572 7 8 Broke a test; Alex is going to try again later. (Requested by 9 thorton on #webkit). 10 11 * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp: 12 (WTR::pathSuitableForTestResult): 13 (WTR::dumpRequestDescriptionSuitableForTestResult): 14 (WTR::dumpResponseDescriptionSuitableForTestResult): 15 (WTR::InjectedBundlePage::willPerformClientRedirectForFrame): 16 (WTR::InjectedBundlePage::didInitiateLoadForResource): 17 (WTR::InjectedBundlePage::willSendRequestForFrame): 18 (WTR::InjectedBundlePage::didReceiveResponseForResource): 19 * WebKitTestRunner/InjectedBundle/InjectedBundlePage.h: 20 (InjectedBundlePage): 21 1 22 2013-05-21 Ryosuke Niwa <rniwa@webkit.org> 2 23 -
trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp
r150386 r150472 236 236 static const char divider = '/'; 237 237 238 static inline WTF::String pathSuitableForTestResult(WKURLRef fileUrl , WKURLRef mainFrameURL)238 static inline WTF::String pathSuitableForTestResult(WKURLRef fileUrl) 239 239 { 240 240 if (!fileUrl) … … 246 246 247 247 String pathString = toWTFString(adoptWK(WKURLCopyPath(fileUrl))); 248 String mainFrameURLPathString = toWTFString(adoptWK(WKURLCopyPath(mainFrameURL))); 249 String basePath = mainFrameURLPathString.substring(0, mainFrameURLPathString.reverseFind(divider)+1); 250 251 if (pathString.startsWith(basePath)) 252 return pathString.substring(basePath.length()); 253 return toWTFString(adoptWK(WKURLCopyString(fileUrl))); 248 StringBuilder stringBuilder; 249 250 // Remove the leading path from file urls. 251 const size_t indexBaseName = pathString.reverseFind(divider); 252 if (indexBaseName != notFound) { 253 const size_t indexDirName = pathString.reverseFind(divider, indexBaseName - 1); 254 if (indexDirName != notFound) 255 stringBuilder.append(pathString.substring(indexDirName + 1, indexBaseName - indexDirName - 1)); 256 stringBuilder.append(divider); 257 stringBuilder.append(pathString.substring(indexBaseName + 1)); // Filename. 258 } else { 259 stringBuilder.append(divider); 260 stringBuilder.append(pathString); // Return "/pathString". 261 } 262 263 return stringBuilder.toString(); 254 264 } 255 265 … … 484 494 } 485 495 486 static inline void dumpRequestDescriptionSuitableForTestResult(WKURLRequestRef request, StringBuilder& stringBuilder , WKURLRef mainFrameURL)496 static inline void dumpRequestDescriptionSuitableForTestResult(WKURLRequestRef request, StringBuilder& stringBuilder) 487 497 { 488 498 WKRetainPtr<WKURLRef> url = adoptWK(WKURLRequestCopyURL(request)); … … 491 501 492 502 stringBuilder.appendLiteral("<NSURLRequest URL "); 493 stringBuilder.append(pathSuitableForTestResult(url.get() , mainFrameURL));503 stringBuilder.append(pathSuitableForTestResult(url.get())); 494 504 stringBuilder.appendLiteral(", main document URL "); 495 505 stringBuilder.append(urlSuitableForTestResult(firstParty.get())); … … 504 514 } 505 515 506 static inline void dumpResponseDescriptionSuitableForTestResult(WKURLResponseRef response, StringBuilder& stringBuilder , WKURLRef mainFrameURL)516 static inline void dumpResponseDescriptionSuitableForTestResult(WKURLResponseRef response, StringBuilder& stringBuilder) 507 517 { 508 518 WKRetainPtr<WKURLRef> url = adoptWK(WKURLResponseCopyURL(response)); … … 512 522 } 513 523 stringBuilder.appendLiteral("<NSURLResponse "); 514 stringBuilder.append(pathSuitableForTestResult(url.get() , mainFrameURL));524 stringBuilder.append(pathSuitableForTestResult(url.get())); 515 525 stringBuilder.appendLiteral(", http status code "); 516 526 stringBuilder.appendNumber(WKURLResponseHTTPStatusCode(response)); … … 605 615 void InjectedBundlePage::willPerformClientRedirectForFrame(WKBundlePageRef page, WKBundleFrameRef frame, WKURLRef url, double delay, double date, const void* clientInfo) 606 616 { 607 static_cast<InjectedBundlePage*>(const_cast<void*>(clientInfo))->willPerformClientRedirectForFrame( page,frame, url, delay, date);617 static_cast<InjectedBundlePage*>(const_cast<void*>(clientInfo))->willPerformClientRedirectForFrame(frame, url, delay, date); 608 618 } 609 619 … … 990 1000 } 991 1001 992 void InjectedBundlePage::willPerformClientRedirectForFrame(WKBundle PageRef page, WKBundleFrameRef frame, WKURLRef url, double delay, double date)1002 void InjectedBundlePage::willPerformClientRedirectForFrame(WKBundleFrameRef frame, WKURLRef url, double delay, double date) 993 1003 { 994 1004 if (!InjectedBundle::shared().isTestRunning()) … … 999 1009 1000 1010 StringBuilder stringBuilder; 1001 WKRetainPtr<WKURLRef> mainFrameURL = adoptWK(WKBundleFrameCopyURL(WKBundlePageGetMainFrame(page)));1002 1011 dumpFrameDescriptionSuitableForTestResult(frame, stringBuilder); 1003 1012 stringBuilder.appendLiteral(" - willPerformClientRedirectToURL: "); 1004 stringBuilder.append(pathSuitableForTestResult(url , mainFrameURL.get()));1013 stringBuilder.append(pathSuitableForTestResult(url)); 1005 1014 stringBuilder.appendLiteral(" \n"); 1006 1015 InjectedBundle::shared().outputText(stringBuilder.toString()); … … 1057 1066 } 1058 1067 1059 void InjectedBundlePage::didInitiateLoadForResource(WKBundlePageRef page, WKBundleFrameRef, uint64_t identifier, WKURLRequestRef request, bool)1068 void InjectedBundlePage::didInitiateLoadForResource(WKBundlePageRef, WKBundleFrameRef, uint64_t identifier, WKURLRequestRef request, bool) 1060 1069 { 1061 1070 if (!InjectedBundle::shared().isTestRunning()) … … 1066 1075 1067 1076 WKRetainPtr<WKURLRef> url = adoptWK(WKURLRequestCopyURL(request)); 1068 WKRetainPtr<WKURLRef> mainFrameURL = adoptWK(WKBundleFrameCopyURL(WKBundlePageGetMainFrame(page))); 1069 assignedUrlsCache.add(identifier, pathSuitableForTestResult(url.get(), mainFrameURL.get())); 1077 assignedUrlsCache.add(identifier, pathSuitableForTestResult(url.get())); 1070 1078 } 1071 1079 … … 1082 1090 } 1083 1091 1084 WKURLRequestRef InjectedBundlePage::willSendRequestForFrame(WKBundlePageRef page, WKBundleFrameRef frame, uint64_t identifier, WKURLRequestRef request, WKURLResponseRef response)1092 WKURLRequestRef InjectedBundlePage::willSendRequestForFrame(WKBundlePageRef, WKBundleFrameRef frame, uint64_t identifier, WKURLRequestRef request, WKURLResponseRef response) 1085 1093 { 1086 1094 if (InjectedBundle::shared().isTestRunning() … … 1089 1097 dumpResourceURL(identifier, stringBuilder); 1090 1098 stringBuilder.appendLiteral(" - willSendRequest "); 1091 WKRetainPtr<WKURLRef> mainFrameURL = adoptWK(WKBundleFrameCopyURL(WKBundlePageGetMainFrame(page))); 1092 dumpRequestDescriptionSuitableForTestResult(request, stringBuilder, mainFrameURL.get()); 1099 dumpRequestDescriptionSuitableForTestResult(request, stringBuilder); 1093 1100 stringBuilder.appendLiteral(" redirectResponse "); 1094 dumpResponseDescriptionSuitableForTestResult(response, stringBuilder , mainFrameURL.get());1101 dumpResponseDescriptionSuitableForTestResult(response, stringBuilder); 1095 1102 stringBuilder.append('\n'); 1096 1103 InjectedBundle::shared().outputText(stringBuilder.toString()); … … 1139 1146 } 1140 1147 1141 void InjectedBundlePage::didReceiveResponseForResource(WKBundlePageRef page, WKBundleFrameRef, uint64_t identifier, WKURLResponseRef response)1148 void InjectedBundlePage::didReceiveResponseForResource(WKBundlePageRef, WKBundleFrameRef, uint64_t identifier, WKURLResponseRef response) 1142 1149 { 1143 1150 if (!InjectedBundle::shared().isTestRunning()) … … 1148 1155 dumpResourceURL(identifier, stringBuilder); 1149 1156 stringBuilder.appendLiteral(" - didReceiveResponse "); 1150 WKRetainPtr<WKURLRef> mainFrameURL = adoptWK(WKBundleFrameCopyURL(WKBundlePageGetMainFrame(page))); 1151 dumpResponseDescriptionSuitableForTestResult(response, stringBuilder, mainFrameURL.get()); 1157 dumpResponseDescriptionSuitableForTestResult(response, stringBuilder); 1152 1158 stringBuilder.append('\n'); 1153 1159 InjectedBundle::shared().outputText(stringBuilder.toString()); -
trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.h
r150386 r150472 87 87 void didClearWindowForFrame(WKBundleFrameRef, WKBundleScriptWorldRef); 88 88 void didCancelClientRedirectForFrame(WKBundleFrameRef); 89 void willPerformClientRedirectForFrame(WKBundle PageRef, WKBundleFrameRef, WKURLRef, double delay, double date);89 void willPerformClientRedirectForFrame(WKBundleFrameRef, WKURLRef url, double delay, double date); 90 90 void didSameDocumentNavigationForFrame(WKBundleFrameRef, WKSameDocumentNavigationType); 91 91 void didFinishDocumentLoadForFrame(WKBundleFrameRef);
Note:
See TracChangeset
for help on using the changeset viewer.