mirror of
https://github.com/kiwix/kiwix-js.git
synced 2025-09-22 12:01:15 -04:00
Fix the unit tests on evopedia entries. See #140
This commit is contained in:
parent
704f1dae75
commit
6e7383c72c
@ -172,7 +172,7 @@ define(['jquery', 'title', 'archive', 'zimArchive', 'zimDirEntry', 'util', 'geom
|
|||||||
equal(title._name, "Diego_Velázquez", "Name of the title is correct");
|
equal(title._name, "Diego_Velázquez", "Name of the title is correct");
|
||||||
start();
|
start();
|
||||||
};
|
};
|
||||||
localEvopediaArchive.getTitleByName("A/Diego_Velázquez").then(callbackFunction);
|
localEvopediaArchive.getTitleByName("Diego_Velázquez").then(callbackFunction);
|
||||||
});
|
});
|
||||||
asyncTest("check getTitleByName with quote : Hundred Years' War", function() {
|
asyncTest("check getTitleByName with quote : Hundred Years' War", function() {
|
||||||
expect(2);
|
expect(2);
|
||||||
@ -181,7 +181,7 @@ define(['jquery', 'title', 'archive', 'zimArchive', 'zimDirEntry', 'util', 'geom
|
|||||||
equal(title._name, "Hundred_Years'_War", "Name of the title is correct");
|
equal(title._name, "Hundred_Years'_War", "Name of the title is correct");
|
||||||
start();
|
start();
|
||||||
};
|
};
|
||||||
localEvopediaArchive.getTitleByName("A/Hundred_Years'_War").then(callbackFunction);
|
localEvopediaArchive.getTitleByName("Hundred_Years'_War").then(callbackFunction);
|
||||||
});
|
});
|
||||||
|
|
||||||
test("check parseTitleFromId", function() {
|
test("check parseTitleFromId", function() {
|
||||||
@ -219,7 +219,7 @@ define(['jquery', 'title', 'archive', 'zimArchive', 'zimDirEntry', 'util', 'geom
|
|||||||
equal(title._name, "AIDS", "Name of the title is correct");
|
equal(title._name, "AIDS", "Name of the title is correct");
|
||||||
localEvopediaArchive.readArticle(title, callbackArticleRead);
|
localEvopediaArchive.readArticle(title, callbackArticleRead);
|
||||||
};
|
};
|
||||||
localEvopediaArchive.getTitleByName("A/AIDS").then(callbackTitleFound);
|
localEvopediaArchive.getTitleByName("AIDS").then(callbackTitleFound);
|
||||||
});
|
});
|
||||||
|
|
||||||
asyncTest("check getTitleByName with a title name that does not exist in the archive", function() {
|
asyncTest("check getTitleByName with a title name that does not exist in the archive", function() {
|
||||||
@ -228,7 +228,7 @@ define(['jquery', 'title', 'archive', 'zimArchive', 'zimDirEntry', 'util', 'geom
|
|||||||
ok(title === null, "No title found because it does not exist in the archive");
|
ok(title === null, "No title found because it does not exist in the archive");
|
||||||
start();
|
start();
|
||||||
};
|
};
|
||||||
localEvopediaArchive.getTitleByName("A/abcdef").then(callbackTitleFound);
|
localEvopediaArchive.getTitleByName("abcdef").then(callbackTitleFound);
|
||||||
});
|
});
|
||||||
|
|
||||||
asyncTest("check loading a math image", function() {
|
asyncTest("check loading a math image", function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user