|
|
@ -1,6 +1,7 @@ |
|
|
|
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
|
|
|
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
|
|
|
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ |
|
|
|
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ |
|
|
|
/* globals PDFJS, expect, it, describe, Promise, combineUrl, waitsFor */ |
|
|
|
/* globals PDFJS, expect, it, describe, Promise, combineUrl, waitsFor, |
|
|
|
|
|
|
|
isArray */ |
|
|
|
|
|
|
|
|
|
|
|
'use strict'; |
|
|
|
'use strict'; |
|
|
|
|
|
|
|
|
|
|
@ -141,6 +142,13 @@ describe('api', function() { |
|
|
|
expect(data.length).toEqual(105779); |
|
|
|
expect(data.length).toEqual(105779); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
it('gets stats', function() { |
|
|
|
|
|
|
|
var promise = doc.getStats(); |
|
|
|
|
|
|
|
waitsForPromise(promise, function (stats) { |
|
|
|
|
|
|
|
expect(isArray(stats.streamTypes)).toEqual(true); |
|
|
|
|
|
|
|
expect(isArray(stats.fontTypes)).toEqual(true); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
describe('Page', function() { |
|
|
|
describe('Page', function() { |
|
|
|
var resolvePromise; |
|
|
|
var resolvePromise; |
|
|
|