News for hackers. Stuff that matters.
Re:Zombie.js: insanely fast, full-stack, headless testing by EGreg on Friday December 31, 2010 @01:57PM (#2056090)
does this thing actually compute the rendered coordinates properly, as a browser would? Can I load jquery and call offset() ?
Re:Zombie.js: insanely fast, full-stack, headless testing by hammerdr on Friday December 31, 2010 @02:32PM (#2056199)
It uses JSDOM (http://jsdom.org/) under the hood. JSDOM is currently at DOM Level 1 (+additions). It also implements some of Level 2 and Level 3 (https://github.com/tmpvar/jsdom/blob/master/test/testlog.txt).
Re:Zombie.js: insanely fast, full-stack, headless testing by a-priori on Friday December 31, 2010 @02:02PM (#2056103)
I would guess no, since it includes only a mock of the DOM. But really, are element locations something you want to test?
Re:Zombie.js: insanely fast, full-stack, headless testing by dools on Friday December 31, 2010 @05:08PM (#2056592)
Definitely! But it would then also require a CSS renderer. Automated testing of something like Decal CMS (decalcms.com) where we provide javascript which manipulates the DOM but allows the designer to plug whatever markup/CSS they like into the system means that automated testing is incredibly difficult and does rely on actually checking for the position (and other computed styles) of an element after we've run certain pieces of code.
Re:Zombie.js: insanely fast, full-stack, headless testing by EGreg on Friday December 31, 2010 @06:15PM (#2056741)
Really, YES. Half of the stuff I want to test is that the right stuff is showing up in the right place. Why, what would you want to test?