| 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 "testing/gtest/include/gtest/gtest.h" | 5 #include "testing/gtest/include/gtest/gtest.h" |
| 6 #include "webkit/glue/webview.h" | 6 #include "webkit/glue/webview.h" |
| 7 #include "webkit/tools/test_shell/test_shell_test.h" | 7 #include "webkit/tools/test_shell/test_shell_test.h" |
| 8 | 8 |
| 9 class WebViewTest : public TestShellTest { | 9 class WebViewTest : public TestShellTest { |
| 10 }; | 10 }; |
| 11 | 11 |
| 12 TEST_F(WebViewTest, GetContentAsPlainText) { | 12 TEST_F(WebViewTest, GetContentAsPlainText) { |
| 13 WebView* view = test_shell_->webView(); | 13 WebView* view = test_shell_->webView(); |
| 14 ASSERT_TRUE(view != 0); | 14 ASSERT_TRUE(view != 0); |
| 15 | 15 |
| 16 view->SetActive(true); | 16 view->setIsActive(true); |
| 17 EXPECT_TRUE(view->IsActive()); | 17 EXPECT_TRUE(view->isActive()); |
| 18 | 18 |
| 19 view->SetActive(false); | 19 view->setIsActive(false); |
| 20 EXPECT_FALSE(view->IsActive()); | 20 EXPECT_FALSE(view->isActive()); |
| 21 | 21 |
| 22 view->SetActive(true); | 22 view->setIsActive(true); |
| 23 EXPECT_TRUE(view->IsActive()); | 23 EXPECT_TRUE(view->isActive()); |
| 24 } | 24 } |
| 25 | 25 |
| 26 // TODO(viettrungluu): add more tests | 26 // TODO(viettrungluu): add more tests |
| OLD | NEW |