OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 21 matching lines...) Expand all Loading... |
32 #include "WebPluginContainer.h" | 32 #include "WebPluginContainer.h" |
33 | 33 |
34 #include <gtest/gtest.h> | 34 #include <gtest/gtest.h> |
35 #include "FakeWebPlugin.h" | 35 #include "FakeWebPlugin.h" |
36 #include "FrameTestHelpers.h" | 36 #include "FrameTestHelpers.h" |
37 #include "URLTestHelpers.h" | 37 #include "URLTestHelpers.h" |
38 #include "WebDocument.h" | 38 #include "WebDocument.h" |
39 #include "WebElement.h" | 39 #include "WebElement.h" |
40 #include "WebFrame.h" | 40 #include "WebFrame.h" |
41 #include "WebFrameClient.h" | 41 #include "WebFrameClient.h" |
42 #include "WebFrameImpl.h" | 42 #include "WebLocalFrameImpl.h" |
43 #include "WebPluginContainerImpl.h" | 43 #include "WebPluginContainerImpl.h" |
44 #include "WebPluginParams.h" | 44 #include "WebPluginParams.h" |
45 #include "WebSettings.h" | 45 #include "WebSettings.h" |
46 #include "WebView.h" | 46 #include "WebView.h" |
47 #include "WebViewImpl.h" | 47 #include "WebViewImpl.h" |
48 #include "core/dom/Element.h" | 48 #include "core/dom/Element.h" |
49 #include "public/platform/Platform.h" | 49 #include "public/platform/Platform.h" |
50 #include "public/platform/WebClipboard.h" | 50 #include "public/platform/WebClipboard.h" |
51 #include "public/platform/WebThread.h" | 51 #include "public/platform/WebThread.h" |
52 #include "public/platform/WebUnitTestSupport.h" | 52 #include "public/platform/WebUnitTestSupport.h" |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 webView->resize(WebSize(300, 300)); | 170 webView->resize(WebSize(300, 300)); |
171 webView->layout(); | 171 webView->layout(); |
172 FrameTestHelpers::runPendingTasks(); | 172 FrameTestHelpers::runPendingTasks(); |
173 | 173 |
174 WebElement pluginContainerOneElement = webView->mainFrame()->document().getE
lementById(WebString::fromUTF8("translated-plugin")); | 174 WebElement pluginContainerOneElement = webView->mainFrame()->document().getE
lementById(WebString::fromUTF8("translated-plugin")); |
175 EXPECT_TRUE(webView->mainFrame()->executeCommand("Copy", pluginContainerOne
Element)); | 175 EXPECT_TRUE(webView->mainFrame()->executeCommand("Copy", pluginContainerOne
Element)); |
176 EXPECT_EQ(WebString("x"), Platform::current()->clipboard()->readPlainText(We
bClipboard::Buffer())); | 176 EXPECT_EQ(WebString("x"), Platform::current()->clipboard()->readPlainText(We
bClipboard::Buffer())); |
177 } | 177 } |
178 | 178 |
179 } | 179 } |
OLD | NEW |