aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/test/javascript/src
Commit message (Collapse)AuthorAgeFilesLines
* Convert ActionCable tests from CoffeeScript to ES2015 and replace Blade with ↵rmacklin2018-11-2614-181/+232
| | | | | | | | | | | | | | | | | | | | | | | | Karma and Rollup (#34440) * Rename .coffee files in ActionCable test suite in prep for decaffeination * Decaffeinate ActionCable tests * Replace Blade with Karma and Rollup to run ActionCable JS tests - Add karma and qunit devDependencies - Add test script to ActionCable package - Use rollup to bundle ActionCable tests - Use karma as the ActionCable JS test runner * Replace vendored mock-socket with package devDependency in ActionCable * Move ActionCable yarn install to TravisCI before_install config * Clean up decaffeinated ActionCable tests to use consistent formatting
* ActionCable should not raise when a connection is already openDuncan Grazier2017-01-061-2/+5
| | | | | | | | | | | ActionCable was throwing a "Existing connection must be closed before opening" exception which was being picked up as a production issue in our error monitoring software. Since this happens pretty often on any device that allows the browser to sleep (mobile) this error was getting triggered often. This change removes the exception, but keeps logging the occurrence. We now return `false` to let the caller now that `open` failed.
* Add more Action Cable JavaScript testsJavan Makhmali2016-11-214-0/+78
|
* Add helper for testing against a mock WebSocket and serverJavan Makhmali2016-05-315-56/+48
|
* Reorganize `MockWebSocket`Jon Moss2016-05-312-22/+32
|
* Add configuration for `WebSocket` and `logger`Jon Moss2016-05-312-4/+18
| | | | [Javan Makhmali, Jon Moss]
* Kick off initial JavaScript testsJavan Makhmali2016-05-095-0/+84