69 lines
3.5 KiB
HTML
69 lines
3.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="da">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Scenario 3: Nested Stacking</title>
|
|
<link rel="stylesheet" href="scenario-styles.css">
|
|
</head>
|
|
<body>
|
|
<div class="scenario-container">
|
|
<a href="../stacking-visualization-new.html" class="back-link">← Back to All Scenarios</a>
|
|
|
|
<div class="scenario-header">
|
|
<h1 class="scenario-title">Scenario 3: Nested Stacking</h1>
|
|
<div id="test-results"></div>
|
|
</div>
|
|
|
|
<div class="scenario-description">
|
|
<h3>Description</h3>
|
|
<p>Progressive nesting pattern: Event A (09:00-15:00) contains B (10:00-13:00), B contains C (11:00-12:00), and C overlaps with D (12:30-13:30). Tests correct stack level calculation for nested events.</p>
|
|
|
|
<div class="expected-result">
|
|
<strong>Expected Result:</strong><br>
|
|
Event A: stackLevel=0 (stacked)<br>
|
|
Event B: stackLevel=1 (stacked)<br>
|
|
Event C: stackLevel=2 (stacked)<br>
|
|
Event D: stackLevel=2 (stacked)
|
|
</div>
|
|
</div>
|
|
|
|
<div class="calendar-column">
|
|
<swp-event data-event-id="S3A" data-title="Scenario 3: Event A" data-start="2025-10-07T07:00:00.000Z" data-end="2025-10-07T13:00:00.000Z" data-type="work" data-duration="360" data-stack-link="{"stackLevel":0}" style="position: absolute; top: 1px; height: 357px; left: 2px; right: 2px; margin-left: 0px; z-index: 100;">
|
|
<swp-event-time data-duration="360">09:00 - 15:00</swp-event-time>
|
|
<swp-event-title>Scenario 3: Event A</swp-event-title>
|
|
</swp-event>
|
|
|
|
<swp-event data-event-id="S3B" data-title="Scenario 3: Event B" data-start="2025-10-07T08:00:00.000Z" data-end="2025-10-07T11:00:00.000Z" data-type="work" data-duration="180" data-stack-link="{"stackLevel":1}" style="position: absolute; top: 81px; height: 217px; left: 2px; right: 2px; margin-left: 15px; z-index: 101;">
|
|
<swp-event-time data-duration="180">10:00 - 13:00</swp-event-time>
|
|
<swp-event-title>Scenario 3: Event B</swp-event-title>
|
|
</swp-event>
|
|
|
|
<swp-event data-event-id="S3C" data-title="Scenario 3: Event C" data-start="2025-10-07T09:00:00.000Z" data-end="2025-10-07T10:00:00.000Z" data-type="work" data-duration="60" data-stack-link="{"stackLevel":2}" style="position: absolute; top: 161px; height: 77px; left: 2px; right: 2px; margin-left: 30px; z-index: 102;">
|
|
<swp-event-time data-duration="60">11:00 - 12:00</swp-event-time>
|
|
<swp-event-title>Scenario 3: Event C</swp-event-title>
|
|
</swp-event>
|
|
|
|
<swp-event data-event-id="S3D" data-title="Scenario 3: Event D" data-start="2025-10-07T10:30:00.000Z" data-end="2025-10-07T11:30:00.000Z" data-type="work" data-duration="60" data-stack-link="{"stackLevel":2}" style="position: absolute; top: 241px; height: 77px; left: 2px; right: 2px; margin-left: 30px; z-index: 102;">
|
|
<swp-event-time data-duration="60">12:30 - 13:30</swp-event-time>
|
|
<swp-event-title>Scenario 3: Event D</swp-event-title>
|
|
</swp-event>
|
|
</div>
|
|
</div>
|
|
|
|
<script type="module">
|
|
import { ScenarioTestRunner } from './scenario-test-runner.js';
|
|
|
|
window.scenarioTests = {
|
|
id: 'scenario-3',
|
|
expected: [
|
|
{ eventId: 'S3A', stackLevel: 0, type: 'stacked' },
|
|
{ eventId: 'S3B', stackLevel: 1, type: 'stacked' },
|
|
{ eventId: 'S3C', stackLevel: 2, type: 'stacked' },
|
|
{ eventId: 'S3D', stackLevel: 2, type: 'stacked' }
|
|
]
|
|
};
|
|
</script>
|
|
<script type="module" src="scenario-test-runner.js"></script>
|
|
</body>
|
|
</html>
|