mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-27 16:26:40 +03:00
Add hurlfmt integ test for standalone HTML
This commit is contained in:
parent
145afa80c8
commit
27dd22005f
2
integration/hurlfmt/tests_ok/html_standalone.hurl
Normal file
2
integration/hurlfmt/tests_ok/html_standalone.hurl
Normal file
@ -0,0 +1,2 @@
|
||||
GET http://localhost:8000/hello
|
||||
HTTP 200
|
101
integration/hurlfmt/tests_ok/html_standalone.out
Normal file
101
integration/hurlfmt/tests_ok/html_standalone.out
Normal file
@ -0,0 +1,101 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Hurl File</title>
|
||||
<style>
|
||||
pre {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: monospace;
|
||||
font-size: 0.825rem;
|
||||
line-height: 1.2rem;
|
||||
}
|
||||
|
||||
.comment {
|
||||
color: dimgray;
|
||||
}
|
||||
|
||||
.method {
|
||||
color: black;
|
||||
}
|
||||
|
||||
.url {
|
||||
color: darkblue;
|
||||
}
|
||||
|
||||
.version {
|
||||
color: black;
|
||||
}
|
||||
|
||||
.number, boolean {
|
||||
color: blue;
|
||||
}
|
||||
|
||||
.section-header {
|
||||
color: darkmagenta;
|
||||
}
|
||||
|
||||
.query-type {
|
||||
color: teal;
|
||||
}
|
||||
|
||||
.filter-type, .not, .predicate-type {
|
||||
color: darkblue;
|
||||
}
|
||||
|
||||
|
||||
.string, .multiline, .name, .json, .xml, .base64, .hex, .filename, .cookie-value {
|
||||
color: darkgreen;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
|
||||
.comment {
|
||||
color: dimgray;
|
||||
}
|
||||
|
||||
.method {
|
||||
color: orange;
|
||||
}
|
||||
|
||||
.url {
|
||||
color: cyan;
|
||||
}
|
||||
|
||||
.version {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.number, .boolean {
|
||||
color: dodgerblue;
|
||||
}
|
||||
|
||||
.section-header {
|
||||
color: magenta;
|
||||
}
|
||||
|
||||
.query-type {
|
||||
color: cyan;
|
||||
}
|
||||
|
||||
.filter-type, .not, .predicate-type {
|
||||
color: orange;
|
||||
}
|
||||
|
||||
.string, .multiline, .name, .json, .xml, .base64, .hex, .filename, .cookie-value {
|
||||
color: forestgreen;
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<pre><code class="language-hurl"><span class="hurl-entry"><span class="request"><span class="line"><span class="method">GET</span> <span class="url">http://localhost:8000/hello</span></span>
|
||||
</span><span class="response"><span class="line"><span class="version">HTTP</span> <span class="number">200</span></span>
|
||||
</span></span></code></pre>
|
||||
</body>
|
||||
</html>
|
3
integration/hurlfmt/tests_ok/html_standalone.ps1
Executable file
3
integration/hurlfmt/tests_ok/html_standalone.ps1
Executable file
@ -0,0 +1,3 @@
|
||||
Set-StrictMode -Version latest
|
||||
$ErrorActionPreference = 'Stop'
|
||||
hurlfmt --out html --standalone tests_ok/html_standalone.hurl
|
3
integration/hurlfmt/tests_ok/html_standalone.sh
Executable file
3
integration/hurlfmt/tests_ok/html_standalone.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
set -Eeuo pipefail
|
||||
hurlfmt --out html --standalone tests_ok/html_standalone.hurl
|
Loading…
Reference in New Issue
Block a user