mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-07 11:56:51 +00:00
JavaScript Test Library - regression test for bugs 336373, 345922, by Jeff Walden
This commit is contained in:
parent
0561599de5
commit
43468146ca
@ -68,6 +68,7 @@ const ALL_TESTS =
|
||||
"CONTEXT_XML_DESCENDANTS",
|
||||
"CONTEXT_XML_NAMESPACE_QUALIFIED_ELEMENT",
|
||||
"CONTEXT_XML_NAMESPACE_QUALIFIED_ATTR",
|
||||
"CONTEXT_XML_ATTRIBUTE_SELECTOR",
|
||||
];
|
||||
|
||||
function r(keyword, tests)
|
||||
@ -393,6 +394,20 @@ Tester.prototype =
|
||||
{
|
||||
throw e;
|
||||
}
|
||||
},
|
||||
CONTEXT_XML_ATTRIBUTE_SELECTOR:
|
||||
function(keyword)
|
||||
{
|
||||
try
|
||||
{
|
||||
eval("var x = <foo " + keyword + "='idref'/>;\n\
|
||||
if (x.@" + keyword + " != 'idref')\n\
|
||||
throw 'keywords on the right of the @ E4X selector are broken!';");
|
||||
}
|
||||
catch (e)
|
||||
{
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user