Skip to content

Commit

Permalink
tests/benchmarks: Add default page CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
leikareipa committed Jun 22, 2020
1 parent c1251d8 commit c11157a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 16 deletions.
9 changes: 9 additions & 0 deletions tests/performance/benchmarks/benchmark.css
@@ -0,0 +1,9 @@
body
{
text-align: center;
background-color: gray;
color: white;
padding: 0;
margin: 20px;
font-family: sans-serif;
}
16 changes: 0 additions & 16 deletions tests/performance/benchmarks/benchmark.js
Expand Up @@ -398,21 +398,5 @@ function create_dom_elements()
mainContainer.appendChild(infoLabel);
}

document.body.style.cssText = `
text-align: center;
background-color: gray;
color: white;
padding: 0;
margin: 20px;
font-family: sans-serif;
`;

return;
}

function remove_canvas()
{
document.getElementById(canvasId).remove();

return;
}
1 change: 1 addition & 0 deletions tests/performance/benchmarks/quake-1-e1m1-light.html
Expand Up @@ -3,6 +3,7 @@
<head>
<meta name="viewport" content="width=device-width">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="benchmark.css">
<title>Benchmark - Quake 1 (E1M1) with lighting - Retro n-gon renderer</title>
</head>
<body>
Expand Down
1 change: 1 addition & 0 deletions tests/performance/benchmarks/quake-1-e1m1.html
Expand Up @@ -3,6 +3,7 @@
<head>
<meta name="viewport" content="width=device-width">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="benchmark.css">
<title>Benchmark - Quake 1 (E1M1) - Retro n-gon renderer</title>
</head>
<body>
Expand Down

0 comments on commit c11157a

Please sign in to comment.