mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 13:16:10 +03:00
Added test for makeAjaxRequest
This commit is contained in:
parent
c3772df011
commit
e4993700af
@ -1,6 +1,8 @@
|
||||
(function() {
|
||||
|
||||
module("utils");
|
||||
|
||||
// ----------
|
||||
test("addRemoveClass", function() {
|
||||
var div = OpenSeadragon.makeNeutralElement('div');
|
||||
strictEqual(div.className, '',
|
||||
@ -49,4 +51,15 @@
|
||||
strictEqual(div.className, '',
|
||||
"Removed only class");
|
||||
});
|
||||
|
||||
// ----------
|
||||
asyncTest("makeAjaxRequest", function() {
|
||||
var timeWatcher = Util.timeWatcher();
|
||||
|
||||
OpenSeadragon.makeAjaxRequest('data/testpattern.dzi', function(xhr) {
|
||||
ok(/deepzoom/.test(xhr.response), 'file loaded');
|
||||
timeWatcher.done();
|
||||
});
|
||||
});
|
||||
|
||||
})();
|
||||
|
Loading…
Reference in New Issue
Block a user