| 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 "base/string_util.h" | 5 #include "base/string_util.h" |
| 6 #include "base/utf_string_conversions.h" | 6 #include "base/utf_string_conversions.h" |
| 7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
| 8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebData.h" | 8 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebData.h" |
| 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
| 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
| 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h" |
| 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
| 13 #include "webkit/tools/test_shell/test_shell_test.h" | 13 #include "webkit/tools/test_shell/test_shell_test.h" |
| 14 | 14 |
| 15 using WebKit::WebFrame; | 15 using WebKit::WebFrame; |
| 16 using WebKit::WebString; | 16 using WebKit::WebString; |
| 17 using WebKit::WebView; | 17 using WebKit::WebView; |
| 18 | 18 |
| 19 class WebFrameTest : public TestShellTest { | 19 class WebFrameTest : public TestShellTest { |
| 20 }; | 20 }; |
| 21 | 21 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 | 86 |
| 87 // Test selection check | 87 // Test selection check |
| 88 EXPECT_FALSE(frame->hasSelection()); | 88 EXPECT_FALSE(frame->hasSelection()); |
| 89 frame->executeCommand(WebString::fromUTF8("SelectAll")); | 89 frame->executeCommand(WebString::fromUTF8("SelectAll")); |
| 90 EXPECT_TRUE(frame->hasSelection()); | 90 EXPECT_TRUE(frame->hasSelection()); |
| 91 frame->executeCommand(WebString::fromUTF8("Unselect")); | 91 frame->executeCommand(WebString::fromUTF8("Unselect")); |
| 92 EXPECT_FALSE(frame->hasSelection()); | 92 EXPECT_FALSE(frame->hasSelection()); |
| 93 WebString selection_html = frame->selectionAsMarkup(); | 93 WebString selection_html = frame->selectionAsMarkup(); |
| 94 EXPECT_TRUE(selection_html.isEmpty()); | 94 EXPECT_TRUE(selection_html.isEmpty()); |
| 95 } | 95 } |
| OLD | NEW |