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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « client/site_tests/graphics_WebGLConformance/scripts/make-tarball ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 Common subdirectories: webgl-conformance-1.0.0.original/conformance and webgl-co nformance-1.0.0/conformance
2 Common subdirectories: webgl-conformance-1.0.0.original/extra and webgl-conforma nce-1.0.0/extra
3 Common subdirectories: webgl-conformance-1.0.0.original/misc and webgl-conforman ce-1.0.0/misc
4 Common subdirectories: webgl-conformance-1.0.0.original/resources and webgl-conf ormance-1.0.0/resources
5 diff -c webgl-conformance-1.0.0.original/webgl-conformance-tests.html webgl-conf ormance-1.0.0/webgl-conformance-tests.html
6 *** webgl-conformance-1.0.0.original/webgl-conformance-tests.html Wed Apr 13 17:58:19 2011
7 --- webgl-conformance-1.0.0/webgl-conformance-tests.html Wed Apr 13 18:02 :42 2011
8 ***************
9 *** 208,213 ****
10 --- 208,250 ----
11 this.currentPage = null;
12 }
13 };
14 +
15 + // send results to autotest graphics_WebGLConformance.py
16 + Reporter.prototype.postFinalResults = function(summary) {
17 + var xhr = new XMLHttpRequest();
18 + xhr.open('POST', 'http://localhost:8000/WebGL/results', false);
19 + xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
20 + xhr.onreadystatechange = function() {
21 + if (xhr.readyState != 4) { return; }
22 + }
23 + msg = "";
24 + var totalPages = 0;
25 + var totalSuccessfulPages = 0;
26 + var totalTests = 0;
27 + var totalSuccessful = 0;
28 + var totalTimeouts = 0;
29 +
30 + for (var url in this.pagesByURL) {
31 + var page = this.pagesByURL[url];
32 + ++totalPages;
33 + totalTests += page.totalTests;
34 + totalSuccessful += page.totalSuccessful;
35 + totalTimeouts += page.totalTimeouts;
36 + pageFailures = page.totalTests - page.totalSuccessful;
37 + if (pageFailures == 0)
38 + ++totalSuccessfulPages;
39 + else
40 + msg = msg + "&" + escape("failed_url:" + url) + "=" + pageFailures;
41 + }
42 + // pages or group counts (coarse)
43 + msg = msg + "&gtotal=" + totalPages + "&gpass=" + totalSuccessfulPages;
44 + // individual test counts (fine)
45 + msg = msg + "&ttotal=" + totalTests + "&tpass=" + totalSuccessful;
46 + msg = msg + "&ttimeout=" + totalTimeouts;
47 + // copy of the text summary to store on the file system
48 + msg = msg + "&summary=" + escape(summary);
49 + xhr.send(msg);
50 + }
51
52 Reporter.prototype.displayFinalResults = function() {
53 var totalTests = 0;
54 ***************
55 *** 262,267 ****
56 --- 299,306 ----
57 while (r.firstChild) r.removeChild(r.firstChild);
58 r.appendChild(document.createTextNode(tx));
59 document.getElementById("showTextSummary").style.visibility = "visible";
60 + // send results to autotest graphics_WebGLConformance
61 + this.postFinalResults(tx);
62 };
63
64 Reporter.prototype.reportFunc = function(type, msg, success) {
65 ***************
66 *** 317,322 ****
67 --- 356,363 ----
68 var elem = document.getElementById("nowebgl");
69 elem.style.display = "";
70 }
71 + // automatically start for autotest graphics_WebGLConformance
72 + testHarness.runTests();
73 }
74 </script>
75 </head>
OLDNEW
« 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