Skip to content

Commit 639b76a

Browse files
feat: add test HTML fixture for integration tests
1 parent 57408c7 commit 639b76a

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

tests/webview/fixtures/test.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head><title>Test Page</title></head>
4+
<body>
5+
<h1 id="heading">Hello from Test</h1>
6+
<div id="result"></div>
7+
<script>
8+
// Used by integration tests to verify evalJs and bind/emit work
9+
window.testState = { ready: true, messages: [] };
10+
11+
onPhpEvent('testEvent', function(data) {
12+
window.testState.messages.push(data);
13+
document.getElementById('result').textContent = JSON.stringify(data);
14+
});
15+
</script>
16+
</body>
17+
</html>

0 commit comments

Comments
 (0)