mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-29 00:26:10 +03:00
Tests: getString with placeholder expansion
This commit is contained in:
parent
1ab6094420
commit
7048cda69e
@ -1,12 +1,19 @@
|
||||
(function() {
|
||||
|
||||
module("strings");
|
||||
|
||||
test("getSubString", function() {
|
||||
equal(OpenSeadragon.getString("Errors.Dzi"),
|
||||
"Hmm, this doesn't appear to be a valid Deep Zoom Image.",
|
||||
"Read sub-string");
|
||||
});
|
||||
|
||||
test("getStringWithPlaceholders", function() {
|
||||
equal(OpenSeadragon.getString("Errors.Open-Failed", "foo", "bar"),
|
||||
"Unable to open foo: bar",
|
||||
"String placeholder replacement");
|
||||
});
|
||||
|
||||
test("getInvalidString", function() {
|
||||
equal(OpenSeadragon.getString("Greeting"), "",
|
||||
"Handled unset string key");
|
||||
|
Loading…
Reference in New Issue
Block a user