Index: chrome/test/data/perf/latency_suite.html |
diff --git a/chrome/test/data/perf/latency_suite.html b/chrome/test/data/perf/latency_suite.html |
index c1dfa4ade8394d9ad532c4e889bd8eb1b93bc646..115047de73b2481a8fbd0110be350904e389a09a 100644 |
--- a/chrome/test/data/perf/latency_suite.html |
+++ b/chrome/test/data/perf/latency_suite.html |
@@ -58,7 +58,7 @@ function setCoordinates(e) { |
function init() { |
parseParams(); |
- if (testParams.mode == 'webgl') { |
+ if (testParams.mode.indexOf('webgl') != -1) { |
var canvas = document.getElementById('canvas'); |
if (!canvas) |
return false; |
@@ -101,7 +101,7 @@ function draw() { |
sleep(parseInt(testParams.delayTimeMS)); |
} |
- if (testParams.mode == 'webgl') { |
+ if (testParams.mode.indexOf('webgl') != -1) { |
gl.viewport(0, 0, testParams.canvasWidth, testParams.canvasWidth); |
if (testParams.paintHeavy) { |
gl.clearColor(0, 0, 0.0, 1.0); |
@@ -128,7 +128,7 @@ function draw() { |
frameCount++; |
if (frameCount == parseInt(testParams.numFrames)) { |
- if (testParams.mode == 'webgl') |
+ if (testParams.mode.indexOf('webgl') != -1) |
gl.finish(); |
endTest(); |
} else { |