Testing – Practice and Research Techniques

Volume 6303 of the series Lecture Notes in Computer Science pp 211-214

DOM Transactions for Testing JavaScript

  • Phillip HeideggerAffiliated withAlbert-Ludwigs-Universität Freiburg
  • , Annette BieniusaAffiliated withAlbert-Ludwigs-Universität Freiburg
  • , Peter ThiemannAffiliated withAlbert-Ludwigs-Universität Freiburg

* Final gross prices may vary according to local VAT.

Get Access


Unit testing in the presence of side effects requires the construction of a suitable test fixture before each test run. We consider the problem of providing test fixtures for unit testing of client-side JavaScript code that manipulates its underlying web page. We propose using techniques from software transactional memory to restore the test fixture after each test run.