mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Update web-platform-tests to revision 8ae1ddbc812733c3a73b103eafad56fb43a2f4b5
This commit is contained in:
parent
d44e9aced2
commit
0e5e5db397
109 changed files with 2053 additions and 708 deletions
|
@ -3,12 +3,22 @@
|
|||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>css-conditional IDL tests</title>
|
||||
<title>CSS Conditional Rules IDL tests</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-conditional/">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/resources/WebIDLParser.js"></script>
|
||||
<script src="/resources/idlharness.js"></script>
|
||||
<!-- used to provide objects -->
|
||||
<style>
|
||||
div { display: block; }
|
||||
</style>
|
||||
<style>
|
||||
@media print { }
|
||||
</style>
|
||||
<style>
|
||||
@supports (display: block) { }
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
@ -16,16 +26,20 @@
|
|||
|
||||
<script>
|
||||
'use strict';
|
||||
promise_test(async () => {
|
||||
const idl = await fetch('/interfaces/css-conditional.idl').then(r => r.text());
|
||||
const cssom = await fetch('/interfaces/cssom.idl').then(r => r.text());
|
||||
const dom = await fetch('/interfaces/dom.idl').then(r => r.text());
|
||||
const idl_array = new IdlArray();
|
||||
idl_array.add_idls(idl);
|
||||
idl_array.add_dependency_idls(cssom);
|
||||
idl_array.add_dependency_idls(dom);
|
||||
idl_array.test();
|
||||
}, 'Test css-conditional IDL implementation');
|
||||
idl_test(
|
||||
['css-conditional'],
|
||||
['cssom', 'dom'],
|
||||
idl_array => {
|
||||
idl_array.add_objects({
|
||||
CSSRule: ['cssRule'],
|
||||
CSSMediaRule: ['cssMediaRule'],
|
||||
CSSSupportsRule: ['cssSupportsRule'],
|
||||
});
|
||||
self.cssRule = document.styleSheets[0].cssRules[0];
|
||||
self.cssMediaRule = document.styleSheets[1].cssRules[0];
|
||||
self.cssSupportsRule = document.styleSheets[2].cssRules[0];
|
||||
}
|
||||
);
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue