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

Unified Diff: webkit/tools/test_shell/test_shell_mac.mm

Issue 16578: Add debug menu to Linux test_shell: (Closed)
Patch Set: curlies & 80 chars Created 11 years, 11 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
« no previous file with comments | « webkit/tools/test_shell/test_shell_gtk.cc ('k') | webkit/tools/test_shell/test_shell_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/test_shell_mac.mm
diff --git a/webkit/tools/test_shell/test_shell_mac.mm b/webkit/tools/test_shell/test_shell_mac.mm
index 3f10f8f18f63f802ed9df1dba8e43d6476882eb1..c15a51c2e2842b5c2e00f68e95cb0fa2e4c75e8b 100644
--- a/webkit/tools/test_shell/test_shell_mac.mm
+++ b/webkit/tools/test_shell/test_shell_mac.mm
@@ -665,38 +665,6 @@ bool TestShell::PromptForSaveFile(const wchar_t* prompt_title,
return false;
}
-static void WriteTextToFile(const std::string& data,
- const std::string& file_path)
-{
- FILE* fp = fopen(file_path.c_str(), "w");
- if (!fp)
- return;
- fwrite(data.c_str(), sizeof(std::string::value_type), data.size(), fp);
- fclose(fp);
-}
-
-void TestShell::DumpDocumentText()
-{
- std::wstring file_path;
- if (!PromptForSaveFile(L"Dump document text", &file_path))
- return;
-
- WriteTextToFile(
- WideToUTF8(webkit_glue::DumpDocumentText(webView()->GetMainFrame())),
- WideToUTF8(file_path));
-}
-
-void TestShell::DumpRenderTree()
-{
- std::wstring file_path;
- if (!PromptForSaveFile(L"Dump render tree", &file_path))
- return;
-
- WriteTextToFile(
- WideToUTF8(webkit_glue::DumpRenderer(webView()->GetMainFrame())),
- WideToUTF8(file_path));
-}
-
// static
std::string TestShell::RewriteLocalUrl(const std::string& url) {
// Convert file:///tmp/LayoutTests urls to the actual location on disk.
« no previous file with comments | « webkit/tools/test_shell/test_shell_gtk.cc ('k') | webkit/tools/test_shell/test_shell_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698