| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/file_util.h" | 5 #include "base/file_util.h" |
| 6 #include "base/message_loop.h" | 6 #include "base/message_loop.h" |
| 7 #include "base/path_service.h" | 7 #include "base/path_service.h" |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "googleurl/src/gurl.h" | 9 #include "googleurl/src/gurl.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 11 #include "webkit/tools/test_shell/test_shell_test.h" | 11 #include "webkit/tools/test_shell/test_shell_test.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 test_shell_->LoadURL(GURL( | 67 test_shell_->LoadURL(GURL( |
| 68 "javascript:document.open();" | 68 "javascript:document.open();" |
| 69 "document.write('hello world');" | 69 "document.write('hello world');" |
| 70 "document.close()")); | 70 "document.close()")); |
| 71 MessageLoop::current()->RunAllPending(); | 71 MessageLoop::current()->RunAllPending(); |
| 72 string16 text = test_shell_->GetDocumentText(); | 72 string16 text = test_shell_->GetDocumentText(); |
| 73 EXPECT_EQ("hello world", UTF16ToASCII(text)); | 73 EXPECT_EQ("hello world", UTF16ToASCII(text)); |
| 74 } | 74 } |
| 75 | 75 |
| 76 } // namespace | 76 } // namespace |
| OLD | NEW |