Add a test for the class selector with multiple class attributes.

This commit is contained in:
Ms2ger 2015-04-18 17:34:19 +02:00
parent bdb8657cf6
commit 21d3ddabbf
4 changed files with 52 additions and 1 deletions

View file

@ -14,6 +14,20 @@
"local_changes": { "local_changes": {
"deleted": [], "deleted": [],
"items": { "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": { "testharness": {
"mozilla/DOMParser.html": [ "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": {}, "reftest_nodes": {},
"rev": null, "rev": null,

View file

@ -0,0 +1,3 @@
[class-namespaces.html]
type: reftest
expected: FAIL

View file

@ -0,0 +1,5 @@
<style>
p { background: green; }
</style>
<body>
<p>AAA</p><p>BBB</p>

View 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>