Merge pull request #14609 from brendandahl/misc-reftest

Improvements to the reftest analyzer.
This commit is contained in:
Jonas Jenwald 2022-02-26 10:43:36 +01:00 committed by GitHub
commit 4157d771c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 83 additions and 66 deletions

View File

@ -75,8 +75,7 @@ a {
width: 320px;
}
#images {
overflow: auto;
#imagepane {
position: fixed;
left: 340px;
right: 0;
@ -84,6 +83,15 @@ a {
bottom: 0;
}
#images {
position: absolute;
left: 0;
right: 0;
top: 22px;
bottom: 0;
overflow: auto;
}
#imgcontrols {
margin: 0;
display: block;
@ -179,3 +187,8 @@ a {
#differences {
margin: 0 0 10px 20px;
}
#shortcuts {
float: right;
font-size: 10px;
}

View File

@ -92,7 +92,7 @@ Original author: L. David Baron <dbaron@dbaron.org>
<div id="itemlist">
<table id="itemtable"></table>
</div>
<div id="images">
<div id="imagepane">
<form id="imgcontrols">
<label>
<input type="radio" name="which" id="testImage" value="0" checked="checked"> Test
@ -103,7 +103,9 @@ Original author: L. David Baron <dbaron@dbaron.org>
<label>
<input type="checkbox" id="differences"> Circle differences
</label>
<span id="shortcuts">Shortcuts: n=next p=previous t=toggle d=differences</span>
</form>
<div id="images">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="800" height="1000" id="svg">
<defs>
<!-- use sRGB to avoid loss of data -->
@ -171,5 +173,6 @@ Original author: L. David Baron <dbaron@dbaron.org>
<rect id="diffrect" filter="url(#showDifferences)" pointer-events="none" x="0" y="0" width="100%" height="100%" />
</svg>
</div>
</div>
</body>
</html>

View File

@ -336,6 +336,7 @@ window.onload = function () {
}
gSelected = i;
ID("url" + gSelected).classList.add("selected");
ID("url" + gSelected).scrollIntoView();
const item = gTestItems[i];
const cell = ID("images");