mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-29 08:36:10 +03:00
Compare commits
No commits in common. "e51053a6a316627c32f5d1270714d73a4ab30e0c" and "ffbd8f985a4dab4fdde855458383f50f6973eb7a" have entirely different histories.
e51053a6a3
...
ffbd8f985a
@ -161,12 +161,9 @@ module.exports = function(grunt) {
|
|||||||
normal: {
|
normal: {
|
||||||
options: {
|
options: {
|
||||||
urls: [ "http://localhost:8000/test/test.html" ],
|
urls: [ "http://localhost:8000/test/test.html" ],
|
||||||
timeout: 10000,
|
timeout: 10000
|
||||||
puppeteer: {
|
|
||||||
headless: 'new'
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
|
||||||
coverage: {
|
coverage: {
|
||||||
options: {
|
options: {
|
||||||
urls: [ "http://localhost:8000/test/coverage.html" ],
|
urls: [ "http://localhost:8000/test/coverage.html" ],
|
||||||
|
@ -6,7 +6,6 @@ OPENSEADRAGON CHANGELOG
|
|||||||
* BREAKING CHANGE: Dropped support for IE11 (#2300, #2361 @AndrewADev)
|
* BREAKING CHANGE: Dropped support for IE11 (#2300, #2361 @AndrewADev)
|
||||||
* DEPRECATION: The OpenSeadragon.createCallback function is no longer recommended (#2367 @akansjain)
|
* DEPRECATION: The OpenSeadragon.createCallback function is no longer recommended (#2367 @akansjain)
|
||||||
* Fixed: Sometimes if the viewport was flipped and the user zoomed in far enough, it would flip back (#2364 @SebDelile)
|
* Fixed: Sometimes if the viewport was flipped and the user zoomed in far enough, it would flip back (#2364 @SebDelile)
|
||||||
* Test improvements (#2382 @AndrewADev)
|
|
||||||
|
|
||||||
4.1.0:
|
4.1.0:
|
||||||
|
|
||||||
|
706
package-lock.json
generated
706
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -35,7 +35,7 @@
|
|||||||
"grunt-contrib-compress": "^2.0.0",
|
"grunt-contrib-compress": "^2.0.0",
|
||||||
"grunt-contrib-concat": "^2.1.0",
|
"grunt-contrib-concat": "^2.1.0",
|
||||||
"grunt-contrib-connect": "^3.0.0",
|
"grunt-contrib-connect": "^3.0.0",
|
||||||
"grunt-contrib-qunit": "^7.0.1",
|
"grunt-contrib-qunit": "^6.2.0",
|
||||||
"grunt-contrib-uglify": "^5.0.1",
|
"grunt-contrib-uglify": "^5.0.1",
|
||||||
"grunt-contrib-watch": "^1.1.0",
|
"grunt-contrib-watch": "^1.1.0",
|
||||||
"grunt-eslint": "^24.0.1",
|
"grunt-eslint": "^24.0.1",
|
||||||
|
@ -231,36 +231,25 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
viewer.addHandler('open', function () {
|
viewer.addHandler("open", function () {
|
||||||
assert.ok(!OpenSeadragon.isFullScreen(), 'Started out not fullscreen');
|
assert.ok(!OpenSeadragon.isFullScreen(), 'Started out not fullscreen');
|
||||||
|
|
||||||
const checkEnteringPreFullScreen = (event) => {
|
const checkEnteringPreFullScreen = function(event) {
|
||||||
viewer.removeHandler('pre-full-screen', checkEnteringPreFullScreen);
|
viewer.removeHandler('pre-full-screen', checkEnteringPreFullScreen);
|
||||||
assert.ok(event.fullScreen, 'Switching to fullscreen');
|
assert.ok(event.fullScreen, 'Switching to fullscreen');
|
||||||
assert.ok(!OpenSeadragon.isFullScreen(), 'Not yet fullscreen');
|
assert.ok(!OpenSeadragon.isFullScreen(), 'Not yet fullscreen');
|
||||||
};
|
};
|
||||||
|
|
||||||
const checkExitingFullScreen = (event) => {
|
// The fullscreen mode is always denied during tests so we are
|
||||||
|
// exiting directly.
|
||||||
|
const checkExitingFullScreen = function(event) {
|
||||||
viewer.removeHandler('full-screen', checkExitingFullScreen);
|
viewer.removeHandler('full-screen', checkExitingFullScreen);
|
||||||
assert.ok(!event.fullScreen, 'Disabling fullscreen');
|
assert.ok(!event.fullScreen, 'Exiting fullscreen');
|
||||||
assert.ok(!OpenSeadragon.isFullScreen(), 'Fullscreen disabled');
|
assert.ok(!OpenSeadragon.isFullScreen(), 'Disabled fullscreen');
|
||||||
done();
|
done();
|
||||||
}
|
|
||||||
|
|
||||||
// The 'new' headless mode allows us to enter fullscreen, so verify
|
|
||||||
// that we see the correct values returned. We will then close out
|
|
||||||
// of fullscreen to check the same values when exiting.
|
|
||||||
const checkAcquiredFullScreen = (event) => {
|
|
||||||
viewer.removeHandler('full-screen', checkAcquiredFullScreen);
|
|
||||||
viewer.addHandler('full-screen', checkExitingFullScreen);
|
|
||||||
assert.ok(event.fullScreen, 'Acquired fullscreen');
|
|
||||||
assert.ok(OpenSeadragon.isFullScreen(), 'Fullscreen enabled');
|
|
||||||
viewer.setFullScreen(false);
|
|
||||||
};
|
};
|
||||||
|
viewer.addHandler("pre-full-screen", checkEnteringPreFullScreen);
|
||||||
|
viewer.addHandler("full-screen", checkExitingFullScreen);
|
||||||
viewer.addHandler('pre-full-screen', checkEnteringPreFullScreen);
|
|
||||||
viewer.addHandler('full-screen', checkAcquiredFullScreen);
|
|
||||||
viewer.setFullScreen(true);
|
viewer.setFullScreen(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user