mirror of
https://github.com/servo/servo.git
synced 2025-08-28 08:38:20 +01:00
Update web-platform-tests and CSS tests.
- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180. - Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
This commit is contained in:
parent
fb4f421c8b
commit
296fa2512b
21852 changed files with 2080936 additions and 892894 deletions
|
@ -1,21 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Original file for data:uri... to test opening an data:uri path within an iframe.</title>
|
||||
<link rel="author" title="Google" href="http://www.google.com/" />
|
||||
<link rel="help" href="http://www.w3.org/TR/navigation-timing-2/#sec-PerformanceNavigationTiming"/>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Description</h1>
|
||||
<p id="p">This test passed.</p>
|
||||
<script>
|
||||
var observer = new PerformanceObserver(
|
||||
function (entryList) {
|
||||
document.getElementById("p").innerHTML = "This test failed because navigation intance is observed.";
|
||||
observer.disconnect();
|
||||
});
|
||||
observer.observe({entryTypes: ["navigation"]});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
<title>data URL source for navigation-timing/nav2_test_open_data_uri.html</title>
|
||||
<!-- NB: this file isn't actually used any where! -->
|
||||
<link rel="author" title="Google" href="http://www.google.com/" />
|
||||
<script>
|
||||
var observer = new PerformanceObserver(
|
||||
function (entryList) {
|
||||
parent.postMessage("observed", "*");
|
||||
observer.disconnect();
|
||||
});
|
||||
observer.observe({entryTypes: ["navigation"]});
|
||||
</script>
|
||||
|
|
|
@ -5,11 +5,26 @@
|
|||
<title>Navigation Timing 2 WPT</title>
|
||||
<link rel="author" title="Google" href="http://www.google.com/" />
|
||||
<link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-navigation-timing-interface"/>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Description</h1>
|
||||
<p>This test validates there does not exist a navigation timing instance when opening a data uri. This data uri points to nav2_data_uri.html. This test passes when it displays so in the iframe below.</p>
|
||||
<p>This test validates there does not exist a navigation timing instance when opening a data uri. This data uri is equivalent to nav2_data_uri.html.</p>
|
||||
|
||||
<iframe id="frameContext" src="data:text/html;base64,PCFET0NUWVBFIGh0bWw+CjxodG1sPgogICAgPGhlYWQ+CiAgICAgICAgPG1ldGEgY2hhcnNldD0idXRmLTgiPgogICAgICAgIDx0aXRsZT5PcmlnaW5hbCBmaWxlIGZvciBkYXRhOnVyaS4uLiB0byB0ZXN0IG9wZW5pbmcgYW4gZGF0YTp1cmkgcGF0aCB3aXRoaW4gYW4gaWZyYW1lLjwvdGl0bGU+CiAgICAgICAgPGxpbmsgcmVsPSJhdXRob3IiIHRpdGxlPSJHb29nbGUiIGhyZWY9Imh0dHA6Ly93d3cuZ29vZ2xlLmNvbS8iIC8+CiAgICAgICAgPGxpbmsgcmVsPSJoZWxwIiBocmVmPSJodHRwOi8vd3d3LnczLm9yZy9UUi9uYXZpZ2F0aW9uLXRpbWluZy0yLyNzZWMtUGVyZm9ybWFuY2VOYXZpZ2F0aW9uVGltaW5nIi8+CiAgICA8L2hlYWQ+CiAgICA8Ym9keT4KICAgICAgICA8aDE+RGVzY3JpcHRpb248L2gxPgogICAgICAgIDxwIGlkPSJwIj5UaGlzIHRlc3QgcGFzc2VkLjwvcD4KICAgICAgICA8c2NyaXB0PgogICAgICAgICAgICAgICAgdmFyIG9ic2VydmVyID0gbmV3IFBlcmZvcm1hbmNlT2JzZXJ2ZXIoCiAgICAgICAgICAgICAgICAgICAgZnVuY3Rpb24gKGVudHJ5TGlzdCkgewogICAgICAgICAgICAgICAgICAgICAgICBkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgicCIpLmlubmVySFRNTCA9ICJUaGlzIHRlc3QgZmFpbGVkIGNhdXNlIG5hdmlnYXRpb24gaW50YW5jZSBpcyBvYnNlcnZlZC4iOwogICAgICAgICAgICAgICAgICAgICAgICBvYnNlcnZlci5kaXNjb25uZWN0KCk7CiAgICAgICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICBvYnNlcnZlci5vYnNlcnZlKHtlbnRyeVR5cGVzOiBbIm5hdmlnYXRpb24iXX0pOwogICAgICAgIDwvc2NyaXB0PgogICAgPC9ib2R5Pgo8L2h0bWw+Cg==" style="width: 250px; height: 250px;"></iframe>
|
||||
<script>
|
||||
async_test(function(t) {
|
||||
var gotEvent = false;
|
||||
window.addEventListener("message", t.step_func(function() {
|
||||
assert_unreached("A navigation timing instance existed");
|
||||
}));
|
||||
window.addEventListener("load", t.step_func(function() {
|
||||
t.step_timeout(function() { t.done(); }, 2000);
|
||||
}));
|
||||
}, "Navigation timing instance existence");
|
||||
</script>
|
||||
|
||||
<iframe src="data:text/html;charset=utf-8,%3C%21DOCTYPE%20html%3E%0D%0A%3Ctitle%3Edata%20URL%20source%20for%20navigation-timing%2Fnav2_test_open_data_uri.html%3C%2Ftitle%3E%0D%0A%3C%21--%20NB%3A%20this%20file%20isn%27t%20actually%20used%20any%20where%21%20--%3E%0D%0A%3Clink%20rel%3D%22author%22%20title%3D%22Google%22%20href%3D%22http%3A%2F%2Fwww.google.com%2F%22%20%2F%3E%0D%0A%3Cscript%3E%0D%0Avar%20observer%20%3D%20new%20PerformanceObserver%28%0D%0A%20%20%20%20function%20%28entryList%29%20%7B%0D%0A%20%20%20%20%20%20%20%20parent.postMessage%28%22observed%22%2C%20%22%2A%22%29%3B%0D%0A%20%20%20%20%20%20%20%20observer.disconnect%28%29%3B%0D%0A%20%20%20%20%7D%29%3B%0D%0Aobserver.observe%28%7BentryTypes%3A%20%5B%22navigation%22%5D%7D%29%3B%0D%0A%3C%2Fscript%3E%0D%0A"></iframe>
|
||||
<!-- NB: see nav2_data_uri.html for the source of that data URI -->
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -40,6 +40,6 @@
|
|||
</ul>
|
||||
</p>
|
||||
|
||||
<iframe id="frameContext" onload="onload_test();" src="http://www.apple.com" style="width: 250px; height: 250px;"></iframe>
|
||||
<iframe id="frameContext" onload="onload_test();" src="{{location[scheme]}}://{{domains[www2]}}:{{ports[http][0]}}/common/blank.html" style="width: 250px; height: 250px;"></iframe>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue