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

Unified Diff: headless/lib/headless_browser_browsertest.cc

Issue 2184763002: headless: Enable GL support by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « headless/DEPS ('k') | headless/lib/headless_content_main_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/lib/headless_browser_browsertest.cc
diff --git a/headless/lib/headless_browser_browsertest.cc b/headless/lib/headless_browser_browsertest.cc
index a6bbc8bf52db9030098ca541eaf92b5428ad485b..0734e5709b426b96f3e250287989a7e460d36461 100644
--- a/headless/lib/headless_browser_browsertest.cc
+++ b/headless/lib/headless_browser_browsertest.cc
@@ -159,4 +159,18 @@ IN_PROC_BROWSER_TEST_F(HeadlessBrowserTest, HttpsProtocolHandler) {
EXPECT_EQ(kResponseBody, inner_html);
}
+IN_PROC_BROWSER_TEST_F(HeadlessBrowserTest, WebGLSupported) {
+ HeadlessWebContents* web_contents =
+ browser()->CreateWebContentsBuilder().Build();
+
+ bool webgl_supported;
+ EXPECT_TRUE(EvaluateScript(web_contents,
+ "document.createElement('canvas').getContext('"
altimin 2016/07/26 14:47:05 nit: Can we try to format this code more nicely?
Sami 2016/07/27 14:26:05 Definitely, done.
+ "webgl') instanceof WebGLRenderingContext")
+ ->GetResult()
+ ->GetValue()
+ ->GetAsBoolean(&webgl_supported));
+ EXPECT_TRUE(webgl_supported);
+}
+
} // namespace headless
« no previous file with comments | « headless/DEPS ('k') | headless/lib/headless_content_main_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698