-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main'
- Loading branch information
Showing
277 changed files
with
12,537 additions
and
431 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...erver/src/__tests__/fixtures/html/accesskeys/__snapshots__/accesskeys.expected/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<a data-marko-node-id="0" href="google.com" accesskey="g">Link to Google</a><a data-marko-node-id="1" href="github.com" accesskey="g">Link to GitHub</a> |
63 changes: 63 additions & 0 deletions
63
...-server/src/__tests__/fixtures/html/accesskeys/__snapshots__/accesskeys.expected/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
export interface Input {} | ||
abstract class Component extends Marko.Component<Input> {} | ||
export { type Component }; | ||
(function (this: void) { | ||
const input = Marko._.any as Input; | ||
const component = Marko._.any as Component; | ||
const state = Marko._.state(component); | ||
const out = Marko._.out; | ||
const $signal = Marko._.any as AbortSignal; | ||
const $global = Marko._.getGlobal( | ||
// @ts-expect-error We expect the compiler to error because we are checking if the MarkoRun.Context is defined. | ||
(Marko._.error, Marko._.any as MarkoRun.Context), | ||
); | ||
Marko._.noop({ component, state, out, input, $global, $signal }); | ||
Marko._.renderNativeTag("a")()()({ | ||
href: "google.com", | ||
accesskey: "g", | ||
["renderBody" /*a*/]: (() => { | ||
return () => { | ||
return Marko._.voidReturn; | ||
}; | ||
})(), | ||
}); | ||
Marko._.renderNativeTag("a")()()({ | ||
href: "github.com", | ||
accesskey: "g", | ||
["renderBody" /*a*/]: (() => { | ||
return () => { | ||
return Marko._.voidReturn; | ||
}; | ||
})(), | ||
}); | ||
return; | ||
})(); | ||
export default new (class Template extends Marko._.Template<{ | ||
render( | ||
input: Marko.TemplateInput<Input>, | ||
stream?: { | ||
write: (chunk: string) => void; | ||
end: (chunk?: string) => void; | ||
}, | ||
): Marko.Out<Component>; | ||
|
||
render( | ||
input: Marko.TemplateInput<Input>, | ||
cb?: (err: Error | null, result: Marko.RenderResult<Component>) => void, | ||
): Marko.Out<Component>; | ||
|
||
renderSync(input: Marko.TemplateInput<Input>): Marko.RenderResult<Component>; | ||
|
||
renderToString(input: Marko.TemplateInput<Input>): string; | ||
|
||
stream( | ||
input: Marko.TemplateInput<Input>, | ||
): ReadableStream<string> & NodeJS.ReadableStream; | ||
|
||
api: "class"; | ||
_(): () => <__marko_internal_input extends unknown>( | ||
input: Marko.Directives & | ||
Input & | ||
Marko._.Relate<__marko_internal_input, Marko.Directives & Input>, | ||
) => Marko._.ReturnWithScope<__marko_internal_input, void>; | ||
}> {})(); |
6 changes: 6 additions & 0 deletions
6
...ge-server/src/__tests__/fixtures/html/alt-text/__snapshots__/alt-text.expected/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<map data-marko-node-id="0" name="Map"> | ||
<area data-marko-node-id="1" shape="rect" href="image-map"> | ||
</map><img data-marko-node-id="2" src="source"><a data-marko-node-id="3" href="ebay.com"> | ||
<img data-marko-node-id="4" src="ebay-logo.png" alt="eBay"> | ||
eBay | ||
</a><input data-marko-node-id="5" type="image"><object data-marko-node-id="6" id="object"></object><div data-marko-node-id="7" role="img"></div><svg data-marko-node-id="8" role="img"></svg><img data-marko-node-id="9" alt="test"> |
102 changes: 102 additions & 0 deletions
102
...uage-server/src/__tests__/fixtures/html/alt-text/__snapshots__/alt-text.expected/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
export interface Input {} | ||
abstract class Component extends Marko.Component<Input> {} | ||
export { type Component }; | ||
(function (this: void) { | ||
const input = Marko._.any as Input; | ||
const component = Marko._.any as Component; | ||
const state = Marko._.state(component); | ||
const out = Marko._.out; | ||
const $signal = Marko._.any as AbortSignal; | ||
const $global = Marko._.getGlobal( | ||
// @ts-expect-error We expect the compiler to error because we are checking if the MarkoRun.Context is defined. | ||
(Marko._.error, Marko._.any as MarkoRun.Context), | ||
); | ||
Marko._.noop({ component, state, out, input, $global, $signal }); | ||
Marko._.renderNativeTag("map")()()({ | ||
name: "Map", | ||
["renderBody" /*map*/]: (() => { | ||
Marko._.renderNativeTag("area")()()({ | ||
shape: "rect", | ||
href: "image-map", | ||
}); | ||
return () => { | ||
return Marko._.voidReturn; | ||
}; | ||
})(), | ||
}); | ||
Marko._.renderNativeTag("img")()()({ | ||
src: "source", | ||
}); | ||
Marko._.renderNativeTag("a")()()({ | ||
href: "ebay.com", | ||
["renderBody" /*a*/]: (() => { | ||
Marko._.renderNativeTag("img")()()({ | ||
src: "ebay-logo.png", | ||
alt: "eBay", | ||
}); | ||
return () => { | ||
return Marko._.voidReturn; | ||
}; | ||
})(), | ||
}); | ||
Marko._.renderNativeTag("input")()()({ | ||
type: "image", | ||
}); | ||
Marko._.renderNativeTag("object")()()({ | ||
id: "object", | ||
["renderBody" /*object*/]: (() => { | ||
return () => { | ||
return Marko._.voidReturn; | ||
}; | ||
})(), | ||
}); | ||
Marko._.renderNativeTag("div")()()({ | ||
role: "img", | ||
["renderBody" /*div*/]: (() => { | ||
return () => { | ||
return Marko._.voidReturn; | ||
}; | ||
})(), | ||
}); | ||
Marko._.renderNativeTag("svg")()()({ | ||
role: "img", | ||
["renderBody" /*svg*/]: (() => { | ||
return () => { | ||
return Marko._.voidReturn; | ||
}; | ||
})(), | ||
}); | ||
Marko._.renderNativeTag("img")()()({ | ||
alt: "test", | ||
}); | ||
return; | ||
})(); | ||
export default new (class Template extends Marko._.Template<{ | ||
render( | ||
input: Marko.TemplateInput<Input>, | ||
stream?: { | ||
write: (chunk: string) => void; | ||
end: (chunk?: string) => void; | ||
}, | ||
): Marko.Out<Component>; | ||
|
||
render( | ||
input: Marko.TemplateInput<Input>, | ||
cb?: (err: Error | null, result: Marko.RenderResult<Component>) => void, | ||
): Marko.Out<Component>; | ||
|
||
renderSync(input: Marko.TemplateInput<Input>): Marko.RenderResult<Component>; | ||
|
||
renderToString(input: Marko.TemplateInput<Input>): string; | ||
|
||
stream( | ||
input: Marko.TemplateInput<Input>, | ||
): ReadableStream<string> & NodeJS.ReadableStream; | ||
|
||
api: "class"; | ||
_(): () => <__marko_internal_input extends unknown>( | ||
input: Marko.Directives & | ||
Input & | ||
Marko._.Relate<__marko_internal_input, Marko.Directives & Input>, | ||
) => Marko._.ReturnWithScope<__marko_internal_input, void>; | ||
}> {})(); |
1 change: 1 addition & 0 deletions
1
...sts__/fixtures/html/aria-allowed-attr/__snapshots__/aria-allowed-attr.expected/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<div data-marko-node-id="0" aria-pressed="true">Click me</div> |
53 changes: 53 additions & 0 deletions
53
...tests__/fixtures/html/aria-allowed-attr/__snapshots__/aria-allowed-attr.expected/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
export interface Input {} | ||
abstract class Component extends Marko.Component<Input> {} | ||
export { type Component }; | ||
(function (this: void) { | ||
const input = Marko._.any as Input; | ||
const component = Marko._.any as Component; | ||
const state = Marko._.state(component); | ||
const out = Marko._.out; | ||
const $signal = Marko._.any as AbortSignal; | ||
const $global = Marko._.getGlobal( | ||
// @ts-expect-error We expect the compiler to error because we are checking if the MarkoRun.Context is defined. | ||
(Marko._.error, Marko._.any as MarkoRun.Context), | ||
); | ||
Marko._.noop({ component, state, out, input, $global, $signal }); | ||
Marko._.renderNativeTag("div")()()({ | ||
"aria-pressed": "true", | ||
["renderBody" /*div*/]: (() => { | ||
return () => { | ||
return Marko._.voidReturn; | ||
}; | ||
})(), | ||
}); | ||
return; | ||
})(); | ||
export default new (class Template extends Marko._.Template<{ | ||
render( | ||
input: Marko.TemplateInput<Input>, | ||
stream?: { | ||
write: (chunk: string) => void; | ||
end: (chunk?: string) => void; | ||
}, | ||
): Marko.Out<Component>; | ||
|
||
render( | ||
input: Marko.TemplateInput<Input>, | ||
cb?: (err: Error | null, result: Marko.RenderResult<Component>) => void, | ||
): Marko.Out<Component>; | ||
|
||
renderSync(input: Marko.TemplateInput<Input>): Marko.RenderResult<Component>; | ||
|
||
renderToString(input: Marko.TemplateInput<Input>): string; | ||
|
||
stream( | ||
input: Marko.TemplateInput<Input>, | ||
): ReadableStream<string> & NodeJS.ReadableStream; | ||
|
||
api: "class"; | ||
_(): () => <__marko_internal_input extends unknown>( | ||
input: Marko.Directives & | ||
Input & | ||
Marko._.Relate<__marko_internal_input, Marko.Directives & Input>, | ||
) => Marko._.ReturnWithScope<__marko_internal_input, void>; | ||
}> {})(); |
3 changes: 3 additions & 0 deletions
3
...sts__/fixtures/html/aria-allowed-role/__snapshots__/aria-allowed-role.expected/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<button data-marko-node-id="0" role="heading" aria-level="3"> | ||
header button | ||
</button> |
54 changes: 54 additions & 0 deletions
54
...tests__/fixtures/html/aria-allowed-role/__snapshots__/aria-allowed-role.expected/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
export interface Input {} | ||
abstract class Component extends Marko.Component<Input> {} | ||
export { type Component }; | ||
(function (this: void) { | ||
const input = Marko._.any as Input; | ||
const component = Marko._.any as Component; | ||
const state = Marko._.state(component); | ||
const out = Marko._.out; | ||
const $signal = Marko._.any as AbortSignal; | ||
const $global = Marko._.getGlobal( | ||
// @ts-expect-error We expect the compiler to error because we are checking if the MarkoRun.Context is defined. | ||
(Marko._.error, Marko._.any as MarkoRun.Context), | ||
); | ||
Marko._.noop({ component, state, out, input, $global, $signal }); | ||
Marko._.renderNativeTag("button")()()({ | ||
role: "heading", | ||
"aria-level": "3", | ||
["renderBody" /*button*/]: (() => { | ||
return () => { | ||
return Marko._.voidReturn; | ||
}; | ||
})(), | ||
}); | ||
return; | ||
})(); | ||
export default new (class Template extends Marko._.Template<{ | ||
render( | ||
input: Marko.TemplateInput<Input>, | ||
stream?: { | ||
write: (chunk: string) => void; | ||
end: (chunk?: string) => void; | ||
}, | ||
): Marko.Out<Component>; | ||
|
||
render( | ||
input: Marko.TemplateInput<Input>, | ||
cb?: (err: Error | null, result: Marko.RenderResult<Component>) => void, | ||
): Marko.Out<Component>; | ||
|
||
renderSync(input: Marko.TemplateInput<Input>): Marko.RenderResult<Component>; | ||
|
||
renderToString(input: Marko.TemplateInput<Input>): string; | ||
|
||
stream( | ||
input: Marko.TemplateInput<Input>, | ||
): ReadableStream<string> & NodeJS.ReadableStream; | ||
|
||
api: "class"; | ||
_(): () => <__marko_internal_input extends unknown>( | ||
input: Marko.Directives & | ||
Input & | ||
Marko._.Relate<__marko_internal_input, Marko.Directives & Input>, | ||
) => Marko._.ReturnWithScope<__marko_internal_input, void>; | ||
}> {})(); |
1 change: 1 addition & 0 deletions
1
...tests__/fixtures/html/aria-hidden-body/__snapshots__/aria-hidden-body.expected/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<body data-marko-node-id="0" aria-hidden="true"></body> |
Oops, something went wrong.