Skip to content
Permalink
Fetching contributors…
Cannot retrieve contributors at this time
186 lines (186 sloc) 3.32 KB
{
"description": "Test `_uri` with some annotation/search pattern (T45264, #679)",
"setup": [
{
"namespace": "SMW_NS_PROPERTY",
"page": "Has url",
"contents": "[[Has type::URL]]"
},
{
"page": "Page-with-url-1",
"contents": "[[Has url::http://example.org/aaa/bbb#ccc]]"
},
{
"page": "Page-with-url-2",
"contents": "[[Has url::http://acme.test/api?query=!_:;@* #Foo&=%20-3DBar]]"
},
{
"page": "Page-with-url-3",
"contents": "[[Has url::http://example.org/γ‚ˆγ†γ“γ#-{}]]"
}
],
"tests": [
{
"type": "query",
"about": "#0",
"condition": "[[Has url::http://example.org/aaa/bbb#ccc]]",
"printouts": [
"Has url"
],
"parameters": {
"limit": "10"
},
"assert-queryresult": {
"count": "1",
"results": [
"Page-with-url-1#0##"
],
"datavalues": [
{
"property": "Has url",
"value": "http://example.org/aaa/bbb#ccc"
}
]
}
},
{
"type": "query",
"about": "#1",
"condition": "[[Has url::http://acme.test/api?query=!_:;@*_#Foo&=_-3DBar]]",
"printouts": [
"Has url"
],
"parameters": {
"limit": "10"
},
"assert-queryresult": {
"count": "1",
"results": [
"Page-with-url-2#0##"
],
"datavalues": [
{
"property": "Has url",
"value": "http://acme.test/api?query=!_:;@*_#Foo&=_-3DBar"
}
]
}
},
{
"type": "query",
"about": "#2",
"condition": "[[Has url::~*example.org/*]]",
"printouts": [
"Has url"
],
"parameters": {
"limit": "10"
},
"assert-queryresult": {
"count": 2,
"results": [
"Page-with-url-1#0##",
"Page-with-url-3#0##"
]
}
},
{
"type": "query",
"about": "#3",
"condition": "[[Has url::~*ccc*]]",
"printouts": [
"Has url"
],
"parameters": {
"limit": "10"
},
"assert-queryresult": {
"count": "1",
"results": [
"Page-with-url-1#0##"
]
}
},
{
"type": "query",
"about": "#4",
"condition": "[[Has url::~http://*query=*]]",
"printouts": [
"Has url"
],
"parameters": {
"limit": "10"
},
"assert-queryresult": {
"count": "1",
"results": [
"Page-with-url-2#0##"
]
}
},
{
"type": "query",
"about": "#5",
"condition": "[[Has url::~http://*query=*]] OR [[Has url::~*ccc*]]",
"printouts": [
"Has url"
],
"parameters": {
"limit": "10"
},
"assert-queryresult": {
"count": "2",
"results": [
"Page-with-url-1#0##",
"Page-with-url-2#0##"
]
}
},
{
"type": "query",
"about": "#6",
"condition": "[[Has url::http://example.org/γ‚ˆγ†γ“γ#-{}]]",
"printouts": [
"Has url"
],
"parameters": {
"limit": "10"
},
"assert-queryresult": {
"count": "1",
"results": [
"Page-with-url-3#0##"
],
"datavalues": [
{
"property": "Has url",
"value": "http://example.org/γ‚ˆγ†γ“γ#-{}"
}
]
}
},
{
"type": "query",
"about": "#7",
"condition": "[[Has url::http://example.org/%E3%82%88%E3%81%86%E3%81%93%E3%81%9D#-%7B%7D]]",
"printouts": [
"Has url"
],
"parameters": {
"limit": "10"
},
"assert-queryresult": {
"count": "1",
"results": [
"Page-with-url-3#0##"
]
}
}
],
"settings": [],
"meta": {
"version": "2",
"is-incomplete": false,
"debug": false
}
}
You can’t perform that action at this time.