-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Speed up tests and other perf improvements (#381)
* Mock getComputedStyles to speed up tests Signed-off-by: Emanuele Feliziani <[email protected]> * Batch form file reading Signed-off-by: Emanuele Feliziani <[email protected]> * Memoize isCCForm Signed-off-by: Emanuele Feliziani <[email protected]> * Minimise impact of Array.from Signed-off-by: Emanuele Feliziani <[email protected]> * Limit test logs to surface failures Signed-off-by: Emanuele Feliziani <[email protected]> * Centralize scan stopping and disconnect observer Signed-off-by: Emanuele Feliziani <[email protected]> * Update snapshots and commit compiled files Signed-off-by: Emanuele Feliziani <[email protected]> * Commit compiled code Signed-off-by: Emanuele Feliziani <[email protected]> * Add performance logging capability Signed-off-by: Emanuele Feliziani <[email protected]> # Conflicts: # src/Scanner.js * Commit files Signed-off-by: Emanuele Feliziani <[email protected]> * Add comment Signed-off-by: Emanuele Feliziani <[email protected]> * Minor change Signed-off-by: Emanuele Feliziani <[email protected]> * Improve stopping the scanner Signed-off-by: Emanuele Feliziani <[email protected]> * Update privacy pages urls Signed-off-by: Emanuele Feliziani <[email protected]> * Improved performance logging Signed-off-by: Emanuele Feliziani <[email protected]> * Don't trim empty strings Signed-off-by: Emanuele Feliziani <[email protected]> * Minor improvement to getText Signed-off-by: Emanuele Feliziani <[email protected]> * Don't repeat isFormLikelyToBeUsedAsPageWrapper Signed-off-by: Emanuele Feliziani <[email protected]> * Improve for searching loop Signed-off-by: Emanuele Feliziani <[email protected]> * Commit compiled files Signed-off-by: Emanuele Feliziani <[email protected]> --------- Signed-off-by: Emanuele Feliziani <[email protected]>
- Loading branch information
1 parent
e19e000
commit 21aa20e
Showing
19 changed files
with
1,111 additions
and
469 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.