Automatic testing of your web pages with JavaScript
Yes, this is possible. A proof of concept (currently Firefox only) is included with the test file for the new AJAX in-place editor (coming in the next script.aculo.us version). Excerpt from the test case: new Test.Unit.Runner({ test_InPlaceEditor: function() { with(this) { inPlaceEditor = new Ajax.InPlaceEditor($(‘tobeedited’), ‘inplaceeditor_result.html’); Event.simulateEvent(‘tobeedited’,’mouseover’); assertEqual(“rgb(238, 238, 238)”, Element.getStyle(‘tobeedited’,’background-color’)); Event.simulateEvent(‘tobeedited’,’mouseout’); assertEqual(“transparent”, Element.getStyle(‘tobeedited’,’background-color’)); Event.simulateEvent(‘tobeedited’,’mouseover’); … Continue reading Automatic testing of your web pages with JavaScript
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed