mirror of
https://github.com/servo/servo.git
synced 2025-08-14 01:45:33 +01:00
Update web-platform-tests to 887399d3d0a85d0e27a6688ae384459376adf7ca
This commit is contained in:
parent
a900196b3f
commit
8ea56eabaa
44 changed files with 178 additions and 77 deletions
|
@ -1,12 +1,13 @@
|
|||
<!doctype html>
|
||||
<!-- this tests the spec as it hopefully will be once bug https://www.w3.org/Bugs/Public/show_bug.cgi?id=17155 is fixed -->
|
||||
<title>Fragment Navigation: hashchange event multiple changes old/newURL</title>
|
||||
<meta name=timeout content=long>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<body>
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
var t = async_test(undefined, {timeout:30000});
|
||||
var t = async_test();
|
||||
t.step(function() {
|
||||
var original_url = location.href;
|
||||
assert_equals(location.hash, "", "Page must be loaded with no hash");
|
||||
|
@ -19,12 +20,12 @@ t.step(function() {
|
|||
|
||||
addEventListener("hashchange",
|
||||
t.step_func(function(e) {
|
||||
if (count < 1000) {
|
||||
if (count < 100) {
|
||||
location.hash = "test" + count++;
|
||||
hashes.push(location.hash);
|
||||
} else if (count === 1000) {
|
||||
} else if (count === 100) {
|
||||
expected = [];
|
||||
for (var i=0; i<1000; i++) {
|
||||
for (var i=0; i<100; i++) {
|
||||
expected.push("#test" + i);
|
||||
}
|
||||
assert_array_equals(hashes, expected);
|
||||
|
|
|
@ -3,12 +3,12 @@
|
|||
<title>[Browsing Context] : [APIs for creating browsing_contexts by name]</title>
|
||||
<link rel="author" title="Duhyeong Kim" href="mailto:dduskim@gmail.com">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#apis-for-creating-and-navigating-browsing-contexts-by-name">
|
||||
<meta name=timeout content=long>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
async_test(function() {
|
||||
var currentUrl = 'http://' + window.location.host + '/';
|
||||
var currentUrl = 'http://' + window.location.host + '/common/blank.html';
|
||||
var win = window.open(currentUrl, '', 'height=1,width=1');
|
||||
this.add_cleanup(function() { win.close(); });
|
||||
win.onload = this.step_func_done(function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue