Add test for bug 200089.
authorBoris Zbarsky <bzbarsky@mit.edu>
Tue, 07 Jun 2011 12:35:17 -0700
changeset 70743 a7546cc8c2eedf4c4b8db10961eb73055b9adfb1
parent 70742 f4af0c31419335f1b961e63088260d11264327ed
child 70744 580ddd2f126774228abb97938f7c04473197df75
push id20406
push usereakhgari@mozilla.com
push dateWed, 08 Jun 2011 21:46:52 +0000
treeherdermozilla-central@3a509617644e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs200089
milestone7.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Add test for bug 200089.
layout/style/test/Makefile.in
layout/style/test/test_bug200089.html
--- a/layout/style/test/Makefile.in
+++ b/layout/style/test/Makefile.in
@@ -83,16 +83,17 @@ GARBAGE += css_properties.js
 
 _TEST_FILES =	test_acid3_test46.html \
 		test_any_dynamic.html \
 		test_at_rule_parse_serialize.html \
 		test_bug73586.html \
 		test_bug74880.html \
 		test_bug98997.html \
 		test_bug160403.html \
+		test_bug200089.html \
 		test_bug221428.html \
 		test_bug229915.html \
 		test_bug302186.html \
 		test_bug319381.html \
 		test_bug357614.html \
 		test_bug363146.html \
 		test_bug365932.html \
 		test_bug372770.html \
new file mode 100644
--- /dev/null
+++ b/layout/style/test/test_bug200089.html
@@ -0,0 +1,31 @@
+<!DOCTYPE HTML>
+<html>
+<!--
+https://bugzilla.mozilla.org/show_bug.cgi?id=200089
+-->
+<head>
+  <title>Test for Bug 200089</title>
+  <script type="application/javascript" src="/MochiKit/packed.js"></script>
+  <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=200089">Mozilla Bug 200089</a>
+<div id="display" style="width: 600px">
+  <table border="0" id="t" style="width: 300px; margin-left: auto; margin-right: auto">
+    <tr><td>Cell</td></tr>
+  </table>
+</div>
+<div id="content" style="display: none">
+  
+</div>
+<pre id="test">
+<script type="application/javascript">
+
+/** Test for Bug 200089 **/
+is(getComputedStyle($("t"), "").width, "300px",
+   "Used width should match specified width in this case");
+</script>
+</pre>
+</body>
+</html>