content/canvas/test/webgl-conformance/fix-webgl-harness-async.patch

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/content/canvas/test/webgl-conformance/fix-webgl-harness-async.patch	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,22 @@
     1.4 +diff --git a/content/canvas/test/webgl/resources/webgl-test-harness.js b/content/canvas/test/webgl/resources/webgl-test-harness.js
     1.5 +--- a/content/canvas/test/webgl/resources/webgl-test-harness.js
     1.6 ++++ b/content/canvas/test/webgl/resources/webgl-test-harness.js
     1.7 +@@ -362,18 +362,16 @@ TestHarness.prototype.addFiles_ = functi
     1.8 +   }
     1.9 +   log("total files: " + files.length);
    1.10 +   for (var ii = 0; ii < files.length; ++ii) {
    1.11 +     log("" + ii + ": " + files[ii]);
    1.12 +     this.files.push(new TestFile(files[ii]));
    1.13 +     this.reportFunc(TestHarness.reportType.ADD_PAGE, files[ii], undefined);
    1.14 +   }
    1.15 +   this.reportFunc(TestHarness.reportType.READY, undefined, undefined);
    1.16 +-  this.nextFileIndex = files.length;
    1.17 +-  this.lastFileIndex = files.length;
    1.18 + }
    1.19 + 
    1.20 + TestHarness.prototype.runTests = function(opt_start, opt_count) {
    1.21 +   var count = opt_count || this.files.length;
    1.22 +   this.nextFileIndex = opt_start || 0;
    1.23 +   this.lastFileIndex = this.nextFileIndex + count;
    1.24 +   this.startNextFile();
    1.25 + };

mercurial