mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Update web-platform-tests to revision 4333a1d2f109795547fc5e22ebfc8481fa649de7
This commit is contained in:
parent
728ebcc932
commit
8c46b67f8e
456 changed files with 10561 additions and 5108 deletions
|
@ -97,3 +97,18 @@ async_test(t => {
|
|||
document.body.appendChild(e);
|
||||
URL.revokeObjectURL(url);
|
||||
}, 'Fetching a blob URL immediately before revoking it works in <script> tags.');
|
||||
|
||||
async_test(t => {
|
||||
const channel_name = 'a-click-test';
|
||||
const blob = new Blob([window_contents_for_channel(channel_name)], {type: 'text/html'});
|
||||
receive_message_on_channel(t, channel_name).then(t.step_func_done(t => {
|
||||
assert_equals(t, 'foobar');
|
||||
}));
|
||||
const url = URL.createObjectURL(blob);
|
||||
const anchor = document.createElement('a');
|
||||
anchor.href = url;
|
||||
anchor.target = '_blank';
|
||||
document.body.appendChild(anchor);
|
||||
anchor.click();
|
||||
URL.revokeObjectURL(url);
|
||||
}, 'Opening a blob URL in a new window by clicking an <a> tag works immediately before revoking the URL.');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue