Changeset 75291 in webkit
- Timestamp:
- Jan 7, 2011 4:21:52 PM (13 years ago)
- Location:
- trunk/Tools
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r75276 r75291 1 2011-01-07 Maciej Stachowiak <mjs@apple.com> 2 3 Reviewed by Sam Weinig. 4 5 Make WebKitTestRunner rest between loads more robust to avoid test crashes 6 https://bugs.webkit.org/show_bug.cgi?id=52086 7 8 * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp: 9 (WTR::InjectedBundle::didReceiveMessage): 10 * WebKitTestRunner/InjectedBundle/LayoutTestController.cpp: 11 (WTR::LayoutTestController::notifyDone): 12 * WebKitTestRunner/TestController.cpp: 13 (WTR::TestController::resetStateToConsistentValues): 14 (WTR::TestController::run): 15 1 16 2011-01-07 James Robinson <jamesr@chromium.org> 2 17 -
trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.cpp
r73066 r75291 129 129 beginTesting(); 130 130 return; 131 } else if (WKStringIsEqualToUTF8CString(messageName, "Reset")) { 132 m_state = Idle; 133 return; 131 134 } 132 135 -
trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.cpp
r73066 r75291 130 130 void LayoutTestController::notifyDone() 131 131 { 132 if (!InjectedBundle::shared().isTestRunning()) 133 return; 134 132 135 if (m_waitToDump && !InjectedBundle::shared().page()->isLoading()) 133 136 InjectedBundle::shared().page()->dump(); -
trunk/Tools/WebKitTestRunner/TestController.cpp
r74418 r75291 281 281 m_state = Resetting; 282 282 283 WKRetainPtr<WKStringRef> messageName(AdoptWK, WKStringCreateWithUTF8CString("Reset")); 284 WKContextPostMessageToInjectedBundle(TestController::shared().context(), messageName.get(), 0); 285 283 286 // FIXME: This function should also ensure that there is only one page open. 284 287 … … 354 357 } 355 358 } 359 356 360 } 357 361
Note: See TracChangeset
for help on using the changeset viewer.