]> git.parisson.com Git - pdf.js.git/commitdiff
Add unit test files to lint.
authorKalervo Kujala <kkujala@com>
Sat, 26 Nov 2011 18:35:46 +0000 (20:35 +0200)
committerKalervo Kujala <kkujala@com>
Sat, 26 Nov 2011 18:35:46 +0000 (20:35 +0200)
And fix the lint warnings from obj_spec.js.

Makefile
test/unit/obj_spec.js

index c06ea5ddca77c2a292d9574e7ca438690661e609..7337444d03b2147938cafa76f3cb6cd653adb4ad 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -138,8 +138,8 @@ browser-test:
 # To install gjslint, see:
 #
 # <http://code.google.com/closure/utilities/docs/linter_howto.html>
-SRC_DIRS := . src utils web test examples/helloworld extensions/firefox \
-            extensions/firefox/components extensions/chrome
+SRC_DIRS := . src utils web test test/unit examples/helloworld \
+            extensions/firefox extensions/firefox/components extensions/chrome
 GJSLINT_FILES = $(foreach DIR,$(SRC_DIRS),$(wildcard $(DIR)/*.js))
 lint:
        gjslint --nojsdoc $(GJSLINT_FILES)
index 4f1a0b57ac257a9582a46585de7db804e1fc9a66..f3a4185dd6d88a44a8db165647202d0048c0e8e6 100644 (file)
@@ -3,11 +3,11 @@
 
 'use strict';
 
-describe("obj", function() {
+describe('obj', function() {
 
-  describe("Name", function() {
-    it("should retain the given name", function() {
-      var givenName = "Font";
+  describe('Name', function() {
+    it('should retain the given name', function() {
+      var givenName = 'Font';
       var name = new Name(givenName);
       expect(name.name).toEqual(givenName);
     });