generated from obsidianmd/obsidian-sample-plugin
-
-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: ! Adjust more test data from investigation of #2863
- Loading branch information
1 parent
d45efeb
commit b0175ec
Showing
8 changed files
with
698 additions
and
0 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
resources/sample_vaults/Tasks-Demo/Test Data/callout_custom.md
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,10 @@ | ||
# callout_custom | ||
|
||
> [!callout_custom] | ||
> - [ ] #task Task in 'callout_custom' | ||
> - [ ] #task Task indented in 'callout_custom' | ||
```tasks | ||
not done | ||
path includes {{query.file.path}} | ||
``` |
10 changes: 10 additions & 0 deletions
10
resources/sample_vaults/Tasks-Demo/Test Data/callout_labelled.md
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,10 @@ | ||
# callout_labelled | ||
|
||
> [!todo] callout_labelled | ||
> - [ ] #task Task in 'callout_labelled' | ||
> - [ ] #task Task indented in 'callout_labelled' | ||
```tasks | ||
not done | ||
path includes {{query.file.path}} | ||
``` |
13 changes: 13 additions & 0 deletions
13
...urces/sample_vaults/Tasks-Demo/Test Data/callouts_nested_issue_2890_labelled.md
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,13 @@ | ||
> [!Calendar]+ MONTH | ||
>> [!Check]+ GROUP | ||
>>> [!Attention]+ Correction TITLE | ||
>>> Some stuff goes here | ||
>>> - [ ] #task Correction1 | ||
>>> - [ ] #task Correction2 | ||
>>> - [ ] #task Correction3 | ||
>>> - [ ] #task Correction4 | ||
```tasks | ||
not done | ||
path includes {{query.file.path}} | ||
``` |
13 changes: 13 additions & 0 deletions
13
...ces/sample_vaults/Tasks-Demo/Test Data/callouts_nested_issue_2890_unlabelled.md
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,13 @@ | ||
> [!Calendar]+ | ||
>> [!Check]+ | ||
>>> [!Attention]+ | ||
>>> Some stuff goes here | ||
>>> - [ ] #task Correction1 | ||
>>> - [ ] #task Correction2 | ||
>>> - [ ] #task Correction3 | ||
>>> - [ ] #task Correction4 | ||
```tasks | ||
not done | ||
path includes {{query.file.path}} | ||
``` |
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,147 @@ | ||
export const callout_custom = { | ||
filePath: 'Test Data/callout_custom.md', | ||
fileContents: | ||
'# callout_custom\n' + | ||
'\n' + | ||
'> [!callout_custom]\n' + | ||
"> - [ ] #task Task in 'callout_custom'\n" + | ||
"> - [ ] #task Task indented in 'callout_custom'\n" + | ||
'\n' + | ||
'```tasks\n' + | ||
'not done\n' + | ||
'path includes {{query.file.path}}\n' + | ||
'```\n', | ||
cachedMetadata: { | ||
tags: [ | ||
{ | ||
position: { | ||
start: { | ||
line: 3, | ||
col: 8, | ||
offset: 46, | ||
}, | ||
end: { | ||
line: 3, | ||
col: 13, | ||
offset: 51, | ||
}, | ||
}, | ||
tag: '#task', | ||
}, | ||
{ | ||
position: { | ||
start: { | ||
line: 4, | ||
col: 12, | ||
offset: 89, | ||
}, | ||
end: { | ||
line: 4, | ||
col: 17, | ||
offset: 94, | ||
}, | ||
}, | ||
tag: '#task', | ||
}, | ||
], | ||
headings: [ | ||
{ | ||
position: { | ||
start: { | ||
line: 0, | ||
col: 0, | ||
offset: 0, | ||
}, | ||
end: { | ||
line: 0, | ||
col: 16, | ||
offset: 16, | ||
}, | ||
}, | ||
heading: 'callout_custom', | ||
level: 1, | ||
}, | ||
], | ||
sections: [ | ||
{ | ||
type: 'heading', | ||
position: { | ||
start: { | ||
line: 0, | ||
col: 0, | ||
offset: 0, | ||
}, | ||
end: { | ||
line: 0, | ||
col: 16, | ||
offset: 16, | ||
}, | ||
}, | ||
}, | ||
{ | ||
type: 'callout', | ||
position: { | ||
start: { | ||
line: 2, | ||
col: 0, | ||
offset: 18, | ||
}, | ||
end: { | ||
line: 4, | ||
col: 51, | ||
offset: 128, | ||
}, | ||
}, | ||
}, | ||
{ | ||
type: 'code', | ||
position: { | ||
start: { | ||
line: 6, | ||
col: 0, | ||
offset: 130, | ||
}, | ||
end: { | ||
line: 9, | ||
col: 3, | ||
offset: 185, | ||
}, | ||
}, | ||
}, | ||
], | ||
listItems: [ | ||
{ | ||
position: { | ||
start: { | ||
line: 3, | ||
col: 2, | ||
offset: 40, | ||
}, | ||
end: { | ||
line: 3, | ||
col: 38, | ||
offset: 76, | ||
}, | ||
}, | ||
parent: -3, | ||
task: ' ', | ||
}, | ||
{ | ||
position: { | ||
start: { | ||
line: 4, | ||
col: 4, | ||
offset: 81, | ||
}, | ||
end: { | ||
line: 4, | ||
col: 51, | ||
offset: 128, | ||
}, | ||
}, | ||
parent: 3, | ||
task: ' ', | ||
}, | ||
], | ||
}, | ||
}; |
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,147 @@ | ||
export const callout_labelled = { | ||
filePath: 'Test Data/callout_labelled.md', | ||
fileContents: | ||
'# callout_labelled\n' + | ||
'\n' + | ||
'> [!todo] callout_labelled\n' + | ||
"> - [ ] #task Task in 'callout_labelled'\n" + | ||
"> - [ ] #task Task indented in 'callout_labelled'\n" + | ||
'\n' + | ||
'```tasks\n' + | ||
'not done\n' + | ||
'path includes {{query.file.path}}\n' + | ||
'```\n', | ||
cachedMetadata: { | ||
tags: [ | ||
{ | ||
position: { | ||
start: { | ||
line: 4, | ||
col: 8, | ||
offset: 96, | ||
}, | ||
end: { | ||
line: 4, | ||
col: 13, | ||
offset: 101, | ||
}, | ||
}, | ||
tag: '#task', | ||
}, | ||
{ | ||
position: { | ||
start: { | ||
line: 5, | ||
col: 10, | ||
offset: 152, | ||
}, | ||
end: { | ||
line: 5, | ||
col: 15, | ||
offset: 157, | ||
}, | ||
}, | ||
tag: '#task', | ||
}, | ||
], | ||
headings: [ | ||
{ | ||
position: { | ||
start: { | ||
line: 0, | ||
col: 0, | ||
offset: 0, | ||
}, | ||
end: { | ||
line: 0, | ||
col: 18, | ||
offset: 18, | ||
}, | ||
}, | ||
heading: 'callout_labelled', | ||
level: 1, | ||
}, | ||
], | ||
sections: [ | ||
{ | ||
type: 'heading', | ||
position: { | ||
start: { | ||
line: 0, | ||
col: 0, | ||
offset: 0, | ||
}, | ||
end: { | ||
line: 0, | ||
col: 18, | ||
offset: 18, | ||
}, | ||
}, | ||
}, | ||
{ | ||
type: 'callout', | ||
position: { | ||
start: { | ||
line: 2, | ||
col: 0, | ||
offset: 20, | ||
}, | ||
end: { | ||
line: 4, | ||
col: 53, | ||
offset: 141, | ||
}, | ||
}, | ||
}, | ||
{ | ||
type: 'code', | ||
position: { | ||
start: { | ||
line: 6, | ||
col: 0, | ||
offset: 143, | ||
}, | ||
end: { | ||
line: 9, | ||
col: 3, | ||
offset: 198, | ||
}, | ||
}, | ||
}, | ||
], | ||
listItems: [ | ||
{ | ||
position: { | ||
start: { | ||
line: 4, | ||
col: 2, | ||
offset: 90, | ||
}, | ||
end: { | ||
line: 4, | ||
col: 40, | ||
offset: 128, | ||
}, | ||
}, | ||
parent: -4, | ||
task: ' ', | ||
}, | ||
{ | ||
position: { | ||
start: { | ||
line: 5, | ||
col: 2, | ||
offset: 144, | ||
}, | ||
end: { | ||
line: 5, | ||
col: 51, | ||
offset: 193, | ||
}, | ||
}, | ||
parent: 4, | ||
task: ' ', | ||
}, | ||
], | ||
}, | ||
}; |
Oops, something went wrong.