Update web-platform-tests to 5582e4d2bfcfd1fa9f105406b143170ee2af7db1

This commit is contained in:
James Graham 2016-03-31 17:56:59 +01:00 committed by Ms2ger
parent 9f892edd87
commit 78369e95cf
814 changed files with 57501 additions and 857 deletions

View file

@ -2,7 +2,6 @@
<title>Page load processing model for text files</title>
<link rel="author" title="Ms2ger" href="ms2ger@gmail.com">
<link rel="help" href="https://html.spec.whatwg.org/multipage/#read-text">
<link rel="stylesheet" href="/resources/testharness.css">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>

View file

@ -4,4 +4,4 @@ opener.history_length = history.length;
</script>
<a onclick="location = 'manual_click_assign_during_load-2.html'; return false;" href>Click Here</a>
<p>Filler image to keep the page loading:</p>
<img src="/media/2048x1360-random.jpg?pipe=trickle(d1:1:r2)">
<img src="/images/smiley.png?pipe=trickle(20:d1:r2)">

View file

@ -6,5 +6,5 @@ opener.history_length = history.length;
<p>Filler image to keep the page loading:</p>
<img>
<script>
document.images[0].src = "/media/2048x1360-random.jpg?pipe=trickle(d1:1:r2)&random=" + Math.random();
document.images[0].src = "/images/smiley.png?pipe=trickle(20:d1:r2)&random=" + Math.random();
</script>

View file

@ -6,4 +6,4 @@ opener.history_length = history.length;
<input type=submit value="Click Me">
</form>
<p>Filler image to keep the page loading:</p>
<img src="/media/2048x1360-random.jpg?pipe=trickle(d1:1:r2)">
<img src="/images/smiley.png?pipe=trickle(20:d1:r2)">

View file

@ -7,4 +7,4 @@ opener.history_length = history.length;
document.links[0].click()
</script>
<p>Filler image to keep the page loading:</p>
<img src="/media/2048x1360-random.jpg?pipe=trickle(d1:1:r2)">
<img src="/images/smiley.png?pipe=trickle(20:d1:r2)">

View file

@ -9,5 +9,5 @@ document.links[0].click()
<p>Filler image to keep the page loading:</p>
<img>
<script>
document.images[0].src = "/media/2048x1360-random.jpg?pipe=trickle(d1:1:r2)&random=" + Math.random()
document.images[0].src = "/images/smiley.png?pipe=trickle(20:d1:r2)&random=" + Math.random()
</script>

View file

@ -9,4 +9,4 @@ opener.history_length = history.length;
document.forms[0].elements[0].click()
</script>
<p>Filler image to keep the page loading:</p>
<img src="/media/2048x1360-random.jpg?pipe=trickle(d1:1:r2)">
<img src="/images/smiley.png?pipe=trickle(20:d1:r2)">

View file

@ -5,22 +5,21 @@
<div id="log"></div>
<a href="002-1.html" target="_blank">Link</a>
<script>
var t = async_test();
var a;
t.step(function() {
async_test(function(t) {
a = document.getElementsByTagName("a")[0];
a.click();
//This is a bit hacky; if the test fails there isn't a link back to the parent
//window so we have to pass on a timeout. But opening the link could be slow in
//some cases, so there is some possibility of false fails
setTimeout(t.step_func(function() {
assert_unreached("Failed to get callback from opened window");
}), 1000);
});
onmessage = t.step_func(function(e) {
assert_equals(e.data, "PASS");
t.done()
}
);
// This is a bit hacky; if the test fails there isn't a link back to the parent
// window so we have to pass on a timeout. But opening the link could be slow in
// some cases, so there is some possibility of false fails
step_timeout(t.step_func(function() {
assert_unreached("Failed to get callback from opened window");
}), 5000);
onmessage = t.step_func(function(e) {
assert_equals(e.data, "PASS");
t.done()
});
});
</script>