-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: improve fallback content printint
- Loading branch information
1 parent
2559fa8
commit 29cec40
Showing
10 changed files
with
59 additions
and
32 deletions.
There are no files selected for viewing
8 changes: 1 addition & 7 deletions
8
src/__tests__/__snapshots__/ignore-embedded-script-errors.expected/auto.marko
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 |
---|---|---|
@@ -1,18 +1,12 @@ | ||
style { | ||
invalid { color blue; } | ||
} | ||
style { invalid { color blue; } } | ||
|
||
<style> | ||
body | ||
color: blue; | ||
</style> | ||
<script> | ||
console->log( | ||
'a' | ||
); | ||
</script> |
8 changes: 1 addition & 7 deletions
8
src/__tests__/__snapshots__/ignore-embedded-script-errors.expected/concise.marko
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 |
---|---|---|
@@ -1,20 +1,14 @@ | ||
style { | ||
invalid { color blue; } | ||
} | ||
style { invalid { color blue; } } | ||
|
||
style | ||
-- | ||
body | ||
color: blue; | ||
-- | ||
script | ||
-- | ||
console->log( | ||
'a' | ||
); | ||
-- |
8 changes: 1 addition & 7 deletions
8
src/__tests__/__snapshots__/ignore-embedded-script-errors.expected/html.marko
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 |
---|---|---|
@@ -1,18 +1,12 @@ | ||
style { | ||
invalid { color blue; } | ||
} | ||
style { invalid { color blue; } } | ||
|
||
<style> | ||
body | ||
color: blue; | ||
</style> | ||
<script> | ||
console->log( | ||
'a' | ||
); | ||
</script> |
8 changes: 1 addition & 7 deletions
8
src/__tests__/__snapshots__/ignore-embedded-script-errors.expected/with-parens.marko
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 |
---|---|---|
@@ -1,18 +1,12 @@ | ||
style { | ||
invalid { color blue; } | ||
} | ||
style { invalid { color blue; } } | ||
|
||
<style> | ||
body | ||
color: blue; | ||
</style> | ||
<script> | ||
console->log( | ||
'a' | ||
); | ||
</script> |
8 changes: 8 additions & 0 deletions
8
src/__tests__/__snapshots__/script-with-type.expected/auto.marko
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,8 @@ | ||
<script nonce=$global.cspNonce type="speculationrules"> | ||
{ | ||
"prerender": [{ | ||
"where": { "href_matches": "/*" }, | ||
"eagerness": "moderate" | ||
}] | ||
} | ||
</script> |
9 changes: 9 additions & 0 deletions
9
src/__tests__/__snapshots__/script-with-type.expected/concise.marko
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,9 @@ | ||
script nonce=$global.cspNonce type="speculationrules" | ||
-- | ||
{ | ||
"prerender": [{ | ||
"where": { "href_matches": "/*" }, | ||
"eagerness": "moderate" | ||
}] | ||
} | ||
-- |
8 changes: 8 additions & 0 deletions
8
src/__tests__/__snapshots__/script-with-type.expected/html.marko
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,8 @@ | ||
<script nonce=$global.cspNonce type="speculationrules"> | ||
{ | ||
"prerender": [{ | ||
"where": { "href_matches": "/*" }, | ||
"eagerness": "moderate" | ||
}] | ||
} | ||
</script> |
8 changes: 8 additions & 0 deletions
8
src/__tests__/__snapshots__/script-with-type.expected/with-parens.marko
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,8 @@ | ||
<script nonce=$global.cspNonce type="speculationrules"> | ||
{ | ||
"prerender": [{ | ||
"where": { "href_matches": "/*" }, | ||
"eagerness": "moderate" | ||
}] | ||
} | ||
</script> |
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,8 @@ | ||
<script nonce=$global.cspNonce type="speculationrules"> | ||
{ | ||
"prerender": [{ | ||
"where": { "href_matches": "/*" }, | ||
"eagerness": "moderate" | ||
}] | ||
} | ||
</script> |
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