2012-07-06 17:06:23 -07:00
|
|
|
<!DOCTYPE HTML>
|
|
|
|
<html>
|
|
|
|
<!--
|
|
|
|
https://bugzilla.mozilla.org/show_bug.cgi?id=696253
|
|
|
|
-->
|
|
|
|
<head>
|
2012-10-03 18:44:15 -07:00
|
|
|
<meta charset="utf-8">
|
2012-07-06 17:06:23 -07:00
|
|
|
<title>Test for Bug 696253</title>
|
|
|
|
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
|
|
|
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=696253">Mozilla Bug 696253</a>
|
2012-10-03 18:44:15 -07:00
|
|
|
<div id="display">
|
|
|
|
<iframe id="iframe"></iframe>
|
2012-07-06 17:06:23 -07:00
|
|
|
</div>
|
|
|
|
<pre id="test">
|
2012-10-03 18:44:15 -07:00
|
|
|
<script type="application/javascript">
|
|
|
|
"use strict";
|
2012-07-06 17:06:23 -07:00
|
|
|
|
2012-10-15 12:42:43 -07:00
|
|
|
/** Test for Bug 696253, for the 'flex' CSS shorthand property) **/
|
2012-07-06 17:06:23 -07:00
|
|
|
|
|
|
|
/*
|
2012-10-03 18:44:15 -07:00
|
|
|
* This mochitest runs in an iframe so that we can selectively turn on the
|
|
|
|
* flexbox about:config pref before its document is instantiated.
|
|
|
|
*
|
|
|
|
* See the iframe's source ("file_flexbox_flex_shorthand.html") for the actual
|
|
|
|
* test code and for more documentation.
|
|
|
|
*/
|
2012-07-06 17:06:23 -07:00
|
|
|
|
2012-10-03 18:44:15 -07:00
|
|
|
SimpleTest.waitForExplicitFinish();
|
2012-07-06 17:06:23 -07:00
|
|
|
|
2012-12-07 11:15:27 -08:00
|
|
|
ok(!SpecialPowers.getBoolPref("layout.css.flexbox.enabled"),
|
|
|
|
"expecting flexbox pref to be disabled by default");
|
2012-07-06 17:06:23 -07:00
|
|
|
|
2012-12-07 11:15:27 -08:00
|
|
|
SpecialPowers.setBoolPref("layout.css.flexbox.enabled", true);
|
2012-10-03 18:44:15 -07:00
|
|
|
document.getElementById("iframe").src = "file_flexbox_flex_shorthand.html";
|
2012-07-06 17:06:23 -07:00
|
|
|
|
2012-10-03 18:44:15 -07:00
|
|
|
function finish() {
|
|
|
|
SpecialPowers.clearUserPref("layout.css.flexbox.enabled");
|
|
|
|
SimpleTest.finish();
|
2012-07-06 17:06:23 -07:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</pre>
|
|
|
|
</body>
|
|
|
|
</html>
|