Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Unified Diff: webkit/tools/test_shell/layout_test_controller.cc

Issue 3317016: Implement layoutTestController.dumpResourceResponseMIMETypes in test_shell... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webkit/tools/test_shell/layout_test_controller.cc
===================================================================
--- webkit/tools/test_shell/layout_test_controller.cc (revision 58881)
+++ webkit/tools/test_shell/layout_test_controller.cc (working copy)
@@ -61,6 +61,7 @@
bool LayoutTestController::dump_editing_callbacks_ = false;
bool LayoutTestController::dump_frame_load_callbacks_ = false;
bool LayoutTestController::dump_resource_load_callbacks_ = false;
+bool LayoutTestController::dump_resource_response_mime_types_ = false;
bool LayoutTestController::dump_back_forward_list_ = false;
bool LayoutTestController::dump_child_frame_scroll_positions_ = false;
bool LayoutTestController::dump_child_frames_as_text_ = false;
@@ -99,6 +100,7 @@
BindMethod("dumpBackForwardList", &LayoutTestController::dumpBackForwardList);
BindMethod("dumpFrameLoadCallbacks", &LayoutTestController::dumpFrameLoadCallbacks);
BindMethod("dumpResourceLoadCallbacks", &LayoutTestController::dumpResourceLoadCallbacks);
+ BindMethod("dumpResourceResponseMIMETypes", &LayoutTestController::dumpResourceResponseMIMETypes);
BindMethod("dumpStatusCallbacks", &LayoutTestController::dumpWindowStatusChanges);
BindMethod("dumpTitleChanges", &LayoutTestController::dumpTitleChanges);
BindMethod("setAcceptsEditing", &LayoutTestController::setAcceptsEditing);
@@ -297,6 +299,12 @@
result->SetNull();
}
+void LayoutTestController::dumpResourceResponseMIMETypes(
+ const CppArgumentList& args, CppVariant* result) {
+ dump_resource_response_mime_types_ = true;
+ result->SetNull();
+}
+
void LayoutTestController::dumpChildFrameScrollPositions(
const CppArgumentList& args, CppVariant* result) {
dump_child_frame_scroll_positions_ = true;
@@ -519,6 +527,7 @@
dump_editing_callbacks_ = false;
dump_frame_load_callbacks_ = false;
dump_resource_load_callbacks_ = false;
+ dump_resource_response_mime_types_ = false;
dump_back_forward_list_ = false;
dump_child_frame_scroll_positions_ = false;
dump_child_frames_as_text_ = false;
@@ -869,7 +878,7 @@
WebKit::WebAnimationController* controller = web_frame->animationController();
if (!controller)
- return;
+ return;
controller->suspendAnimations();
}

Powered by Google App Engine
This is Rietveld 408576698