diff options
Diffstat (limited to 'webkit/tools/test_shell/layout_test_controller.cc')
-rw-r--r-- | webkit/tools/test_shell/layout_test_controller.cc | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/webkit/tools/test_shell/layout_test_controller.cc b/webkit/tools/test_shell/layout_test_controller.cc index 47700e2..e861d37 100644 --- a/webkit/tools/test_shell/layout_test_controller.cc +++ b/webkit/tools/test_shell/layout_test_controller.cc @@ -46,6 +46,7 @@ bool LayoutTestController::dump_resource_load_callbacks_ = false; bool LayoutTestController::dump_back_forward_list_ = false; bool LayoutTestController::dump_child_frame_scroll_positions_ = false; bool LayoutTestController::dump_child_frames_as_text_ = false; +bool LayoutTestController::dump_window_status_changes_ = false; bool LayoutTestController::dump_title_changes_ = false; bool LayoutTestController::accepts_editing_ = true; bool LayoutTestController::wait_until_done_ = false; @@ -58,7 +59,7 @@ CppVariant LayoutTestController::globalFlag_; CppVariant LayoutTestController::webHistoryItemCount_; LayoutTestController::LayoutTestController(TestShell* shell) { - // Set static shell_ variable since we can't do it in an initializer list. + // Set static shell_ variable since we can't do it in an initializer list. // We also need to be careful not to assign shell_ to new windows which are // temporary. if (NULL == shell_) @@ -75,6 +76,7 @@ LayoutTestController::LayoutTestController(TestShell* shell) { BindMethod("dumpBackForwardList", &LayoutTestController::dumpBackForwardList); BindMethod("dumpFrameLoadCallbacks", &LayoutTestController::dumpFrameLoadCallbacks); BindMethod("dumpResourceLoadCallbacks", &LayoutTestController::dumpResourceLoadCallbacks); + BindMethod("dumpStatusCallbacks", &LayoutTestController::dumpWindowStatusChanges); BindMethod("dumpTitleChanges", &LayoutTestController::dumpTitleChanges); BindMethod("setAcceptsEditing", &LayoutTestController::setAcceptsEditing); BindMethod("waitUntilDone", &LayoutTestController::waitUntilDone); @@ -184,7 +186,7 @@ void LayoutTestController::WorkQueue::AddWork(WorkItem* work) { queue_.push(work); } -void LayoutTestController::dumpAsText(const CppArgumentList& args, +void LayoutTestController::dumpAsText(const CppArgumentList& args, CppVariant* result) { dump_as_text_ = true; result->SetNull(); @@ -226,6 +228,12 @@ void LayoutTestController::dumpChildFramesAsText( result->SetNull(); } +void LayoutTestController::dumpWindowStatusChanges( + const CppArgumentList& args, CppVariant* result) { + dump_window_status_changes_ = true; + result->SetNull(); +} + void LayoutTestController::dumpTitleChanges( const CppArgumentList& args, CppVariant* result) { dump_title_changes_ = true; |