mirror of
https://github.com/servo/servo.git
synced 2025-09-06 21:18:20 +01:00
Update web-platform-tests to revision ddfc95cf0493ae147a4f6a4d7be8eff1a0c23098
This commit is contained in:
parent
1f6a864ab5
commit
7e6290451f
832 changed files with 16026 additions and 2649 deletions
|
@ -0,0 +1,49 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||
<title>All Resource Types Test Page</title>
|
||||
</head>
|
||||
<body background='blue.png?id=body'>
|
||||
<script>
|
||||
if (window.parent.hasOwnProperty('on_test_body_created'))
|
||||
window.parent.on_test_body_created();
|
||||
</script>
|
||||
<link rel="stylesheet" href="nested.css"></link>
|
||||
<img src="resource_timing_test0.png"></img>
|
||||
<iframe src="blank_page_green.htm" width="100px" height="100px"></iframe>
|
||||
<script src="empty_script.js"></script>
|
||||
<script>
|
||||
var async_xhr = new XMLHttpRequest;
|
||||
async_xhr.open('GET', 'blue.png?id=async_xhr', true);
|
||||
async_xhr.onreadystatechange = function() {
|
||||
if (async_xhr.readyState == 4 && async_xhr.status == 200 && parent.hasOwnProperty('on_async_xhr_done'))
|
||||
parent.on_async_xhr_done();
|
||||
}
|
||||
async_xhr.send();
|
||||
</script>
|
||||
<style>
|
||||
@font-face {
|
||||
font-family: remoteFontAhem;
|
||||
src: url('/fonts/Ahem.ttf');
|
||||
}
|
||||
iframe {
|
||||
background: url('blue.png?id=1');
|
||||
}
|
||||
ul {
|
||||
font-family: remoteFontAhem;
|
||||
list-style-image: url('blue.png?id=2');
|
||||
}
|
||||
</style>
|
||||
<ul>
|
||||
<li>Test</li>
|
||||
</ul>
|
||||
<ol>
|
||||
<li>Test</li>
|
||||
</ol>
|
||||
<embed src="resource_timing_test0.css?id=embed" type="text/css"></embed>
|
||||
<input type="image" src="blue.png?id=input"></input>
|
||||
<object type="image/png" data="blue.png?id=object"></object>
|
||||
<video poster="blue.png?id=poster"></video>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||
<title>Green Test Page</title>
|
||||
</head>
|
||||
<body style="background-color:#00FF00;">
|
||||
<h1>Placeholder</h1>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,7 @@
|
|||
<html>
|
||||
<head>
|
||||
<frameset>
|
||||
<frame src="blank_page_green.htm">
|
||||
</frameset>
|
||||
</head>
|
||||
</html>
|
|
@ -0,0 +1,10 @@
|
|||
@import "resource_timing_test0.css?id=n1";
|
||||
|
||||
@font-face {
|
||||
font-family: remoteFont;
|
||||
src: url('/fonts/Ahem.ttf?id=n1');
|
||||
}
|
||||
ol {
|
||||
font-family: remoteFont;
|
||||
list-style-image: url('blue.png?id=n1');
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
let numComplete = 0;
|
||||
|
||||
function checkDone() {
|
||||
++numComplete;
|
||||
if (numComplete == 2) {
|
||||
postMessage('');
|
||||
}
|
||||
}
|
||||
|
||||
function makeRequest(request) {
|
||||
var xhr = new XMLHttpRequest;
|
||||
xhr.open('get', request, true);
|
||||
xhr.onreadystatechange = function() {
|
||||
if (xhr.readyState == 4) {
|
||||
checkDone();
|
||||
}
|
||||
}
|
||||
xhr.send();
|
||||
}
|
||||
makeRequest('blue.png');
|
||||
makeRequest('resource_timing_test0.png');
|
Loading…
Add table
Add a link
Reference in a new issue