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

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: clean up a bit 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
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 27f24f6b5a83ace972b9cb47b963d014745424ff..a76b2e4d1405fa8b83232be69d6b080845cda15a 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 WebViewBasicTest : public extensions::PlatformAppBrowserTest {};
lfg 2015/05/21 22:49:25 [optional] I don't like the BasicTest name, maybe
lazyboy 2015/05/21 23:31:05 Renamed to WebViewCommonTest.
+
class WebViewDPITest : public WebViewTest {
protected:
void SetUpCommandLine(base::CommandLine* command_line) override {
@@ -2718,3 +2722,9 @@ IN_PROC_BROWSER_TEST_F(WebViewTest, AllowTransparencyAndAllowScalingPropagate) {
ASSERT_TRUE(guest->allow_transparency());
ASSERT_TRUE(guest->allow_scaling());
}
+
+IN_PROC_BROWSER_TEST_F(WebViewBasicTest, BasicPostMessage) {
+ ASSERT_TRUE(StartEmbeddedTestServer()); // For serving guest pages.
+ ASSERT_TRUE(RunPlatformAppTest("platform_apps/web_view/post_message/basic"))
+ << message_;
+}

Powered by Google App Engine
This is Rietveld 408576698