102 lines
2.6 KiB
JSON
102 lines
2.6 KiB
JSON
{
|
|
"description": "Test #info parser output (#1019, `wgContLang=en`, `wgLang=en`)",
|
|
"setup": [
|
|
{
|
|
"message-cache": "clear",
|
|
"page": "P0106/Warning",
|
|
"contents": "{{#info: an warning text | warning }}"
|
|
},
|
|
{
|
|
"message-cache": "clear",
|
|
"page": "P0106/Error",
|
|
"contents": "{{#info: an error text | error }}"
|
|
},
|
|
{
|
|
"message-cache": "clear",
|
|
"page": "P0106/Note",
|
|
"contents": "{{#info: an info note | note }}"
|
|
},
|
|
{
|
|
"message-cache": "clear",
|
|
"page": "P0106/Numeric_value",
|
|
"contents": "{{#info: 1 }}"
|
|
},
|
|
{
|
|
"message-cache": "clear",
|
|
"page": "P0106/maxwidth_theme",
|
|
"contents": "{{#info: some text |max-width=300 |theme=square-border}}"
|
|
}
|
|
],
|
|
"tests": [
|
|
{
|
|
"type": "parser",
|
|
"about": "#0",
|
|
"subject": "P0106/Warning",
|
|
"assert-output": {
|
|
"to-contain": [
|
|
"<span class=\"smw-highlighter\" data-type=\"4\" data-state=\"inline\" data-title=\"Warning\" title=\"an warning text\">",
|
|
"<span class=\"smwtticon warning\">",
|
|
"<span class=\"smwttcontent\">an warning text</span>"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "parser",
|
|
"about": "#1",
|
|
"subject": "P0106/Error",
|
|
"assert-output": {
|
|
"to-contain": [
|
|
"<span class=\"smw-highlighter\" data-type=\"5\" data-state=\"inline\" data-title=\"Error\" title=\"an error text\">",
|
|
"<span class=\"smwtticon error\">",
|
|
"<span class=\"smwttcontent\">an error text</span>"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "parser",
|
|
"about": "#2",
|
|
"subject": "P0106/Note",
|
|
"assert-output": {
|
|
"to-contain": [
|
|
"<span class=\"smw-highlighter\" data-type=\"8\" data-state=\"inline\" data-title=\"Note\" title=\"an info note\">",
|
|
"<span class=\"smwtticon note\">",
|
|
"<span class=\"smwttcontent\">an info note</span>"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "parser",
|
|
"about": "#3",
|
|
"subject": "P0106/Numeric_value",
|
|
"assert-output": {
|
|
"to-contain": [
|
|
"<span class=\"smw-highlighter\" data-type=\"6\" data-state=\"persistent\" data-title=\"Information\" title=\"1\">",
|
|
"<span class=\"smwtticon info\">",
|
|
"<span class=\"smwttcontent\">1</span>"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "parser",
|
|
"about": "#4 (adding max-width, theme parameters)",
|
|
"subject": "P0106/maxwidth_theme",
|
|
"assert-output": {
|
|
"to-contain": [
|
|
"<span class=\"smw-highlighter\" data-type=\"6\" data-state=\"persistent\" data-title=\"Information\" title=\"some text\" data-maxwidth=\"300\" data-tooltipclass=\"square-border\">",
|
|
"<span class=\"smwtticon info\">",
|
|
"<span class=\"smwttcontent\">some text</span>"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"settings": {
|
|
"wgContLang": "en",
|
|
"wgLang": "en"
|
|
},
|
|
"meta": {
|
|
"version": "2",
|
|
"is-incomplete": false,
|
|
"debug": false
|
|
}
|
|
}
|