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

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: Rebased and reformatted 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..75ae5133006aef82ba6f7c8568817cf9c256f47c 100644
--- a/headless/lib/headless_browser_browsertest.cc
+++ b/headless/lib/headless_browser_browsertest.cc
@@ -159,4 +159,19 @@ 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('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