pdf.js/test
Jonas Jenwald 664b79abe0 [api-minor] Remove the eventBusDispatchToDOM option/preference, and thus the general ability to dispatch "viewer components" events to the DOM
This functionality was only added to the default viewer for backwards compatibility and to support the various PDF viewer tests in mozilla-central, with the intention to eventually remove it completely.
While the different mozilla-central tests cannot be *easily* converted from DOM events, it's however possible to limit that functionality to only MOZCENTRAL builds *and* when tests are running.

Rather than depending of the re-dispatching of internal events to the DOM, the default viewer can instead be used in e.g. the following way:
```javascript
document.addEventListener("webviewerloaded", function() {
  PDFViewerApplication.initializedPromise.then(function() {
    // The viewer has now been initialized, and its properties can be accessed.

    PDFViewerApplication.eventBus.on("pagerendered", function(event) {
      console.log("Has rendered page number: " + event.pageNumber);
    });
  });
});
```
2020-03-29 12:24:46 +02:00
..
chromium Enable auto-formatting of the entire code-base using Prettier (issue 11444) 2019-12-26 12:34:24 +01:00
features Remove usage of mozFillRule 2017-01-29 23:24:44 +01:00
font Enable the ESLint no-shadow rule 2020-03-25 11:56:05 +01:00
pdfs The first glyph in CFF CIDFonts must be named 0 instead of ".notdef" 2020-03-24 15:56:50 +02:00
resources Magnifier positioning in reftest analyzer 2020-03-10 19:09:15 +02:00
stats Enable the ESLint no-shadow rule 2020-03-25 11:56:05 +01:00
ttx Update fonttools location and version (issue 6223) 2015-07-17 12:51:09 +02:00
unit [api-minor] Remove the eventBusDispatchToDOM option/preference, and thus the general ability to dispatch "viewer components" events to the DOM 2020-03-29 12:24:46 +02:00
.eslintrc Fix badly formatted .eslintrc 2018-11-23 13:49:58 +01:00
.gitignore Ignore test snapshots directory. 2013-03-15 11:24:08 -07:00
add_test.js Enable the ESLint no-shadow rule 2020-03-25 11:56:05 +01:00
annotation_layer_builder_overrides.css Convert all three-digit HEX colors to RGBA colors 2020-01-01 14:52:37 +01:00
downloadutils.js Enable auto-formatting of the entire code-base using Prettier (issue 11444) 2019-12-26 12:34:24 +01:00
driver.js Whitelist closure related cases to address the remaining no-shadow linting errors 2020-03-25 11:57:12 +01:00
test_manifest.json The first glyph in CFF CIDFonts must be named 0 instead of ".notdef" 2020-03-24 15:56:50 +02:00
test_slave.html Use the SimpleLinkService when running "annotations" reference tests 2017-09-12 15:24:46 +02:00
test.js Enable the ESLint no-shadow rule 2020-03-25 11:56:05 +01:00
testutils.js Enable auto-formatting of the entire code-base using Prettier (issue 11444) 2019-12-26 12:34:24 +01:00
text_layer_test.css Use span instead of div in the text layer 2018-11-18 15:54:08 +01:00
webbrowser.js Remove a spurious console.log from the ChromiumBrowser function in test/webbrowser.js file 2020-03-25 11:57:12 +01:00
webserver.js Enable the ESLint no-shadow rule 2020-03-25 11:56:05 +01:00