| This test checks to make sure the hashchange event is fired __ansynchronously__ when the value of location.hash changes.<br/> |
| It assumes there is a hashchange event for each location.hash change.<br/> |
| <script language="javascript"> |
| var hashChanging = false; |
| var lc = window.testRunner; |
| function updateHash (hash) { |
| msgs.push('updateHash("' + hash + '")'); |
| function loadHandler () { |
| function hashChangeHandler () { |
| msgs.push('hashChangeHandler()'); |
| msgs.push('', failed ? "FAILURE" : "SUCCESS"); |
| document.getElementById("msg").innerHTML = msgs.join('<br/>'); |
| window.addEventListener('load', loadHandler, false); |
| window.addEventListener('hashchange', hashChangeHandler, false); |