mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-05 14:57:30 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
27
layout/style/test/style_attribute_tests.js
Normal file
27
layout/style/test/style_attribute_tests.js
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
|
||||
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();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue