mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 14:46:10 +03:00
Test addition/removal of fullpage class on viewer element
This commit is contained in:
parent
31d4cc13b7
commit
fd04647b1b
@ -102,6 +102,23 @@
|
|||||||
Util.simulateViewerClick(viewer, 0.25, 0.25);
|
Util.simulateViewerClick(viewer, 0.25, 0.25);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// ----------
|
||||||
|
test('Fullscreen', function() {
|
||||||
|
ok(!viewer.isFullPage(), 'Started out not fullpage');
|
||||||
|
ok(!$(viewer.element).hasClass('fullpage'),
|
||||||
|
'No fullpage class on div');
|
||||||
|
|
||||||
|
viewer.setFullPage(true);
|
||||||
|
ok(viewer.isFullPage(), 'Enabled fullpage');
|
||||||
|
ok($(viewer.element).hasClass('fullpage'),
|
||||||
|
'Fullpage class added to div');
|
||||||
|
|
||||||
|
viewer.setFullPage(false);
|
||||||
|
ok(!viewer.isFullPage(), 'Disabled fullpage');
|
||||||
|
ok(!$(viewer.element).hasClass('fullpage'),
|
||||||
|
'Fullpage class removed from div');
|
||||||
|
});
|
||||||
|
|
||||||
// ----------
|
// ----------
|
||||||
asyncTest('Close', function() {
|
asyncTest('Close', function() {
|
||||||
var closeHandler = function() {
|
var closeHandler = function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user