Permalink
Browse files

Store a testsuite revision

  • Loading branch information...
1 parent 37dcbcc commit 09d7ee2202b778645c76254b7338f230f3f46303 @NielsLeenheer NielsLeenheer committed Nov 27, 2013
Showing with 4 additions and 2 deletions.
  1. +1 −1 index.html
  2. +1 −1 qr.html
  3. +2 −0 scripts/engine.js
View
@@ -250,7 +250,7 @@ <h1 data-i18n><span>HTML<strong>5</strong>test</span> <em>how well does your bro
try {
var payload = '{' +
'"version": "5",' +
- '"revision": "0",' +
+ '"revision": "' + (r.revision || '0') + '",' +
'"uniqueid": "' + r.uniqueid + '",' +
'"score": ' + r.score + ',' +
'"maximum": ' + r.maximum + ',' +
View
@@ -92,7 +92,7 @@
var payload = '{' +
'"version": "5",' +
- '"revision": "0",' +
+ '"revision": "' + (r.revision || '0') + '",' +
'"uniqueid": "' + r.uniqueid + '",' +
'"score": ' + r.score + ',' +
'"maximum": ' + r.maximum + ',' +
View
@@ -8,6 +8,7 @@ Test = (function() {
PREFIX = 8,
BLOCKED = 16;
+ var revision = 1;
var blacklists = {};
@@ -143,6 +144,7 @@ Test = (function() {
var uniqueid = (((1+Math.random())*0x1000000)|0).toString(16).substring(1) + ("0000000000" + (new Date().getTime() - new Date(2010,0,1).getTime()).toString(16)).slice(-10);
this.callback({
+ revision: revision,
uniqueid: uniqueid,
score: this.results.points,
results: results.join(','),

0 comments on commit 09d7ee2

Please sign in to comment.