Layout Test fast/dom/HTMLMeterElement/meter-element-crash.html is failing
https://bugs.webkit.org/show_bug.cgi?id=88131
Reviewed by Tony Chang.
This test was calling setTimeout(..., 0) in a <script> block before the end of the document.
The timeout sometimes fired before parsing the rest of the document and sometimes after,
depending on when the parser yielded. This moves the <script> block to the end of the document
so it always runs after parsing the rest of the test, which is the more common and expected
behavior.
* fast/dom/HTMLMeterElement/meter-element-crash.html:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145263 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index 81b2014..2e3b83f 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,18 @@
+2013-03-08 James Robinson <jamesr@chromium.org>
+
+ Layout Test fast/dom/HTMLMeterElement/meter-element-crash.html is failing
+ https://bugs.webkit.org/show_bug.cgi?id=88131
+
+ Reviewed by Tony Chang.
+
+ This test was calling setTimeout(..., 0) in a <script> block before the end of the document.
+ The timeout sometimes fired before parsing the rest of the document and sometimes after,
+ depending on when the parser yielded. This moves the <script> block to the end of the document
+ so it always runs after parsing the rest of the test, which is the more common and expected
+ behavior.
+
+ * fast/dom/HTMLMeterElement/meter-element-crash.html:
+
2013-03-07 Geoffrey Garen <ggaren@apple.com>
Added a regression test for raw parsing speed
diff --git a/LayoutTests/fast/dom/HTMLMeterElement/meter-element-crash.html b/LayoutTests/fast/dom/HTMLMeterElement/meter-element-crash.html
index 6012cd7..ec1f518 100644
--- a/LayoutTests/fast/dom/HTMLMeterElement/meter-element-crash.html
+++ b/LayoutTests/fast/dom/HTMLMeterElement/meter-element-crash.html
@@ -4,6 +4,14 @@
-webkit-appearance: none;
}
</style>
+<span id="test">
+ <script>
+ document.body.offsetTop;
+ </script>
+ <input type="text">
+ <meter>
+ </meter>
+</span>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
@@ -16,11 +24,3 @@
testRunner.notifyDone();
}, 0);
</script>
-<span id="test">
- <script>
- document.body.offsetTop;
- </script>
- <input type="text">
- <meter>
- </meter>
-</span>