forked from wikimedia/mediawiki-extensions-PageForms
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add JSONScript test (forminput-openlayers)
- Loading branch information
1 parent
2f935c6
commit 8c7bcb3
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
tests/phpunit/integration/JSONScript/TestCases/forminput-openlayers.json
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,44 @@ | ||
{ | ||
"description": "form input openlayers", | ||
"setup": [ | ||
{ | ||
"namespace": "SMW_NS_PROPERTY", | ||
"page": "Text Property", | ||
"contents": "[[Has type::Text]]" | ||
}, | ||
{ | ||
"namespace": "PF_NS_FORM", | ||
"page": "Openlayers without other parameters", | ||
"contents": "{{{field|Openlayers|input type=openlayers}}}" | ||
} | ||
], | ||
"tests": [ | ||
{ | ||
"type": "special", | ||
"about": "Openlayers without other parameters", | ||
"special-page": { | ||
"page": "FormEdit", | ||
"query-parameters": "Openlayers without other parameters/01", | ||
"request-parameters": {} | ||
}, | ||
"assert-output": { | ||
"to-contain": [ | ||
"<div class=\"pfOpenLayersInput\">", | ||
"<div class='pfAddressInput oo-ui-widget oo-ui-widget-enabled oo-ui-inputWidget oo-ui-textInputWidget oo-ui-textInputWidget-type-text oo-ui-textInputWidget-php'>", | ||
"placeholder='Enter address here'", | ||
"pfLookUpAddress", | ||
"<span class='oo-ui-labelElement-label'>Calculate coordinates using address</span>", | ||
"<input tabindex=\"3\" class=\"pfCoordsInput\" name=\"standard input[Openlayers]\" size=\"40\"/>" | ||
] | ||
} | ||
} | ||
], | ||
"settings": { | ||
"wgLang": "en" | ||
}, | ||
"meta": { | ||
"version": "2", | ||
"is-incomplete": false, | ||
"debug": false | ||
} | ||
} |