Changeset 6462
- Timestamp:
- 03/25/07 20:43:38 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
spinoffs/prototype/branches/event/test/functional/event.html
r6454 r6462 9 9 <script type="text/javascript"> 10 10 var Prototype = { 11 Version: ' <%= PROTOTYPE_VERSION %>',11 Version: 'inline', 12 12 13 13 Browser: { … … 144 144 el = $(this.parentNode) 145 145 e.preventDefault() 146 147 setTimeout(function(){ 148 if (window.location.hash == '#wrong') el.failed( 149 'Hijack failed (<a href="' + window.location.toString().replace(/#.+$/, '') + '">remove the fragment</a>)') 146 log(e) 147 148 setTimeout(function() { 149 if (window.location.hash == '#wrong') el.failed('Hijack failed (<a href="' + 150 window.location.toString().replace(/#.+$/, '') + '">remove the fragment</a>)') 150 151 else el.passed() 151 }, 20) 152 153 log(e) 154 //return false 152 }, 50) 155 153 }) 156 154 </script> … … 182 180 <script type="text/javascript"> 183 181 $('right').observe('click', function(e){ 184 if (!Event.isLeftClick(e)) this.failed()185 else this. passed()182 if (Event.isLeftClick(e)) this.passed() 183 else this.failed() 186 184 log(e) 187 185 }) … … 192 190 <script type="text/javascript"> 193 191 $('stop').observe('click', function(e){ 194 Event.stop(e)192 e.stopPropagation() 195 193 this.passed() 196 194 log(e)