mirror of
https://github.com/servo/servo.git
synced 2025-08-08 23:15:33 +01:00
Update web-platform-tests to revision 6fa9de7201cd41564d02c3edd62365aeb40e171b
This commit is contained in:
parent
60f1ffc5a7
commit
dc1f7ba3ec
124 changed files with 2052 additions and 849 deletions
|
@ -12,6 +12,7 @@
|
|||
async_test(t => {
|
||||
assert_greater_than_equal(document.timeline.currentTime, 0,
|
||||
'The current time is initially is positive or zero');
|
||||
|
||||
// document.timeline.currentTime should be set even before document
|
||||
// load fires. We expect this code to be run before document load and hence
|
||||
// the above assertion is sufficient.
|
||||
|
@ -34,4 +35,16 @@ async_test(t => {
|
|||
});
|
||||
}, 'Document timelines report current time relative to navigationStart');
|
||||
|
||||
async_test(t => {
|
||||
window.requestAnimationFrame(rafTime => {
|
||||
t.step(() => {
|
||||
const iframe = document.createElement('iframe');
|
||||
document.body.appendChild(iframe);
|
||||
assert_greater_than_equal(iframe.contentDocument.timeline.currentTime, 0,
|
||||
'The current time of a new iframe is initially is positive or zero');
|
||||
});
|
||||
t.done();
|
||||
});
|
||||
}, 'Child frames do not report negative initial times');
|
||||
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue