Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1512)

Unified Diff: chrome/browser/apps/guest_view/web_view_browsertest.cc

Issue 1148903003: Add a basic postMessage test for <webview> in a new test suite. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: check e.source == webview.contentWindow Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/test/data/extensions/platform_apps/web_view/post_message/basic/embedder.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/apps/guest_view/web_view_browsertest.cc
diff --git a/chrome/browser/apps/guest_view/web_view_browsertest.cc b/chrome/browser/apps/guest_view/web_view_browsertest.cc
index 39203974b6caf49c2fdfa5ac8601460d4813de67..1947ad985fc6a540c235c807abe5692407bc5524 100644
--- a/chrome/browser/apps/guest_view/web_view_browsertest.cc
+++ b/chrome/browser/apps/guest_view/web_view_browsertest.cc
@@ -844,6 +844,10 @@ class WebViewTest : public extensions::PlatformAppBrowserTest {
content::WebContents* embedder_web_contents_;
};
+// Test suite that containts tests that are meant to run with and without
+// --site-per-process.
+class WebViewCommonTest : public extensions::PlatformAppBrowserTest {};
+
class WebViewDPITest : public WebViewTest {
protected:
void SetUpCommandLine(base::CommandLine* command_line) override {
@@ -2711,3 +2715,9 @@ IN_PROC_BROWSER_TEST_F(WebViewTest, AllowTransparencyAndAllowScalingPropagate) {
ASSERT_TRUE(guest->allow_transparency());
ASSERT_TRUE(guest->allow_scaling());
}
+
+IN_PROC_BROWSER_TEST_F(WebViewCommonTest, BasicPostMessage) {
+ ASSERT_TRUE(StartEmbeddedTestServer()); // For serving guest pages.
+ ASSERT_TRUE(RunPlatformAppTest("platform_apps/web_view/post_message/basic"))
+ << message_;
+}
« no previous file with comments | « no previous file | chrome/test/data/extensions/platform_apps/web_view/post_message/basic/embedder.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698