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