Skip to content

Commit 7b306c4

Browse files
dyc3l0ngvh
authored andcommitted
chore: sync html prettier tests (biomejs#8291)
1 parent 45cdc91 commit 7b306c4

File tree

231 files changed

+6249
-386
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

231 files changed

+6249
-386
lines changed

benchmark/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
"@typescript-eslint/parser": "8.46.4",
1616
"dprint": "0.50.2",
1717
"eslint": "9.39.1",
18-
"prettier": "3.6.2"
18+
"prettier": "3.7.4"
1919
}
2020
}

crates/biome_formatter_test/src/prettier/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"start": "node prepare_tests"
55
},
66
"dependencies": {
7-
"prettier": "3.6.2"
7+
"prettier": "3.7.1"
88
},
99
"private": true
1010
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<button onclick="alert( '1')">click me!</button>
2+
3+
<div onclick="handleClick( event )" onmouseover="showTooltip( this )" onmouseout="hideTooltip( )">Hover me</div>
4+
5+
<img onerror='handleError( this )' onload="imageLoaded( event )" />
6+
7+
<button onclick="(event) => { console.log('clicked'); handleClick( event ); }">Modern JS</button>
8+
9+
<div onclick="processData( { id: 123, name: 'test' }, [ 1, 2, 3 ] )">Data</div>
10+
11+
<button onclick="api.user.get( 123 ).then( data => updateUI( data ) )">API Call</button>
12+
13+
<input onfocus="highlightField( this )" onblur="validateField( this.value )" />
14+
<select onchange="filterResults( this.value, this.selectedIndex )">
15+
<option>Option 1</option>
16+
</select>
17+
18+
<button onclick="
19+
alert(1); alert(2);
20+
">Click</button>
21+
22+
<button onclick="
23+
return false
24+
">Click</button>
25+
26+
<button onclick="
27+
console.log(arguments)
28+
">Click</button>
29+
30+
<button onclick="
31+
console.log(onclick)
32+
">Click</button>
33+
34+
<button onclick="
35+
'use strict'
36+
console.log(onclick)
37+
">Click</button>
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<button onclick="alert('1')">click me!</button>
2+
3+
<div
4+
onclick="handleClick(event)"
5+
onmouseover="showTooltip(this)"
6+
onmouseout="hideTooltip()"
7+
>
8+
Hover me
9+
</div>
10+
11+
<img onerror="handleError(this)" onload="imageLoaded(event)" />
12+
13+
<button
14+
onclick="
15+
(event) => {
16+
console.log('clicked');
17+
handleClick(event);
18+
}
19+
"
20+
>
21+
Modern JS
22+
</button>
23+
24+
<div onclick="processData({ id: 123, name: 'test' }, [1, 2, 3])">Data</div>
25+
26+
<button onclick="api.user.get(123).then((data) => updateUI(data))">
27+
API Call
28+
</button>
29+
30+
<input onfocus="highlightField(this)" onblur="validateField(this.value)" />
31+
<select onchange="filterResults(this.value, this.selectedIndex)">
32+
<option>Option 1</option>
33+
</select>
34+
35+
<button
36+
onclick="
37+
alert(1);
38+
alert(2);
39+
"
40+
>
41+
Click
42+
</button>
43+
44+
<button onclick="return false;">Click</button>
45+
46+
<button onclick="console.log(arguments)">Click</button>
47+
48+
<button onclick="console.log(onclick)">Click</button>
49+
50+
<button
51+
onclick='
52+
"use strict";
53+
console.log(onclick);
54+
'
55+
>
56+
Click
57+
</button>
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<button onclick="alert('1')">click me!</button>
2+
3+
<div
4+
onclick="handleClick(event)"
5+
onmouseover="showTooltip(this)"
6+
onmouseout="hideTooltip()"
7+
>
8+
Hover me
9+
</div>
10+
11+
<img onerror="handleError(this)" onload="imageLoaded(event)" />
12+
13+
<button
14+
onclick="
15+
(event) => {
16+
console.log('clicked');
17+
handleClick(event);
18+
}
19+
"
20+
>
21+
Modern JS
22+
</button>
23+
24+
<div onclick="processData({ id: 123, name: 'test' }, [1, 2, 3])">Data</div>
25+
26+
<button onclick="api.user.get(123).then((data) => updateUI(data))">
27+
API Call
28+
</button>
29+
30+
<input onfocus="highlightField(this)" onblur="validateField(this.value)" />
31+
<select onchange="filterResults(this.value, this.selectedIndex)">
32+
<option>Option 1</option>
33+
</select>
34+
35+
<button
36+
onclick="
37+
alert(1);
38+
alert(2);
39+
"
40+
>
41+
Click
42+
</button>
43+
44+
<button onclick="return false;">Click</button>
45+
46+
<button onclick="console.log(arguments)">Click</button>
47+
48+
<button onclick="console.log(onclick)">Click</button>
49+
50+
<button
51+
onclick="
52+
&quot;use strict&quot;;
53+
console.log(onclick);
54+
"
55+
>
56+
Click
57+
</button>

0 commit comments

Comments
 (0)