mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Add a test for the class selector with multiple class attributes.
This commit is contained in:
parent
bdb8657cf6
commit
21d3ddabbf
4 changed files with 52 additions and 1 deletions
|
@ -14,6 +14,20 @@
|
|||
"local_changes": {
|
||||
"deleted": [],
|
||||
"items": {
|
||||
"reftest": {
|
||||
"css/class-namespaces.html": [
|
||||
{
|
||||
"path": "css/class-namespaces.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/class-namespaces-ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/class-namespaces.html"
|
||||
}
|
||||
]
|
||||
},
|
||||
"testharness": {
|
||||
"mozilla/DOMParser.html": [
|
||||
{
|
||||
|
@ -515,7 +529,20 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"reftest_nodes": {}
|
||||
"reftest_nodes": {
|
||||
"css/class-namespaces.html": [
|
||||
{
|
||||
"path": "css/class-namespaces.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/class-namespaces-ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/class-namespaces.html"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"reftest_nodes": {},
|
||||
"rev": null,
|
||||
|
|
3
tests/wpt/mozilla/meta/css/class-namespaces.html.ini
Normal file
3
tests/wpt/mozilla/meta/css/class-namespaces.html.ini
Normal file
|
@ -0,0 +1,3 @@
|
|||
[class-namespaces.html]
|
||||
type: reftest
|
||||
expected: FAIL
|
5
tests/wpt/mozilla/tests/css/class-namespaces-ref.html
Normal file
5
tests/wpt/mozilla/tests/css/class-namespaces-ref.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
<style>
|
||||
p { background: green; }
|
||||
</style>
|
||||
<body>
|
||||
<p>AAA</p><p>BBB</p>
|
16
tests/wpt/mozilla/tests/css/class-namespaces.html
Normal file
16
tests/wpt/mozilla/tests/css/class-namespaces.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
<link rel=match href=class-namespaces-ref.html>
|
||||
<style>
|
||||
.foo { background: green; }
|
||||
</style>
|
||||
<body>
|
||||
<script>
|
||||
var p = document.body.appendChild(document.createElement("p"));
|
||||
p.setAttributeNS("foo", "class", "bar");
|
||||
p.setAttributeNS("", "class", "foo");
|
||||
p.textContent = "AAA";
|
||||
|
||||
var p = document.body.appendChild(document.createElement("p"));
|
||||
p.setAttributeNS("", "class", "foo");
|
||||
p.setAttributeNS("foo", "class", "bar");
|
||||
p.textContent = "BBB";
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue