3. 3 . 1
KEZAKOKEZAKO BEHAVIORSBEHAVIORS ??
> PETIT CHECK-UP> PETIT CHECK-UP
4. 3 . 2
FROM ZE DOCSFROM ZE DOCS
http://marionettejs.com/docs/v2.4.3/marionette.behavior.html
“ A Behavior is an isolated set of DOM / user interactions
that can be mixed into any View or another Behavior.
“ Behaviors allow you to blackbox View-specific interactions into
portable logical chunks, keeping your Views simple and your code DRY.
9. 4 . 3
PB #2 : COUPLAGE AVEC LA VUEPB #2 : COUPLAGE AVEC LA VUE
Tester une Behavior indépendamment d'une vue :
beaucoup de setup
peu de valeur ajoutée
ne vérifie pas que l'interaction
Behavior-View fonctionne bien dans notre réalité
10. 4 . 4
PB #3 : DUPLICATION DU CODE DE TESTPB #3 : DUPLICATION DU CODE DE TEST
Tester l'interaction Behavior-View dans chaque test de vue…
12. 5 . 2
ARTICLES SUR LA QUESTIONARTICLES SUR LA QUESTION
http://spin.atomicobject.com/2014/09/11/marionette-
behaviors-overview/
http://spin.atomicobject.com/2014/09/12/testing-
marionette-js-behaviors/