mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Add unit test files to lint.
And fix the lint warnings from obj_spec.js.
This commit is contained in:
parent
27ba65dc6f
commit
168e5db2fd
2 changed files with 6 additions and 6 deletions
4
Makefile
4
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)
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue