DOM Transactions for Testing JavaScript

* Final gross prices may vary according to local VAT.

Get Access

Abstract

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.