layout/base/tests/bug687297_b.html
author Kearwood (Kip) Gilbert <kgilbert@mozilla.com>
Wed, 26 Feb 2014 16:01:38 -0800
changeset 171740 d30b9a757fc2bd8c21c0cc51f07e695ad958d89b
parent 171255 1d16baf1f90a1e6b07d03c40c0c2864426277cac
permissions -rw-r--r--
Bug 687297 - Added Mochitest to verify that the per-presentation base minimum font size is propagated without being influenced by the language-specific global preference. r=dbaron This test applies a large value to the font.minimum-size.ja preference, opens a new window, advances the url through an iso-8859-1 page, a Shift-JIS page, and back to an iso-8859-1 page. If the height of a div containing text on the first iso-8859-1 page and last iso-8859-1 page do not match, then the test is failed. This test has been excluded from B2G Desktop Client tests due to bug 948948.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
  <title>Test companion for Bug 687297</title>
  <style type="text/css"> * { font-size:9px; } </style>
</head>
<body>
  <div id="test_content">ABCDEFG 0123456</div>
</body>
<script type="application/javascript">
  window.onload = function() {
    opener.report_size_b(document.getElementById("test_content").clientHeight);
    window.location.href = "bug687297_c.html";
  };
</script>
</html>