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

Side by Side Diff: content/test/data/gpu/pixel_webgl_util.js

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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // READ BEFORE UPDATING: 5 // READ BEFORE UPDATING:
6 // If this file is updated, make sure to increment the "revision" value of any 6 // If this file is updated, make sure to increment the "revision" value of any
7 // tests that use this file in content/test/gpu/page_sets/pixel_tests.py. This 7 // tests that use this file in content/test/gpu/page_sets/pixel_tests.py. This
8 // will ensure that the baseline images are regenerated on the next run. 8 // will ensure that the baseline images are regenerated on the next run.
9 9
10 var vertexShader = [ 10 var vertexShader = [
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 var g_glUtil; 100 var g_glUtil;
101 101
102 function makeMain(antialias, alpha) 102 function makeMain(antialias, alpha)
103 { 103 {
104 return function() { 104 return function() {
105 var canvas = document.getElementById("c"); 105 var canvas = document.getElementById("c");
106 g_glUtil = initGL(canvas, antialias, alpha); 106 g_glUtil = initGL(canvas, antialias, alpha);
107 if (g_glUtil && setup(g_glUtil)) { 107 if (g_glUtil && setup(g_glUtil)) {
108 drawSomeFramesUtil(); 108 drawSomeFramesUtil();
109 } else { 109 } else {
110 domAutomationController.setAutomationId(1);
111 domAutomationController.send("FAILURE"); 110 domAutomationController.send("FAILURE");
112 } 111 }
113 }; 112 };
114 } 113 }
115 114
116 function drawSomeFramesUtil() 115 function drawSomeFramesUtil()
117 { 116 {
118 if (g_swapsBeforeAckUtil == 0) { 117 if (g_swapsBeforeAckUtil == 0) {
119 domAutomationController.setAutomationId(1);
120 domAutomationController.send("SUCCESS"); 118 domAutomationController.send("SUCCESS");
121 } else { 119 } else {
122 g_swapsBeforeAckUtil--; 120 g_swapsBeforeAckUtil--;
123 drawTriangle(g_glUtil); 121 drawTriangle(g_glUtil);
124 window.requestAnimationFrame(drawSomeFramesUtil); 122 window.requestAnimationFrame(drawSomeFramesUtil);
125 } 123 }
126 } 124 }
OLDNEW
« no previous file with comments | « content/test/data/gpu/pixel_webgl_noalpha_implicit_clear.html ('k') | content/test/data/gpu/webgl.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698