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:
Chris Adams 2013-06-26 16:54:37 -04:00
parent dcbb338083
commit c850121e9b

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