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

Unified Diff: client/site_tests/graphics_WebGLConformance/webgl-conformance-1.0.0.patch

Issue 6849012: update WebGL to initial release 1.0.0 (Closed) Base URL: ssh://gitrw.chromium.org:9222/autotest.git@master
Patch Set: move tarball to production url Created 9 years, 8 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 | « client/site_tests/graphics_WebGLConformance/scripts/make-tarball ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/site_tests/graphics_WebGLConformance/webgl-conformance-1.0.0.patch
diff --git a/client/site_tests/graphics_WebGLConformance/webgl-conformance-1.0.0.patch b/client/site_tests/graphics_WebGLConformance/webgl-conformance-1.0.0.patch
new file mode 100644
index 0000000000000000000000000000000000000000..ff8fcd26610265e65a21725d866ab31cdcf7d8c3
--- /dev/null
+++ b/client/site_tests/graphics_WebGLConformance/webgl-conformance-1.0.0.patch
@@ -0,0 +1,75 @@
+Common subdirectories: webgl-conformance-1.0.0.original/conformance and webgl-conformance-1.0.0/conformance
+Common subdirectories: webgl-conformance-1.0.0.original/extra and webgl-conformance-1.0.0/extra
+Common subdirectories: webgl-conformance-1.0.0.original/misc and webgl-conformance-1.0.0/misc
+Common subdirectories: webgl-conformance-1.0.0.original/resources and webgl-conformance-1.0.0/resources
+diff -c webgl-conformance-1.0.0.original/webgl-conformance-tests.html webgl-conformance-1.0.0/webgl-conformance-tests.html
+*** webgl-conformance-1.0.0.original/webgl-conformance-tests.html Wed Apr 13 17:58:19 2011
+--- webgl-conformance-1.0.0/webgl-conformance-tests.html Wed Apr 13 18:02:42 2011
+***************
+*** 208,213 ****
+--- 208,250 ----
+ this.currentPage = null;
+ }
+ };
++
++ // send results to autotest graphics_WebGLConformance.py
++ Reporter.prototype.postFinalResults = function(summary) {
++ var xhr = new XMLHttpRequest();
++ xhr.open('POST', 'http://localhost:8000/WebGL/results', false);
++ xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
++ xhr.onreadystatechange = function() {
++ if (xhr.readyState != 4) { return; }
++ }
++ msg = "";
++ var totalPages = 0;
++ var totalSuccessfulPages = 0;
++ var totalTests = 0;
++ var totalSuccessful = 0;
++ var totalTimeouts = 0;
++
++ for (var url in this.pagesByURL) {
++ var page = this.pagesByURL[url];
++ ++totalPages;
++ totalTests += page.totalTests;
++ totalSuccessful += page.totalSuccessful;
++ totalTimeouts += page.totalTimeouts;
++ pageFailures = page.totalTests - page.totalSuccessful;
++ if (pageFailures == 0)
++ ++totalSuccessfulPages;
++ else
++ msg = msg + "&" + escape("failed_url:" + url) + "=" + pageFailures;
++ }
++ // pages or group counts (coarse)
++ msg = msg + "&gtotal=" + totalPages + "&gpass=" + totalSuccessfulPages;
++ // individual test counts (fine)
++ msg = msg + "&ttotal=" + totalTests + "&tpass=" + totalSuccessful;
++ msg = msg + "&ttimeout=" + totalTimeouts;
++ // copy of the text summary to store on the file system
++ msg = msg + "&summary=" + escape(summary);
++ xhr.send(msg);
++ }
+
+ Reporter.prototype.displayFinalResults = function() {
+ var totalTests = 0;
+***************
+*** 262,267 ****
+--- 299,306 ----
+ while (r.firstChild) r.removeChild(r.firstChild);
+ r.appendChild(document.createTextNode(tx));
+ document.getElementById("showTextSummary").style.visibility = "visible";
++ // send results to autotest graphics_WebGLConformance
++ this.postFinalResults(tx);
+ };
+
+ Reporter.prototype.reportFunc = function(type, msg, success) {
+***************
+*** 317,322 ****
+--- 356,363 ----
+ var elem = document.getElementById("nowebgl");
+ elem.style.display = "";
+ }
++ // automatically start for autotest graphics_WebGLConformance
++ testHarness.runTests();
+ }
+ </script>
+ </head>
« no previous file with comments | « client/site_tests/graphics_WebGLConformance/scripts/make-tarball ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698