Skip to content

Commit

Permalink
Change order of perf test URL hash to have the implementation first.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sepand Parhami committed Sep 26, 2016
1 parent 91bf867 commit d31e2a4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions perf/create-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function createTests(Renderer, tests, impls) {
update();
run();

window.location.hash = tests.indexOf(test) + ',' + impls.indexOf(impl);
window.location.hash = impls.indexOf(impl) + ',' + tests.indexOf(test);
}

function setTest(test) {
Expand Down Expand Up @@ -100,9 +100,9 @@ function createTests(Renderer, tests, impls) {
});
}

var parts = window.location.hash.split(',');
var test = Number(parts[0]) || 0;
var impl = Number(parts[1]) || 0;
var parts = window.location.hash.substring(1).split(',');
var impl = Number(parts[0]) || 0;
var test = Number(parts[1]) || 0;

setTestAndImpl(tests[test], impls[impl]);
}

0 comments on commit d31e2a4

Please sign in to comment.