Tim van der Meij
e02ab9fb79
Implement an option to disable automatic scrolling
...
This adds a checkbox with which one can disable scrolling, for example to look back at output during testing. Note that the styles are inline because the test runner removes all <style> elements for each test.
10 years ago
Tim van der Meij
07ec736eb9
Improve driver code structure
...
- Improve variable names and move variables to the top of the method
- Use constants where possible
- Only print the delay text if there is an atual delay set
- Simplify continuation logic in _nextTask
- Do not pass anything to clearCanvas: we can get the context from this.canvas there.
- Remove innerHTML and replace it with textContent. Add a comment why insertAdjancentHTML is so important for performance and runtime.
- Merge _quit and _sendQuitRequest.
10 years ago
Tim van der Meij
ae8748edfb
Refactor test driver to be more class-like
...
- Extract NullTextLayerBuilder and SimpleTextLayerBuilder from the driver code and create classes for them.
- Move options to the constructor and pass in HTML elements instead of getting them in the driver.
- Remove unused masterMode variable.
- Minor method name updates.
The rest is only moving/indenting existing code and adding 'this'.
10 years ago
Tim van der Meij
d59660cfa6
Clean up the test driver
...
- Remove a hack for Chrome on Windows because we do not run Chrome on the Windows bot anymore, so it added unneeded complexity.
- Merge nextTask and continueNextTask functions. nextTask did nothing more than calling cleanup. This change also allows us to remove the callback for that function.
- Remove unnecessary one-line functions.
10 years ago
Tim van der Meij
58769fd3b9
Refactor test slave
...
- Improved names of elements
- Easier scrolling code
10 years ago
Jonas Jenwald
36ac67583f
Remove commented out code about |disableWorker| in the test suite
...
Since the tests have run with workers enabled for a long time, these comments are no longer relevant.
10 years ago
Tim van der Meij
75d8f70d06
Remove SpecialPowers addon
10 years ago
Mitar
2f72ac1255
textLayer is not used anymore in render context.
...
It should be removed to prevent confusion when reading the code.
11 years ago
Tim van der Meij
e525902241
Use strict equalities in test/driver.js
11 years ago
Tim van der Meij
34728ee49b
Removing unused code
11 years ago
Brendan Dahl
339f8f0ac9
Call correct quit function and wait request sending.
11 years ago
Brendan Dahl
5bd8a83c9b
Build the text layer geometry on the worker.
11 years ago
Yury Delendik
4d3b15a486
Cools down Chrome/Windows during testing
11 years ago
Yury Delendik
567f1f4af0
Makes sure the results are send /handled in right order
11 years ago
Yury Delendik
1d8f6cf0e7
Updates make.js for cmaps and make binary cmaps by default
11 years ago
Yury Delendik
69efd9cb96
CMaps binary packing
11 years ago
Jonas Jenwald
e808bf5736
Fix coding style in test/driver.js
11 years ago
Brendan Dahl
b5b94a4af3
Use built in CMaps and unify the glyph mapping.
11 years ago
Yury Delendik
96fff4cc74
Refactors getTextContent return value
11 years ago
Yury Delendik
0131101275
Takes ascent/descent in account in the text layer
11 years ago
Yury Delendik
5bf3e44e30
Introduces LegacyPromise; polyfills DOM Promise
11 years ago
Brendan Dahl
e697c598c2
Enable range requests in master mode.
12 years ago
Srishti
ee0705bcce
Reset Path
12 years ago
Srishti
21a8d62624
Fixes Text rotation issue #2095
12 years ago
Yury Delendik
27c8291ea1
Adds test for issue 3371 and enables testing with password.
12 years ago
Brendan Dahl
ae1f973204
Use A+ spec compatible promises.
12 years ago
Brendan Dahl
732e6d0fbb
Wrap driver code in closure.
12 years ago
Yury Delendik
702da7f3ea
Skips failed-to-download tests
12 years ago
Mack Duan
6b2c6fc223
Changes to regression tests for progressive loading
12 years ago
Mack Duan
ef423ef30c
Implement progressive loading of PDFs
12 years ago
Brendan Dahl
95dd33d51a
Remove mozOpaque for driver.
12 years ago
Brendan Dahl
ec311f303b
Use white backdrop when possible.
12 years ago
Yury Delendik
81f8f92696
Adds web/* and test/* for jshint target
12 years ago
mduan
48c15b70db
Make firstPage work in test_manifest.json + rename pageLimit -> lastPage
12 years ago
Brendan Dahl
9e507063ca
Start of the stat utilities.
13 years ago
Brendan Dahl
50e21bb103
Log user agent for reference tests.
13 years ago
Brendan Dahl
a2b2ecaa29
Fix the initialization of the first page for multiple testing rounds.
13 years ago
Yury Delendik
b5f952a63a
Fixes font debugger; text builder api refactoring
13 years ago
Julian Viereck
f1e0edbaa9
Address Yurys review comments
13 years ago
Julian Viereck
e48530d391
Fix AppendText after API changes
13 years ago
Julian Viereck
049b19264c
Make lint happy again
13 years ago
Julian Viereck
e7894ca07d
Fix the driver.js file to handle new TextLayer infrastructure
13 years ago
Yury Delendik
ac7b6aeff4
Provides right fallback fonts for text layer
13 years ago
Yury Delendik
3fed93d808
Adds text layer testing
13 years ago
Brendan Dahl
332ae4ce41
Change to the Apache v2 license.
13 years ago
Yury Delendik
7a0e91af4b
removes expandUrl(url); fixes error message
13 years ago
Yury Delendik
00f1d6dbf1
Fetches pdf data in the worker
13 years ago
Yury Delendik
cff6c8db08
skip cached objects and has consistent font ids
13 years ago
Yury Delendik
357805696b
Fixing concurrency and test driver
13 years ago
Yury Delendik
e1b4fc5ac7
Enabled workers during testing
13 years ago