Tests: getString with placeholder expansion

This commit is contained in:
Chris Adams 2013-07-01 16:55:39 -04:00
parent 1ab6094420
commit 7048cda69e

View File

@ -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");