Changeset 76092 in webkit
- Timestamp:
- Jan 18, 2011 7:16:35 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/editing/pasteboard/copy-null-characters.html
r75861 r76092 19 19 sel.setPosition(destinationRichText, 0); 20 20 document.execCommand("Paste"); 21 alert(destinationRichText.innerHTML); 21 22 22 23 var destinationPlainText = document.getElementById("destination-plain-text"); … … 30 31 JSON.stringify(expectedPlainTextValue) + " but found " + 31 32 JSON.stringify(destinationPlainText.value) + ")."; 33 Markup.dump(document.body); 34 Markup.notifyDone(); 32 35 return; 33 36 } … … 53 56 JSON.stringify(expectedPlainTextValue2) + " but found " + 54 57 JSON.stringify(destinationPlainText.value) + ")."; 58 Markup.dump(document.body); 59 Markup.notifyDone(); 55 60 return; 56 61 } -
trunk/LayoutTests/fast/events/scroll-event-does-not-bubble.html
r75555 r76092 15 15 // Don't call notifyDone straight away, in case there's another scroll event coming/bubbling. 16 16 doneTimeout = setTimeout(function() { 17 18 // Don't pollute the test result with nonsense. 19 document.getElementById('container').innerHTML = ''; 17 20 if (window.layoutTestController) 18 21 layoutTestController.notifyDone(); … … 33 36 window.onscroll = windowScrolled; 34 37 div.scrollByLines(1); 35 36 // Don't pollute the test result with nonsense.37 div.innerHTML = '';38 38 } 39 39 -
trunk/LayoutTests/platform/mac-wk2/Skipped
r75934 r76092 977 977 # WebKit2 needs layoutTestController.overridePreference 978 978 # <https://bugs.webkit.org/show_bug.cgi?id=42197> 979 http/tests/navigation/go-back-to-error-page.html 979 980 http/tests/navigation/ping-cookie.html 980 981 plugins/application-plugin-plugins-disabled.html … … 1085 1086 # Pasteboard doesn't work in WebKit2 1086 1087 # <https://bugs.webkit.org/show_bug.cgi?id=42317> 1088 editing/pasteboard/copy-null-characters.html 1087 1089 editing/execCommand/4128080-2.html 1088 1090 editing/execCommand/5939887.html … … 2334 2336 http/tests/local/link-stylesheet-load-order.html 2335 2337 http/tests/local/link-stylesheet-load-order-preload.html 2338 2339 2340 # Transitions sometimes don't stop when they should 2341 transitions/hang-with-bad-transition-list.html 2342 transitions/remove-transition-style.html 2343 transitions/repeated-firing-background-color.html 2344 transitions/zero-duration-with-non-zero-delay-end.html 2345 2346 2347 # CSSValue and CSSPrimitiveValue prototypes are wrong 2348 fast/dom/global-constructors.html 2349 2350 # WebKit2 doesn't support tiled layers 2351 compositing/tiling/huge-layer-resize.html 2352 2353 # Unexplained plugin failures 2354 plugins/destroy-reentry.html 2355 platform/mac/plugins/testplugin-onnew-onpaint.html 2356 plugins/destroy-stream-twice.html 2357 plugins/embed-inside-object.html 2358 plugins/no-mime-with-valid-extension.html -
trunk/LayoutTests/transitions/remove-transition-style.html
r42410 r76092 52 52 { 53 53 var box = document.getElementById('box'); 54 box.addEventListener("webkitTransitionEnd", function() { alert("end"); }, false); 54 55 box.className = 'animated'; 55 56 window.setTimeout(function() { -
trunk/Source/WebKit2/ChangeLog
r76089 r76092 1 2011-01-18 Maciej Stachowiak <mjs@apple.com> 2 3 Reviewed by Sam Weinig. 4 5 WebKitTestRunner should track loading more like DumpRenderTree 6 https://bugs.webkit.org/show_bug.cgi?id=52692 7 8 Relax the message check in didSaveFrameToPageCache a bit more, since 9 layout tests were still hitting the old one. 10 11 * UIProcess/WebPageProxy.cpp: 12 (WebKit::isDisconnectedFrame): 13 (WebKit::WebPageProxy::didSaveFrameToPageCache): 14 1 15 2011-01-18 Brady Eidson <beidson@apple.com> 2 16 -
trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp
r76089 r76092 1083 1083 } 1084 1084 1085 static bool isDisconnectedFrame(WebFrameProxy* frame) 1086 { 1087 return !frame->page() || !frame->page()->mainFrame() || !frame->isDescendantOf(frame->page()->mainFrame()); 1088 } 1089 1085 1090 void WebPageProxy::didSaveFrameToPageCache(uint64_t frameID) 1086 1091 { … … 1090 1095 MESSAGE_CHECK(subframe); 1091 1096 1092 if ( !subframe->parentFrame())1097 if (isDisconnectedFrame(subframe)) 1093 1098 return; 1094 1099 -
trunk/Tools/ChangeLog
r76081 r76092 1 2011-01-18 Maciej Stachowiak <mjs@apple.com> 2 3 Reviewed by Sam Weinig. 4 5 WebKitTestRunner should track loading more like DumpRenderTree 6 https://bugs.webkit.org/show_bug.cgi?id=52692 7 8 Change load tracking to track the current top loading frame, in the manner of DumpRenderTree. 9 This makes some tests that call notifyDone multiple times pass. 10 11 * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp: 12 (WTR::InjectedBundle::InjectedBundle): 13 (WTR::InjectedBundle::done): 14 * WebKitTestRunner/InjectedBundle/InjectedBundle.h: 15 (WTR::InjectedBundle::topLoadingFrame): 16 (WTR::InjectedBundle::setTopLoadingFrame): 17 * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp: 18 (WTR::InjectedBundlePage::InjectedBundlePage): 19 (WTR::InjectedBundlePage::stopLoading): 20 (WTR::InjectedBundlePage::didStartProvisionalLoadForFrame): 21 (WTR::InjectedBundlePage::didFailProvisionalLoadWithErrorForFrame): 22 (WTR::InjectedBundlePage::didFinishLoadForFrame): 23 (WTR::InjectedBundlePage::didFailLoadWithErrorForFrame): 24 * WebKitTestRunner/InjectedBundle/InjectedBundlePage.h: 25 * WebKitTestRunner/InjectedBundle/LayoutTestController.cpp: 26 (WTR::LayoutTestController::notifyDone): 27 * WebKitTestRunner/TestController.cpp: 28 (WTR::TestController::didReceiveMessageFromInjectedBundle): 29 1 30 2011-01-18 Mihai Parparita <mihaip@chromium.org> 2 31 -
trunk/Tools/DumpRenderTree/mac/LayoutTestControllerMac.mm
r73938 r76092 267 267 void LayoutTestController::notifyDone() 268 268 { 269 puts("notifyDone"); 270 269 271 if (m_waitToDump && !topLoadingFrame && !WorkQueue::shared()->count()) 270 272 dump(); -
trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.cpp
r75587 r76092 48 48 InjectedBundle::InjectedBundle() 49 49 : m_bundle(0) 50 , m_topLoadingFrame(0) 50 51 , m_state(Idle) 51 52 { … … 162 163 163 164 page()->stopLoading(); 165 setTopLoadingFrame(0); 164 166 165 167 WKRetainPtr<WKStringRef> doneMessageName(AdoptWK, WKStringCreateWithUTF8CString("Done")); -
trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.h
r73066 r76092 66 66 bool isTestRunning() { return m_state == Testing; } 67 67 68 WKBundleFrameRef topLoadingFrame() { return m_topLoadingFrame; } 69 void setTopLoadingFrame(WKBundleFrameRef frame) { m_topLoadingFrame = frame; } 70 68 71 private: 69 72 InjectedBundle(); … … 90 93 RefPtr<EventSendingController> m_eventSendingController; 91 94 95 WKBundleFrameRef m_topLoadingFrame; 96 92 97 std::ostringstream m_outputStream; 93 98 -
trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp
r75826 r76092 38 38 #include <WebKit2/WKBundlePagePrivate.h> 39 39 40 #include <WebKit2/WKStringCF.h> 41 40 42 using namespace std; 41 43 … … 169 171 : m_page(page) 170 172 , m_world(AdoptWK, WKBundleScriptWorldCreateWorld()) 171 , m_isLoading(false)172 173 { 173 174 WKBundlePageLoaderClient loaderClient = { … … 234 235 { 235 236 WKBundlePageStopLoading(m_page); 236 m_isLoading = false;237 237 } 238 238 … … 335 335 return; 336 336 337 if (frame == WKBundlePageGetMainFrame(m_page)) 338 m_isLoading = true; 337 if (InjectedBundle::shared().topLoadingFrame()) 338 return; 339 InjectedBundle::shared().setTopLoadingFrame(frame); 339 340 } 340 341 … … 345 346 void InjectedBundlePage::didFailProvisionalLoadWithErrorForFrame(WKBundleFrameRef frame, WKErrorRef error) 346 347 { 348 if (!InjectedBundle::shared().isTestRunning()) 349 return; 350 351 if (frame != InjectedBundle::shared().topLoadingFrame()) 352 return; 353 InjectedBundle::shared().setTopLoadingFrame(0); 354 355 if (InjectedBundle::shared().layoutTestController()->waitToDump()) 356 return; 357 358 InjectedBundle::shared().done(); 347 359 } 348 360 … … 476 488 return; 477 489 478 if (!WKBundleFrameIsMainFrame(frame)) 479 return; 480 481 m_isLoading = false; 482 483 if (this != InjectedBundle::shared().page()) 484 return; 490 if (frame != InjectedBundle::shared().topLoadingFrame()) 491 return; 492 InjectedBundle::shared().setTopLoadingFrame(0); 485 493 486 494 if (InjectedBundle::shared().layoutTestController()->waitToDump()) 487 495 return; 488 496 489 dump();497 InjectedBundle::shared().page()->dump(); 490 498 } 491 499 … … 495 503 return; 496 504 497 if (!WKBundleFrameIsMainFrame(frame)) 498 return; 499 500 m_isLoading = false; 501 502 if (this != InjectedBundle::shared().page()) 505 if (frame != InjectedBundle::shared().topLoadingFrame()) 506 return; 507 InjectedBundle::shared().setTopLoadingFrame(0); 508 509 if (InjectedBundle::shared().layoutTestController()->waitToDump()) 503 510 return; 504 511 -
trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.h
r75826 r76092 42 42 43 43 void stopLoading(); 44 bool isLoading() { return m_isLoading; }45 44 46 45 void reset(); … … 125 124 WKRetainPtr<WKBundleScriptWorldRef> m_world; 126 125 WKRetainPtr<WKBundleBackForwardListItemRef> m_previousTestBackForwardListItem; 127 bool m_isLoading;128 126 }; 129 127 -
trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.cpp
r75291 r76092 133 133 return; 134 134 135 if (m_waitToDump && !InjectedBundle::shared(). page()->isLoading())135 if (m_waitToDump && !InjectedBundle::shared().topLoadingFrame()) 136 136 InjectedBundle::shared().page()->dump(); 137 137 138 m_waitToDump = false; 138 139 } -
trunk/Tools/WebKitTestRunner/TestController.cpp
r75682 r76092 387 387 void TestController::didReceiveMessageFromInjectedBundle(WKStringRef messageName, WKTypeRef messageBody) 388 388 { 389 if (!m_currentInvocation) 390 return; 389 391 m_currentInvocation->didReceiveMessageFromInjectedBundle(messageName, messageBody); 390 392 }
Note: See TracChangeset
for help on using the changeset viewer.