Skip to main content

DOM Transactions for Testing JavaScript

  • Conference paper
Testing – Practice and Research Techniques (TAIC PART 2010)

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. 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)

    Google Scholar 

  2. 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)

    Article  Google Scholar 

  3. Heidegger, P., Thiemann, P.: Contract-driven testing of JavaScript code. In: TOOLS, Malaga, Spain. Springer, Heidelberg (June 2010) (to appear)

    Google Scholar 

  4. 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)

    Chapter  Google Scholar 

  5. Le Hégaret, P., Whitmer, R., Wood, L.: W3C document object model (August 2003), http://www.w3.org/DOM/

  6. Tolmach, A., Appel, A.W.: A debugger for Standard ML. Journal of Functional Programming 5(2), 155–200 (1995)

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints 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)

Publish with us

Policies and ethics