feat(app): artifact viewer renders HTML documents inertly (sandboxed iframe on web, script-free web view on mobile)
This commit is contained in:
@@ -109,6 +109,14 @@ void main() {
|
||||
artifactPreviewFormat('text/markdown', 'plan'),
|
||||
ArtifactPreviewFormat.markdown,
|
||||
);
|
||||
expect(
|
||||
artifactPreviewFormat('text/html', 'report.html'),
|
||||
ArtifactPreviewFormat.html,
|
||||
);
|
||||
expect(
|
||||
artifactPreviewFormat('', 'session-repair-3-ab12.html'),
|
||||
ArtifactPreviewFormat.none,
|
||||
);
|
||||
for (final (contentType, name) in <(String, String)>[
|
||||
('text/html', 'session.html'),
|
||||
('application/zip', 'bundle.zip'),
|
||||
|
||||
Reference in New Issue
Block a user