Merge pull request #148 from acdha/test-globals-cleanup

Tests: avoid leaking into global scope
This commit is contained in:
iangilman 2013-06-27 09:33:36 -07:00
commit bb1dd78979

View File

@ -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');