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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Dhawan, M., Shan, C., Ganapathy, V.: The case for JavaScript transactions. In: PLAS 2010: Proceedings of the ACM SIGPLAN Fifth Workshop on Programming Languages and Analysis for Security, Toronto, Canada. ACM Press, New York (June 2010)
Elnozahy, E.N.M., Alvisi, L., Wang, Y.-M., Johnson, D.B.: A survey of rollback-recovery protocols in message-passing systems. ACM Comput. Surv. 34(3), 375–408 (2002)
Heidegger, P., Thiemann, P.: Contract-driven testing of JavaScript code. In: TOOLS, Malaga, Spain. Springer, Heidelberg (June 2010) (to appear)
Herlihy, M., Koskinen, E.: Transactional boosting: a methodology for highly-concurrent transactional objects. In: PPoPP 2008: Proceedings of the 13th ACM SIGPLAN Symposium on Principles and practice of parallel programming, pp. 207–216. ACM, New York (2008)
Le Hégaret, P., Whitmer, R., Wood, L.: W3C document object model (August 2003), http://www.w3.org/DOM/
Tolmach, A., Appel, A.W.: A debugger for Standard ML. Journal of Functional Programming 5(2), 155–200 (1995)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2010 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Heidegger, P., Bieniusa, A., Thiemann, P. (2010). DOM Transactions for Testing JavaScript. In: Bottaci, L., Fraser, G. (eds) Testing – Practice and Research Techniques. TAIC PART 2010. Lecture Notes in Computer Science, vol 6303. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-15585-7_24
Download citation
DOI: https://doi.org/10.1007/978-3-642-15585-7_24
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-642-15584-0
Online ISBN: 978-3-642-15585-7
eBook Packages: Computer ScienceComputer Science (R0)