Update 2:
Forgetting it for a week (and being sick), I'm still not in my depths. The only news is that I retested the tests in Safari and Firefox, and now Safari always fails in these tests, and Firefox always loses. I suppose I changed something, but I have no idea where.
I’m more and more sure that somewhere there is a problem with synchronization. Maybe the code just goes into async, where it shouldn't, but rather, something is interrupted.
Update:
I am less interested in finding the actual error and more interested in why it is intermittent. If I can find out why this is so, I will probably find an error, or at least rewrote the code to avoid this.
TL DR:
I use Karma (with Webpack and Babel) to run tests in Chrome, and most of them are fine, but for some reason 7 tests get intermittent crashes.
More details:
So! Work! The first six MOSTLES tests succeed when I run it on the debug tab and MIGHT does not work. However, the failure rate seems to be higher during normal operation. These six tests are related to each other, because they all do not work after running a certain method that functions as safe deletion () for some Backbone models. This basically meant checking and cleaning () all related models in the model for deletion and returning false if it fails to do so. And if the failures were 100%, I’m sure that I will find an error and imitate, but the only thing I know is that it is associated with an attempt to access or change a model that has already been deleted, which looks like timing ... ? Something runs asynchronously, but shouldn't ...? I do not know how to fix it ...
. Jasmine-Jquery , dom ( ) div , - . Bootstrap, , , . , gulp, , . , , Chrome DOM , , ...?
TMI:
, , "gulp test". "gulp testonce", , singleRun HTML. , , .
6 html.
Chrome 47.0.2526 (Mac OS X 10.11.2) model library: sentences: no longer has any elements after deleting the sentence and both elements FAILED
Error: No such element
at Controller._delete (/Users/tom/dev/Designer/test/model.spec.js:1344:16 <- webpack:///src/lib/controller.js:107:12)
at Object.<anonymous> (/Users/tom/dev/Designer/test/model.spec.js:143:32 <- webpack:///test/model.spec.js:89:31)
7 html.
Website tests » Messaging system
Expected ({ 0: HTMLNode, length: 1, context: HTMLNode, selector: '#messagefield' }) not to be empty.
at Object.<anonymous> (/Users/tom/dev/Designer/test/website.spec.js:163:39 <- webpack:///test/website.spec.js:109:37)
, , , , , , Safari , Chrome, Firefox , 80 html SO MUCH TIME, , . , .
Chrome, , .
:
https://dl.dropboxusercontent.com/u/117580/model.spec.js.html
https://dl.dropboxusercontent.com/u/117580/website.spec.js.html
( , ): https://dl.dropboxusercontent.com/u/117580/output.html