blob: 5045679b4cce3794cbf049efe02e2ef75f372fe2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
function setupTest() {
createPassingNotice();
createTestDiv();
}
function createPassingNotice() {
const notice = document.createElement('p');
notice.textContent =
'Test passes if the image below is green when devicePixelRatio is 1, not red.';
document.body.appendChild(notice);
}
function createTestDiv() {
const testDiv = document.createElement('div');
testDiv.id = 'test';
testDiv.style.width = '100px';
testDiv.style.height = '100px';
testDiv.style.backgroundColor = 'red';
document.body.appendChild(testDiv);
}
document.addEventListener("DOMContentLoaded", setupTest);
|