Book description
The World Wide Web has come a long way from static HTML pages. Today's developers enforce and enjoy standards, and we have built the web's primitive tools into advanced libraries, frameworks, and platforms.With these new freedoms come new responsibilities. Developers can now write some amazing bugs. A bug in a web page, hosted in a free web browser, can render expensive servers useless. Modern editors help rapidly write tangled and crufty code, the perfect habitat for bugs of every species, in situations that are hard to debug. We need help from the mortal enemy of the bug: Test-First Programming. This Short Cut seeks fixes for the hardest situation in web development; proactive test cases for Ajax code. We survey existing techniques, and invent new ones. Our goal is heads-down programming, without repeatedly clicking on a web browser.
Table of contents
-
Test Driven Ajax (on Rails)
- Enough Planning! Now Rush to Coding...
- YAML !omap
- assert_xpath Queries XHTML Details
- Why YPath?
- In-Place Editing (without Ajax.InPlaceEditor()!)
- Lexing JavaScript with assert_js
- Simulate Ajax Server Hits with xhr :get
- Simulate Ajax Posts with select_form
- Using an IFRAME to Test Web Sites
- assert_params
- Wiki Tests Wiki
- Red Bar
- assert_ajax
- Green Bar
- Conclusion(s)
- About the Author
Product information
- Title: Test Driven Ajax (on Rails)
- Author(s):
- Release date: April 2007
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596510657
You might also like
book
Rails 4 in Action
GET MORE WITH MANNING An eBook copy of the previous edition, Rails 3 in Action, is …
book
Agile Web Development with Rails 5.1
Learn Rails the way the Rails core team recommends it, along with the tens of thousands …
book
Rails 4 Test Prescriptions
Does your Rails code suffer from bloat, brittleness, or inaccuracy? Cure these problems with a regular …
book
Vue on Rails: End-to-End Guide to Building Web Apps Using Vue.js and Rails
Build modern and progressive web applications with Vue.js and Ruby on Rails. As the Rails community …