mirror of
https://github.com/garrytan/gstack.git
synced 2026-05-07 05:56:41 +02:00
b6a946aa06
- Network idle: click on fetch button waits for XHR, static click is fast - Chain pipe: pipe-delimited commands, quoted args, JSON still works - State: save/load round-trip, name sanitization, missing state error - Frame: switch to iframe + back, snapshot context header, fill in frame, goto-in-frame guard, usage error New fixtures: network-idle.html (fetch + static buttons), iframe.html (srcdoc) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
31 lines
852 B
HTML
31 lines
852 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Test Page - Iframe</title>
|
|
<style>
|
|
body { font-family: sans-serif; padding: 20px; }
|
|
iframe { border: 1px solid #ccc; width: 400px; height: 200px; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1 id="main-title">Main Page</h1>
|
|
<iframe id="test-frame" name="testframe" srcdoc='
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<body>
|
|
<h1 id="frame-title">Inside Frame</h1>
|
|
<button id="frame-btn">Frame Button</button>
|
|
<input id="frame-input" type="text" placeholder="Type here">
|
|
<div id="frame-result"></div>
|
|
<script>
|
|
document.getElementById("frame-btn").addEventListener("click", () => {
|
|
document.getElementById("frame-result").textContent = "Frame button clicked";
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|
|
'></iframe>
|
|
</body>
|
|
</html>
|