mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-13 23:17:57 +00:00
abaca9e65e
The tests pass with the patch; without the patch test_style_attribute_quirks.html fails 2 tests.
28 lines
748 B
JavaScript
28 lines
748 B
JavaScript
|
|
SimpleTest.waitForExplicitFinish();
|
|
|
|
window.addEventListener("load", runTests, false);
|
|
|
|
function runTests(event)
|
|
{
|
|
if (event.target != document) {
|
|
return;
|
|
}
|
|
|
|
var elt = document.getElementById("content");
|
|
|
|
elt.setAttribute("style", "color: blue; background-color: fuchsia");
|
|
is(elt.style.color, "blue",
|
|
"setting correct style attribute (color)");
|
|
is(elt.style.backgroundColor, "fuchsia",
|
|
"setting correct style attribute (color)");
|
|
|
|
elt.setAttribute("style", "{color: blue; background-color: fuchsia}");
|
|
is(elt.style.color, "",
|
|
"setting braced style attribute (color)");
|
|
is(elt.style.backgroundColor, "",
|
|
"setting braced style attribute (color)");
|
|
|
|
SimpleTest.finish();
|
|
}
|