Created
June 15, 2015 20:46
-
-
Save balazs/0d9984bb22f5cc7f5279 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
layoutish/ 0000775 0001750 0001750 00000000000 12536662674 012434 5 ustar balazs balazs layoutish/xhr-during-transition.html 0000664 0001750 0001750 00000002376 12536665343 017605 0 ustar balazs balazs <html> | |
<head> | |
<!-- <script src="/js-test-resources/js-test.js"></script> --> | |
<script> | |
// Shim. | |
function description(text) { | |
document.title = text; | |
} | |
function finishJSTest() { | |
} | |
function testPassed(text) { | |
log('PASS: ' + text); | |
} | |
function testFailed(text) { | |
log('FAIL: ' + text); | |
} | |
// end shim. | |
description('Test behavior of sync XHR during page transition'); | |
//window.jsTestIsAsync = true; | |
function finish(message, didPass) | |
{ | |
// Detach the frame so we don't need to wait for it to finish loading. | |
//var frame = document.getElementById('frame'); | |
//frame.parentNode.removeChild(frame); | |
if (didPass) | |
testPassed(message) | |
else | |
testFailed(message); | |
finishJSTest(); | |
} | |
function fail(message) { | |
finish(message, false); | |
} | |
function pass(message) { | |
finish(message, true) | |
} | |
function reloadFrame() { | |
var frame = document.getElementById('frame'); | |
} | |
</script> | |
</head> | |
<body> | |
<!-- <br/>+MAIN PAGE+<br/> | |
<br/>+FRAME+<br/> --> | |
<iframe id='frame' src="xhr-during-transition-frame.html"> | |
</iframe> | |
<!-- <br/>+FRAME+<br/> | |
<br/>+CONSOLE+<br/> --> | |
<div id="console"></div> | |
<!-- <br/>+CONSOLE+<br/> --> | |
</body> | |
<script> | |
function log(text) { | |
document.getElementById('console').textContent += text + "<br />"; | |
} | |
</script> | |
</html> | |