OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * Copyright (C) 2010 Pawel Hajdan (phajdan.jr@chromium.org) | 3 * Copyright (C) 2010 Pawel Hajdan (phajdan.jr@chromium.org) |
4 * Copyright (C) 2012 Apple Inc. All Rights Reserved. | 4 * Copyright (C) 2012 Apple Inc. All Rights Reserved. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions are | 7 * modification, are permitted provided that the following conditions are |
8 * met: | 8 * met: |
9 * | 9 * |
10 * * Redistributions of source code must retain the above copyright | 10 * * Redistributions of source code must retain the above copyright |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 virtual const WebKit::WebArrayBufferView* audioData() const OVERRIDE; | 85 virtual const WebKit::WebArrayBufferView* audioData() const OVERRIDE; |
86 virtual bool shouldDumpBackForwardList() const OVERRIDE; | 86 virtual bool shouldDumpBackForwardList() const OVERRIDE; |
87 virtual WebKit::WebPermissionClient* webPermissions() const OVERRIDE; | 87 virtual WebKit::WebPermissionClient* webPermissions() const OVERRIDE; |
88 | 88 |
89 // Methods used by WebTestProxyBase. | 89 // Methods used by WebTestProxyBase. |
90 bool shouldDumpSelectionRect() const; | 90 bool shouldDumpSelectionRect() const; |
91 bool testRepaint() const; | 91 bool testRepaint() const; |
92 bool sweepHorizontally() const; | 92 bool sweepHorizontally() const; |
93 bool isPrinting() const; | 93 bool isPrinting() const; |
94 bool shouldDumpAsText(); | 94 bool shouldDumpAsText(); |
| 95 bool shouldDumpAsTextWithPixelResults(); |
95 bool shouldDumpChildFrameScrollPositions() const; | 96 bool shouldDumpChildFrameScrollPositions() const; |
96 bool shouldDumpChildFramesAsText() const; | 97 bool shouldDumpChildFramesAsText() const; |
97 void showDevTools(); | 98 void showDevTools(); |
98 void setShouldDumpAsText(bool); | 99 void setShouldDumpAsText(bool); |
99 void setShouldGeneratePixelResults(bool); | 100 void setShouldGeneratePixelResults(bool); |
100 void setShouldDumpFrameLoadCallbacks(bool); | 101 void setShouldDumpFrameLoadCallbacks(bool); |
101 void setShouldDumpPingLoaderCallbacks(bool); | 102 void setShouldDumpPingLoaderCallbacks(bool); |
102 bool shouldDumpEditingCallbacks() const; | 103 bool shouldDumpEditingCallbacks() const; |
103 bool shouldDumpFrameLoadCallbacks() const; | 104 bool shouldDumpFrameLoadCallbacks() const; |
104 bool shouldDumpPingLoaderCallbacks() const; | 105 bool shouldDumpPingLoaderCallbacks() const; |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 /////////////////////////////////////////////////////////////////////////// | 312 /////////////////////////////////////////////////////////////////////////// |
312 // Methods that modify the state of TestRunner | 313 // Methods that modify the state of TestRunner |
313 | 314 |
314 // This function sets a flag that tells the test_shell to print a line of | 315 // This function sets a flag that tells the test_shell to print a line of |
315 // descriptive text for each editing command. It takes no arguments, and | 316 // descriptive text for each editing command. It takes no arguments, and |
316 // ignores any that may be present. | 317 // ignores any that may be present. |
317 void dumpEditingCallbacks(const CppArgumentList&, CppVariant*); | 318 void dumpEditingCallbacks(const CppArgumentList&, CppVariant*); |
318 | 319 |
319 // This function sets a flag that tells the test_shell to dump pages as | 320 // This function sets a flag that tells the test_shell to dump pages as |
320 // plain text, rather than as a text representation of the renderer's state. | 321 // plain text, rather than as a text representation of the renderer's state. |
321 // It takes an optional argument, whether to dump pixels results or not. | 322 // The pixel results will not be generated for this test. |
322 void dumpAsText(const CppArgumentList&, CppVariant*); | 323 void dumpAsText(const CppArgumentList&, CppVariant*); |
323 | 324 |
| 325 // This function sets a flag that tells the test_shell to dump pages as |
| 326 // plain text, rather than as a text representation of the renderer's state. |
| 327 // It will also generate a pixel dump for the test. |
| 328 void dumpAsTextWithPixelResults(const CppArgumentList&, CppVariant*); |
| 329 |
324 // This function sets a flag that tells the test_shell to print out the | 330 // This function sets a flag that tells the test_shell to print out the |
325 // scroll offsets of the child frames. It ignores all. | 331 // scroll offsets of the child frames. It ignores all. |
326 void dumpChildFrameScrollPositions(const CppArgumentList&, CppVariant*); | 332 void dumpChildFrameScrollPositions(const CppArgumentList&, CppVariant*); |
327 | 333 |
328 // This function sets a flag that tells the test_shell to recursively | 334 // This function sets a flag that tells the test_shell to recursively |
329 // dump all frames as plain text if the dumpAsText flag is set. | 335 // dump all frames as plain text if the dumpAsText flag is set. |
330 // It takes no arguments, and ignores any that may be present. | 336 // It takes no arguments, and ignores any that may be present. |
331 void dumpChildFramesAsText(const CppArgumentList&, CppVariant*); | 337 void dumpChildFramesAsText(const CppArgumentList&, CppVariant*); |
332 | 338 |
333 // This function sets a flag that tells the test_shell to print out the | 339 // This function sets a flag that tells the test_shell to print out the |
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
711 enum { | 717 enum { |
712 PointerLockWillSucceed, | 718 PointerLockWillSucceed, |
713 PointerLockWillRespondAsync, | 719 PointerLockWillRespondAsync, |
714 PointerLockWillFailSync, | 720 PointerLockWillFailSync, |
715 } m_pointerLockPlannedResult; | 721 } m_pointerLockPlannedResult; |
716 }; | 722 }; |
717 | 723 |
718 } | 724 } |
719 | 725 |
720 #endif // TestRunner_h | 726 #endif // TestRunner_h |
OLD | NEW |