mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Add test for empty media query list
This commit is contained in:
parent
5dfcb07f6a
commit
57a26bc8c8
2 changed files with 18 additions and 0 deletions
|
@ -37753,6 +37753,12 @@
|
||||||
"url": "/cookies/path/match.html"
|
"url": "/cookies/path/match.html"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"cssom-view/MediaQueryList-with-empty-string.html": [
|
||||||
|
{
|
||||||
|
"path": "cssom-view/MediaQueryList-with-empty-string.html",
|
||||||
|
"url": "/cssom-view/MediaQueryList-with-empty-string.html"
|
||||||
|
}
|
||||||
|
],
|
||||||
"html/semantics/forms/the-form-element/form-action-url.html": [
|
"html/semantics/forms/the-form-element/form-action-url.html": [
|
||||||
{
|
{
|
||||||
"path": "html/semantics/forms/the-form-element/form-action-url.html",
|
"path": "html/semantics/forms/the-form-element/form-action-url.html",
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
<!doctype html>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>cssom-view - MediaQueryList with empty string</title>
|
||||||
|
<script src="/resources/testharness.js"></script>
|
||||||
|
<script src="/resources/testharnessreport.js"></script>
|
||||||
|
<script>
|
||||||
|
test(function () {
|
||||||
|
var mql = window.matchMedia('');
|
||||||
|
assert_equals(mql.media, '', "This should be an empty media query list");
|
||||||
|
assert_equals(mql.matches, true, "Empty media query list should evaluate to true");
|
||||||
|
});
|
||||||
|
</script>
|
Loading…
Add table
Add a link
Reference in a new issue