pdf.js/test/unit
Jonas Jenwald 6d804d657f Add initial support for "Whole words" searching in the viewer
As outlined in https://bugzilla.mozilla.org/show_bug.cgi?id=1282759 the internal Firefox name for the feature is `entireWord`, hence that name is used here as well for consistency (with "Whole words" being limited to the UI).

Given existing limitations of the PDF.js search functionality, e.g. the existing problems of searching across "new lines", there's some edge-cases where "Whole words" searching will ignore (valid) results.
However, considering that this is a pre-existing issue related to the way that the find controller joins text-content together, that shouldn't have to block this new feature in my opionion.

*Please note:* In order to enable this feature in the `MOZCENTRAL` version, a small follow-up patch for [PdfjsChromeUtils.jsm](https://hg.mozilla.org/mozilla-central/file/tip/browser/extensions/pdfjs/content/PdfjsChromeUtils.jsm) will be required once this has landed in `mozilla-central`.
2018-09-10 11:59:29 +02:00
..
annotation_spec.js Convert test/unit/annotation_spec.js to ES6 syntax 2018-08-11 19:00:29 +02:00
api_spec.js Use shorter code for failing a test in test/unit/api_spec.js 2018-09-02 21:23:09 +02:00
bidi_spec.js Convert the files in the /test/unit folder to ES6 modules 2017-04-30 00:34:02 +02:00
cff_parser_spec.js Map all glyphs to the private use area and duplicate the first glyph. 2018-09-05 14:04:54 -07:00
clitests_helper.js Reduce the amount of console "spam", by ignoring info/warn calls, when running the unit-tests in Node.js/Travis 2018-06-03 00:28:40 +02:00
clitests.json Add initial support for "Whole words" searching in the viewer 2018-09-10 11:59:29 +02:00
cmap_spec.js Move the cMapUrl and cMapPacked options from the global PDFJS object and into getDocument instead 2018-03-01 18:11:16 +01:00
colorspace_spec.js Remove manual clamping/rounding from ColorSpace and PDFImage, by having their methods use Uint8ClampedArrays 2018-06-12 11:01:32 +02:00
crypto_spec.js Convert the files in the /test/unit folder to ES6 modules 2017-04-30 00:34:02 +02:00
custom_spec.js Restore the btoa/atob polyfills for Node.js 2018-01-13 01:31:05 +01:00
display_svg_spec.js Restore the btoa/atob polyfills for Node.js 2018-01-13 01:31:05 +01:00
document_spec.js Split the existing PDFFunction in two classes, a private PDFFunction and a public PDFFunctionFactory, and utilize the latter in PDFDocument to allow various code to access the methods of PDFFunction` 2017-09-29 15:30:53 +02:00
dom_utils_spec.js Move the externalLinkTarget and externalLinkRel options to PDFLinkService options 2018-02-13 14:28:40 +01:00
encodings_spec.js Implement unit tests for the encodings and fix missing items 2017-12-24 18:14:40 +01:00
evaluator_spec.js Error, rather than warn, once a number of invalid path operators are encountered in EvaluatorPreprocessor.read (bug 1443140) 2018-06-24 16:05:08 +02:00
function_spec.js Update the ESLint dependencies, and also tweak the no-multiple-empty-lines rules 2018-01-03 13:32:57 +01:00
jasmine-boot.js Add initial support for "Whole words" searching in the viewer 2018-09-10 11:59:29 +02:00
message_handler_spec.js Use LoopbackPort in the "message_handler" unit-tests 2018-06-04 12:53:08 +02:00
metadata_spec.js Prevent Metadata/XML parsing from breaking PDFDocumentProxy.getMetadata when no XML root document is found (issue 8884) 2018-07-18 11:37:40 +02:00
murmurhash3_spec.js Convert the files in the /test/unit folder to ES6 modules 2017-04-30 00:34:02 +02:00
network_spec.js Re-factor how parameters are passed to the network streams 2017-11-11 11:23:29 +01:00
network_utils_spec.js Add tests for file names with spaces and semicolons 2018-02-04 17:58:10 +01:00
node_stream_spec.js Restore the btoa/atob polyfills for Node.js 2018-01-13 01:31:05 +01:00
parser_spec.js Let Lexer.getNumber treat a single decimal point as zero (issue 9252) 2018-06-20 13:41:21 +02:00
pdf_find_utils_spec.js Add initial support for "Whole words" searching in the viewer 2018-09-10 11:59:29 +02:00
pdf_history_spec.js Fix a PDFHistory regression with document hashes of the nameddest=... form 2017-10-09 21:58:54 +02:00
primitives_spec.js Move the XRefMock in the unit tests to a central location 2017-07-29 15:16:19 +02:00
stream_spec.js Make the getBytes/peekBytes methods of Stream/DecodeStream/ChunkedStream able to return Uint8ClampedArrays 2018-06-12 11:01:32 +02:00
test_utils.js Move the cMapUrl and cMapPacked options from the global PDFJS object and into getDocument instead 2018-03-01 18:11:16 +01:00
testreporter.js Reword test reporter message 2018-08-05 21:21:46 +02:00
type1_parser_spec.js Fix inconsistent spacing and trailing commas in objects in test/ files, so we can enable the comma-dangle and object-curly-spacing ESLint rules later on 2017-06-02 13:04:04 +02:00
ui_utils_spec.js Add general support for re-dispatching events, on EventBus instances, to the DOM 2018-08-30 17:28:12 +02:00
unicode_spec.js Convert the files in the /test/unit folder to ES6 modules 2017-04-30 00:34:02 +02:00
unit_test.html Replaces RequireJS to SystemJS. 2017-02-27 08:32:39 -06:00
util_spec.js Add (basic) unit-tests for the non-global URL constructor (PR 9868 follow-up) 2018-08-02 10:32:06 +02:00