OLD | NEW |
---|---|
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #include "config.h" | 5 #include "config.h" |
darin (slow to review)
2009/08/12 21:47:21
i think we should just remove config.h from this f
| |
6 | 6 |
7 #undef LOG | |
8 | |
7 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
8 | 10 |
9 #include "base/file_util.h" | 11 #include "base/file_util.h" |
10 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
11 #include "base/path_service.h" | 13 #include "base/path_service.h" |
12 #include "base/string_util.h" | 14 #include "base/string_util.h" |
13 #include "webkit/tools/test_shell/test_shell_test.h" | 15 #include "webkit/tools/test_shell/test_shell_test.h" |
14 | 16 |
15 namespace { | 17 namespace { |
16 | 18 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
67 test_shell_->LoadURL( | 69 test_shell_->LoadURL( |
68 L"javascript:document.open();" | 70 L"javascript:document.open();" |
69 L"document.write('hello world');" | 71 L"document.write('hello world');" |
70 L"document.close()"); | 72 L"document.close()"); |
71 MessageLoop::current()->RunAllPending(); | 73 MessageLoop::current()->RunAllPending(); |
72 std::wstring text = test_shell_->GetDocumentText(); | 74 std::wstring text = test_shell_->GetDocumentText(); |
73 EXPECT_EQ(L"hello world", text); | 75 EXPECT_EQ(L"hello world", text); |
74 } | 76 } |
75 | 77 |
76 } // namespace | 78 } // namespace |
OLD | NEW |