mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-26 15:16:10 +03:00
Added test for makeAjaxRequest
This commit is contained in:
parent
c3772df011
commit
e4993700af
@ -1,6 +1,8 @@
|
|||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
module("utils");
|
module("utils");
|
||||||
|
|
||||||
|
// ----------
|
||||||
test("addRemoveClass", function() {
|
test("addRemoveClass", function() {
|
||||||
var div = OpenSeadragon.makeNeutralElement('div');
|
var div = OpenSeadragon.makeNeutralElement('div');
|
||||||
strictEqual(div.className, '',
|
strictEqual(div.className, '',
|
||||||
@ -49,4 +51,15 @@
|
|||||||
strictEqual(div.className, '',
|
strictEqual(div.className, '',
|
||||||
"Removed only class");
|
"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