mirror of
https://github.com/denoland/deno.git
synced 2025-02-14 17:47:35 -05:00
fix test
This commit is contained in:
parent
9b820ee41a
commit
11d9bd2e69
6 changed files with 9 additions and 47 deletions
|
@ -442,7 +442,6 @@ pub fn format_html(
|
|||
_ => {
|
||||
let mut typescript_config_builder =
|
||||
get_typescript_config_builder(fmt_options);
|
||||
eprintln!("indent level {}", hints.indent_level);
|
||||
typescript_config_builder.file_indent_level(hints.indent_level);
|
||||
let mut typescript_config = typescript_config_builder.build();
|
||||
typescript_config.line_width = hints.print_width as u32;
|
||||
|
@ -845,8 +844,6 @@ fn format_ensure_stable(
|
|||
if next_pass_text == current_text {
|
||||
return Ok(Some(next_pass_text));
|
||||
}
|
||||
eprintln!("current text {}", current_text);
|
||||
eprintln!("next pass test {}", next_pass_text);
|
||||
current_text = next_pass_text;
|
||||
}
|
||||
Ok(None) => {
|
||||
|
|
20
foo1.html
20
foo1.html
|
@ -1,20 +0,0 @@
|
|||
<!-- demo.html -->
|
||||
<!DOCTYPE html>
|
||||
<html lang="en-US">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Demo</title>
|
||||
</head>
|
||||
<body>
|
||||
<script type="module">
|
||||
const supportedFormats =
|
||||
await globalThis.BarcodeDetector?.getSupportedFormats() ?? [];
|
||||
if (!supportedFormats.includes("qr_code")) {
|
||||
document.body.innerHTML +=
|
||||
'<p><a \
|
||||
href="https://developer.mozilla.org/en-US/docs/Web/API/BarcodeDetector">QR Code detection</a> is not natively supported by your web browser. 😔</p>';
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,9 +0,0 @@
|
|||
<html>
|
||||
<body>
|
||||
<script>
|
||||
/* some multi-line comment
|
||||
with function below it */
|
||||
someFunc();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,6 +0,0 @@
|
|||
<!-- tt.html -->
|
||||
<script>
|
||||
"{"; // This line cause panic
|
||||
`
|
||||
`;
|
||||
</script>
|
|
@ -14,7 +14,7 @@
|
|||
"output": "broken.out"
|
||||
},
|
||||
"with_js": {
|
||||
"args": "fmt with_js.html",
|
||||
"args": "fmt --check with_js.html",
|
||||
"output": "Checked 1 file\n"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
<html>
|
||||
<body>
|
||||
<script>
|
||||
/* some multi-line comment
|
||||
with function below it */
|
||||
someFunc();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
<body>
|
||||
<script>
|
||||
/* some multi-line comment
|
||||
with function below it */
|
||||
someFunc();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Reference in a new issue