Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup script_scheduling/079.html. #1658

Merged
merged 2 commits into from
Mar 4, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
52 changes: 25 additions & 27 deletions old-tests/submission/Opera/script_scheduling/079.html
Original file line number Diff line number Diff line change
@@ -1,30 +1,28 @@
<!DOCTYPE html>
<html>
<head>
<title> setting location to javascript URL from event handler </title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="testlib/testlib.js"></script>
<script type="text/javascript">
log('inline script #1');
var t = async_test()
<head>
<title> setting location to javascript URL from event handler </title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="testlib/testlib.js"></script>
<script type="text/javascript">
log('inline script #1');
var t = async_test()

function test() {
log('onload handler');
document.getElementById("log").textContent = 'please wait...';
window.location='javascript:log("javascript: URL")';
setTimeout( function(){
log('timeout');
assert_array_equals(eventOrder, ['inline script #1', 'onload handler', 'onload ends', 'javascript: URL', 'timeout']);
t.done();
}, 200);
log('onload ends');

};
onload = t.step_func(test)
</script>
</head>
<body>
<div id="log">FAILED (This TC requires JavaScript enabled)</div>
</body>
</html*>
onload = t.step_func(function() {
log('onload handler');
document.getElementById("log").textContent = 'please wait...';
window.location='javascript:log("javascript: URL")';
setTimeout(t.step_func(function(){
log('timeout');
assert_array_equals(eventOrder, ['inline script #1', 'onload handler', 'onload ends', 'javascript: URL', 'timeout']);
t.done();
}), 200);
log('onload ends');
});
</script>
</head>
<body>
<div id="log">FAILED (This TC requires JavaScript enabled)</div>
</body>
</html>