mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Create first unit test in Jasmine unit test framework.
To run the unit test open pdf.js/test/unit/unit_test.html in your browser. This requires that https://github.com/pivotal/jasmine is cloned to the same directory level as pdf.js.
This commit is contained in:
parent
b8a1d8a47a
commit
c2dd452342
2 changed files with 67 additions and 0 deletions
16
test/unit/spec/obj_spec.js
Normal file
16
test/unit/spec/obj_spec.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
|
||||
|
||||
'use strict';
|
||||
|
||||
describe("obj", function() {
|
||||
|
||||
describe("Name", function() {
|
||||
it("should retain the given name", function() {
|
||||
var givenName = "My Name";
|
||||
var name = new Name(givenName);
|
||||
expect(name.name).toEqual(givenName);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue