summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticResultFormats/tests/phpunit/Integration/JSONScript/TestCases/tree-02.json
diff options
context:
space:
mode:
Diffstat (limited to 'www/wiki/extensions/SemanticResultFormats/tests/phpunit/Integration/JSONScript/TestCases/tree-02.json')
-rw-r--r--www/wiki/extensions/SemanticResultFormats/tests/phpunit/Integration/JSONScript/TestCases/tree-02.json18
1 files changed, 16 insertions, 2 deletions
diff --git a/www/wiki/extensions/SemanticResultFormats/tests/phpunit/Integration/JSONScript/TestCases/tree-02.json b/www/wiki/extensions/SemanticResultFormats/tests/phpunit/Integration/JSONScript/TestCases/tree-02.json
index 1a52f698..721c363a 100644
--- a/www/wiki/extensions/SemanticResultFormats/tests/phpunit/Integration/JSONScript/TestCases/tree-02.json
+++ b/www/wiki/extensions/SemanticResultFormats/tests/phpunit/Integration/JSONScript/TestCases/tree-02.json
@@ -27,6 +27,10 @@
{
"page": "Example/Tree 02-02",
"contents": "{{#ask:[[Part of::Tree test]]|format=tree|parent=Has parent|template=Example/Tree format template }}"
+ },
+ {
+ "page": "Example/Tree 02-03",
+ "contents": "{{#ask:[[Part of::Tree test]]|format=tree|parent=Has parent|class=some-class}}"
}
],
"tests": [
@@ -36,7 +40,7 @@
"subject": "Example/Tree 02-01",
"assert-output": {
"to-contain": [
- "div.srf-tree > ul > li:only-child > a[title=\"Example/Tree 1\"]:only-child"
+ "ul > li:only-child > a[title=\"Example/Tree 1\"]:only-child"
]
}
},
@@ -46,7 +50,7 @@
"subject": "Example/Tree 02-02",
"assert-output": {
"to-contain": [
- "div.srf-tree > ul > li:only-child > a[title=\"Example/Tree 1\"]:only-child"
+ "ul > li:only-child > a[title=\"Example/Tree 1\"]:only-child"
]
}
},
@@ -59,6 +63,16 @@
"FOO.*Example/Tree 1.*BAR"
]
}
+ },
+ {
+ "type": "parser-html",
+ "about": "Tree 02-03 (Simple one-page result with class parameter)",
+ "subject": "Example/Tree 02-03",
+ "assert-output": {
+ "to-contain": [
+ "div.some-class > ul > li:only-child > a[title=\"Example/Tree 1\"]:only-child"
+ ]
+ }
}
],
"settings": {