mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-01-19 17:21:50 +03:00
Merge pull request #148 from acdha/test-globals-cleanup
Tests: avoid leaking into global scope
This commit is contained in:
commit
bb1dd78979
@ -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;
|
||||
center = viewport.getCenter();
|
||||
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…
x
Reference in New Issue
Block a user