mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 14:46:10 +03:00
Tests: avoid leaking into global scope
This means that this will pass without error: http://127.0.0.1:8000/test/test.html?noglobals=true
This commit is contained in:
parent
dcbb338083
commit
c850121e9b
@ -1,3 +1,5 @@
|
||||
/* global module, asyncTest, $, ok, equal, notEqual, start, test, Util */
|
||||
|
||||
(function() {
|
||||
|
||||
module('Basic');
|
||||
@ -86,8 +88,9 @@
|
||||
|
||||
// ----------
|
||||
asyncTest('Click', function() {
|
||||
var viewport = viewer.viewport;
|
||||
var viewport = viewer.viewport,
|
||||
center = viewport.getCenter();
|
||||
|
||||
ok(center.x === 0.5 && center.y === 0.5, 'We start out unpanned');
|
||||
equal(viewport.getZoom(), 1, 'We start out unzoomed');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user