-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-harness.html
More file actions
48 lines (45 loc) · 1.95 KB
/
test-harness.html
File metadata and controls
48 lines (45 loc) · 1.95 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>GitHub DNA Pet Test Harness</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Testing DNA Extraction</h1>
<!-- Mocking the third-party signature element -->
<div id="gh-pulse-signature">
<span class="gh-sig-char">F</span>
<span class="gh-sig-char">E</span>
<span class="gh-sig-char">A</span>
<span class="gh-sig-char">B</span>
<span class="gh-sig-char">1</span>
<span class="gh-sig-char">2</span>
<span class="gh-sig-char">3</span>
<span class="gh-sig-char">4</span>
</div>
<!-- Mocking the contribution graph -->
<div class="js-calendar-graph" style="margin: 50px; width: 600px; height: 100px; background: #eee; position: relative;">
<svg width="600" height="100">
<!-- Simple grid of rects -->
<rect class="ContributionCalendar-day" x="10" y="10" width="10" height="10" fill="#ebedf0"></rect>
<rect class="ContributionCalendar-day" x="25" y="10" width="10" height="10" fill="#9be9a8"></rect>
<rect class="ContributionCalendar-day" x="40" y="10" width="10" height="10" fill="#40c463"></rect>
<rect class="ContributionCalendar-day" x="10" y="25" width="10" height="10" fill="#30a14e"></rect>
<rect class="ContributionCalendar-day" x="25" y="25" width="10" height="10" fill="#216e39"></rect>
<!-- Add more as needed -->
</svg>
</div>
<script src="dist/content.js"></script>
<script>
console.log("--- Test Harness Loaded ---");
// The script should auto-run due to MutationObserver
// Let's manually trigger it too if it was already there
const sig = document.getElementById('gh-pulse-signature');
if (sig) {
console.log("Manually triggering initEngine for test...");
initEngine(sig);
}
</script>
</body>
</html>