mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 12:35:58 +00:00
ede8c44ef2
This excludes dom/, otherwise the file size is too large for phabricator to handle. This is an autogenerated commit to handle scripts loading mochitest harness files, in the simple case where the script src is on the same line as the tag. This was generated with https://bug1544322.bmoattachments.org/attachment.cgi?id=9058170 using the `--part 2` argument. Differential Revision: https://phabricator.services.mozilla.com/D27456 --HG-- extra : moz-landing-system : lando
42 lines
1.3 KiB
HTML
42 lines
1.3 KiB
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<!--
|
|
https://bugzilla.mozilla.org/show_bug.cgi?id=375363
|
|
-->
|
|
<head>
|
|
<title>Test for cloning of CSS property values (including 'inherit', 'initial' and 'unset')</title>
|
|
<script src="/tests/SimpleTest/SimpleTest.js"></script>
|
|
<script type="text/javascript" src="property_database.js"></script>
|
|
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
|
|
</head>
|
|
<body>
|
|
<p id="display"></p>
|
|
<pre id="test">
|
|
<script class="testbody" type="text/javascript">
|
|
|
|
/**
|
|
* Test that makes sure that we have exposed getters/setters for all the
|
|
* various variants of our CSS property names that the spec calls for.
|
|
*/
|
|
for (var prop in gCSSProperties) {
|
|
var info = gCSSProperties[prop];
|
|
|
|
var s = document.createElement("div").style;
|
|
|
|
is(s[info.domProp], "", prop + " should not be set yet");
|
|
s[info.domProp] = info.initial_values[0];
|
|
isnot(s[info.domProp], "", prop + " should now be set");
|
|
is(s[prop], s[info.domProp],
|
|
"Getting " + prop + " via name should work")
|
|
s = document.createElement("div").style;
|
|
is(s[info.domProp], "", prop + " should not be set here either");
|
|
s[prop] = info.initial_values[0];
|
|
isnot(s[info.prop], "", prop + " should now be set again");
|
|
is(s[info.domProp], s[prop],
|
|
"Setting " + prop + " via name should work");
|
|
}
|
|
</script>
|
|
</pre>
|
|
</body>
|
|
</html>
|