diff options
author | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-16 20:58:30 +0000 |
---|---|---|
committer | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-16 20:58:30 +0000 |
commit | 76640c6a431e6951696a2a5e495b2ba17455a6f4 (patch) | |
tree | 2ed7214e0bcb83eee81131dc6b174de570fda3ce /webkit/tools/test_shell/test_shell.cc | |
parent | 2d94501adce21884e71b2915e5d2e290b9cb2a30 (diff) | |
download | chromium_src-76640c6a431e6951696a2a5e495b2ba17455a6f4.zip chromium_src-76640c6a431e6951696a2a5e495b2ba17455a6f4.tar.gz chromium_src-76640c6a431e6951696a2a5e495b2ba17455a6f4.tar.bz2 |
looking at test shell tests on mac:
- unforking TestShell::CreateNewWindow, all code must live in a platform's
Initialize method instead (some tests rely on knowing what CreateNewWindow
does). (mac had issues w/ this)
- Mac: make the code path for tests that forces down windows properly clean up
the bits in the same way a trip through the event loop would.
- add a few more logs/checks in the mac code to catch issues.
Review URL: http://codereview.chromium.org/18166
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8211 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/test_shell.cc')
-rwxr-xr-x | webkit/tools/test_shell/test_shell.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/webkit/tools/test_shell/test_shell.cc b/webkit/tools/test_shell/test_shell.cc index 41d2140..3247022 100755 --- a/webkit/tools/test_shell/test_shell.cc +++ b/webkit/tools/test_shell/test_shell.cc @@ -168,6 +168,18 @@ TestShell::~TestShell() { } } +bool TestShell::CreateNewWindow(const std::wstring& startingURL, + TestShell** result) { + TestShell* shell = new TestShell(); + bool rv = shell->Initialize(startingURL); + if (rv) { + if (result) + *result = shell; + TestShell::windowList()->push_back(shell->m_mainWnd); + } + return rv; +} + void TestShell::ShutdownTestShell() { #if defined(OS_WIN) || defined(OS_MACOSX) PlatformShutdown(); |