You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Viole07 (via GitHub)" <gi...@apache.org> on 2024/10/26 05:43:55 UTC

[PR] refactor/ vibration tests to reduce redundancy and improve readability [cordova-plugin-vibration]

Viole07 opened a new pull request, #119:
URL: https://github.com/apache/cordova-plugin-vibration/pull/119

   ### Platforms affected
   JavaScript (test.js)
   
   ### Motivation and Context
   This refactoring improves the readability and maintainability of the vibration test code by consolidating repetitive functions and reducing redundancy.
   
   ### Description
   - Refactored code to streamline vibration test functions and minimize duplication.
   - Reorganized HTML generation and action button creation to improve clarity.
   - Simplified the cancellation logic and optimized timeout handling.
   
   ### Testing
   Manually verified vibration functionality across tests, ensuring both initiation and cancellation work as expected for all supported patterns.
   
   ### Checklist
   - [x] I've run the tests to ensure all new and existing tests pass.
   - [ ] I added automated test coverage where applicable.
   - [ ] Commit is prefixed with `(js)` as this change affects all JavaScript platforms supporting vibration.
   - [ ] If this Pull Request resolves an issue, I linked to the issue in the text above.
   - [ ] I've updated the documentation if necessary.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org