-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make WPT for InputEvent.inputType of each execCommand should test eac…
…h call separately The WPT for InputEvent.inputType of each execCommand runs all tests in a test function. Therefore, even if there is an unexpected result, it won't test other part. Additionally, it tests execCommand's result of the DOM tree in the contenteditable so that it's not useful for checking InputEvent.inputType for now. Therefore, this patch makes the test returns error for each result of each call of execCommand. Additionally, it sets contenteditable attribute to a <p> element which cannot store other block elements like <ul>, <ol>, <div>, etc. Therefore, some of the execCommand won't work on Gecko since Gecko's editor does not create invalid child elements as far as possible. Therefore, this patch makes it a <div> element. And also adding "insertHorizontalRule", "backColor", "foreColor", "hilightColor", "fontName", "createLink", "unlink". inputType values for those commands are defined by current spec. So, if they'd be changed, we could detect it quickly. Differential Revision: https://phabricator.services.mozilla.com/D14123 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1447239 gecko-commit: f8237a1e70b899fb91131718054f2d9e53bc082c gecko-integration-branch: autoland gecko-reviewers: smaug
- Loading branch information
1 parent
69dab94
commit de0ce11
Showing
1 changed file
with
84 additions
and
23 deletions.
There are no files selected for viewing
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