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

Side by Side Diff: webkit/tools/test_shell/layout_test_controller.h

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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /* 5 /*
6 LayoutTestController class: 6 LayoutTestController class:
7 Bound to a JavaScript window.layoutTestController object using the 7 Bound to a JavaScript window.layoutTestController object using the
8 CppBoundClass::BindToJavascript(), this allows layout tests that are run in 8 CppBoundClass::BindToJavascript(), this allows layout tests that are run in
9 the test_shell (or, in principle, any web page loaded into a client app built 9 the test_shell (or, in principle, any web page loaded into a client app built
10 with this class) to control various aspects of how the tests are run and what 10 with this class) to control various aspects of how the tests are run and what
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 void grantDesktopNotificationPermission(const CppArgumentList& args, 200 void grantDesktopNotificationPermission(const CppArgumentList& args,
201 CppVariant* result); 201 CppVariant* result);
202 202
203 void setEditingBehavior(const CppArgumentList&, CppVariant*); 203 void setEditingBehavior(const CppArgumentList&, CppVariant*);
204 204
205 // The following are only stubs. TODO(pamg): Implement any of these that 205 // The following are only stubs. TODO(pamg): Implement any of these that
206 // are needed to pass the layout tests. 206 // are needed to pass the layout tests.
207 void dumpAsWebArchive(const CppArgumentList& args, CppVariant* result); 207 void dumpAsWebArchive(const CppArgumentList& args, CppVariant* result);
208 void dumpTitleChanges(const CppArgumentList& args, CppVariant* result); 208 void dumpTitleChanges(const CppArgumentList& args, CppVariant* result);
209 void dumpResourceLoadCallbacks(const CppArgumentList& args, CppVariant* result ); 209 void dumpResourceLoadCallbacks(const CppArgumentList& args, CppVariant* result );
210 void dumpResourceResponseMIMETypes(const CppArgumentList& args, CppVariant* re sult);
210 void setMainFrameIsFirstResponder(const CppArgumentList& args, CppVariant* res ult); 211 void setMainFrameIsFirstResponder(const CppArgumentList& args, CppVariant* res ult);
211 void display(const CppArgumentList& args, CppVariant* result); 212 void display(const CppArgumentList& args, CppVariant* result);
212 void testRepaint(const CppArgumentList& args, CppVariant* result); 213 void testRepaint(const CppArgumentList& args, CppVariant* result);
213 void repaintSweepHorizontally(const CppArgumentList& args, CppVariant* result) ; 214 void repaintSweepHorizontally(const CppArgumentList& args, CppVariant* result) ;
214 void clearBackForwardList(const CppArgumentList& args, CppVariant* result); 215 void clearBackForwardList(const CppArgumentList& args, CppVariant* result);
215 void keepWebHistory(const CppArgumentList& args, CppVariant* result); 216 void keepWebHistory(const CppArgumentList& args, CppVariant* result);
216 void storeWebScriptObject(const CppArgumentList& args, CppVariant* result); 217 void storeWebScriptObject(const CppArgumentList& args, CppVariant* result);
217 void accessStoredWebScriptObject(const CppArgumentList& args, CppVariant* resu lt); 218 void accessStoredWebScriptObject(const CppArgumentList& args, CppVariant* resu lt);
218 void objCClassNameOf(const CppArgumentList& args, CppVariant* result); 219 void objCClassNameOf(const CppArgumentList& args, CppVariant* result);
219 void addDisallowedURL(const CppArgumentList& args, CppVariant* result); 220 void addDisallowedURL(const CppArgumentList& args, CppVariant* result);
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 bool ShouldDumpAsText() { return dump_as_text_; } 299 bool ShouldDumpAsText() { return dump_as_text_; }
299 bool ShouldGeneratePixelResults() { return generate_pixel_results_; } 300 bool ShouldGeneratePixelResults() { return generate_pixel_results_; }
300 bool ShouldDumpEditingCallbacks() { return dump_editing_callbacks_; } 301 bool ShouldDumpEditingCallbacks() { return dump_editing_callbacks_; }
301 bool ShouldDumpFrameLoadCallbacks() { return dump_frame_load_callbacks_; } 302 bool ShouldDumpFrameLoadCallbacks() { return dump_frame_load_callbacks_; }
302 void SetShouldDumpFrameLoadCallbacks(bool value) { 303 void SetShouldDumpFrameLoadCallbacks(bool value) {
303 dump_frame_load_callbacks_ = value; 304 dump_frame_load_callbacks_ = value;
304 } 305 }
305 bool ShouldDumpResourceLoadCallbacks() { 306 bool ShouldDumpResourceLoadCallbacks() {
306 return dump_resource_load_callbacks_; 307 return dump_resource_load_callbacks_;
307 } 308 }
309 bool ShouldDumpResourceResponseMIMETypes() {
310 return dump_resource_response_mime_types_;
311 }
308 bool ShouldDumpStatusCallbacks() { 312 bool ShouldDumpStatusCallbacks() {
309 return dump_window_status_changes_; 313 return dump_window_status_changes_;
310 } 314 }
311 bool ShouldDumpSelectionRect() { 315 bool ShouldDumpSelectionRect() {
312 return dump_selection_rect_; 316 return dump_selection_rect_;
313 } 317 }
314 bool ShouldDumpBackForwardList() { return dump_back_forward_list_; } 318 bool ShouldDumpBackForwardList() { return dump_back_forward_list_; }
315 bool ShouldDumpTitleChanges() { return dump_title_changes_; } 319 bool ShouldDumpTitleChanges() { return dump_title_changes_; }
316 bool ShouldDumpChildFrameScrollPositions() { 320 bool ShouldDumpChildFrameScrollPositions() {
317 return dump_child_frame_scroll_positions_; 321 return dump_child_frame_scroll_positions_;
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 static bool dump_selection_rect_; 415 static bool dump_selection_rect_;
412 416
413 // If true, the test_shell will output a descriptive line for each frame 417 // If true, the test_shell will output a descriptive line for each frame
414 // load callback. 418 // load callback.
415 static bool dump_frame_load_callbacks_; 419 static bool dump_frame_load_callbacks_;
416 420
417 // If true, the test_shell will output a descriptive line for each resource 421 // If true, the test_shell will output a descriptive line for each resource
418 // load callback. 422 // load callback.
419 static bool dump_resource_load_callbacks_; 423 static bool dump_resource_load_callbacks_;
420 424
425 // If true, the test_shell will output a line with the MIME type for each
426 // resource that is loaded.
427 static bool dump_resource_response_mime_types_;
428
421 // If true, the test_shell will produce a dump of the back forward list as 429 // If true, the test_shell will produce a dump of the back forward list as
422 // well. 430 // well.
423 static bool dump_back_forward_list_; 431 static bool dump_back_forward_list_;
424 432
425 // If true, the test_shell will print out the child frame scroll offsets as 433 // If true, the test_shell will print out the child frame scroll offsets as
426 // well. 434 // well.
427 static bool dump_child_frame_scroll_positions_; 435 static bool dump_child_frame_scroll_positions_;
428 436
429 // If true and if dump_as_text_ is true, the test_shell will recursively 437 // If true and if dump_as_text_ is true, the test_shell will recursively
430 // dump all frames as plain text. 438 // dump all frames as plain text.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 483
476 static WorkQueue work_queue_; 484 static WorkQueue work_queue_;
477 485
478 static CppVariant globalFlag_; 486 static CppVariant globalFlag_;
479 487
480 // Bound variable counting the number of top URLs visited. 488 // Bound variable counting the number of top URLs visited.
481 static CppVariant webHistoryItemCount_; 489 static CppVariant webHistoryItemCount_;
482 }; 490 };
483 491
484 #endif // WEBKIT_TOOLS_TEST_SHELL_LAYOUT_TEST_CONTROLLER_H_ 492 #endif // WEBKIT_TOOLS_TEST_SHELL_LAYOUT_TEST_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | webkit/tools/test_shell/layout_test_controller.cc » ('j') | webkit/tools/test_shell/test_webview_delegate.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698