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

Side by Side Diff: chrome/test/data/gpu/feature_multisampling.html

Issue 2503453003: Remove all calls to domAutomationController.setAutomationId.
Patch Set: Fix nacl_browsertest_util.cc Created 3 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <html> 2 <html>
3 <head> 3 <head>
4 <meta charset="utf-8"> 4 <meta charset="utf-8">
5 <title>GPU Feature Testing: WebGL Multisampling</title> 5 <title>GPU Feature Testing: WebGL Multisampling</title>
6 <script> 6 <script>
7 function init() { 7 function init() {
8 var canvas = document.createElement("canvas"); 8 var canvas = document.createElement("canvas");
9 if (!canvas) 9 if (!canvas)
10 return null; 10 return null;
11 var context = null; 11 var context = null;
12 var attrib = { antialias: true }; // It is the default setting. 12 var attrib = { antialias: true }; // It is the default setting.
13 try { 13 try {
14 context = canvas.getContext("webgl", attrib); 14 context = canvas.getContext("webgl", attrib);
15 } catch(e) {} 15 } catch(e) {}
16 if (!context) { 16 if (!context) {
17 try { 17 try {
18 context = canvas.getContext("experimental-webgl", attrib); 18 context = canvas.getContext("experimental-webgl", attrib);
19 } catch(e) {} 19 } catch(e) {}
20 } 20 }
21 return context; 21 return context;
22 } 22 }
23 23
24 function runTest() { 24 function runTest() {
25 var gl = init(); 25 var gl = init();
26 var attrib = null; 26 var attrib = null;
27 if (gl) 27 if (gl)
28 attrib = gl.getContextAttributes(); 28 attrib = gl.getContextAttributes();
29 domAutomationController.setAutomationId(1);
30 if (gl && attrib && attrib.antialias) 29 if (gl && attrib && attrib.antialias)
31 domAutomationController.send("TRUE"); 30 domAutomationController.send("TRUE");
32 else 31 else
33 domAutomationController.send("FALSE"); 32 domAutomationController.send("FALSE");
34 } 33 }
35 </script> 34 </script>
36 </head> 35 </head>
37 <body onload="runTest()"> 36 <body onload="runTest()">
38 WebGL should use multisampling if it is allowed. 37 WebGL should use multisampling if it is allowed.
39 </body> 38 </body>
40 </html> 39 </html>
OLDNEW
« no previous file with comments | « chrome/test/data/gpu/feature_canvas2d.html ('k') | chrome/test/data/gpu/feature_raf_no_damage.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698