mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-04-02 05:16:12 +03:00
Tests: getString with placeholder expansion
This commit is contained in:
parent
1ab6094420
commit
7048cda69e
1 changed files with 7 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue