Add a test to obtain offsetWidth of expanded table cell
https://bugs.webkit.org/show_bug.cgi?id=123843

Reviewed by Tim Horton.

Merge the test from https://chromium.googlesource.com/chromium/blink/+/58a5fac292a5b3f79b00cdc71074fbf8be2ebc2b
so that we'll never introduce the regression they had.

* fast/table/table-cell-offset-width-expected.txt: Added.
* fast/table/table-cell-offset-width.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158710 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index bad2651..aaec817 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,16 @@
+2013-11-05  Ryosuke Niwa  <rniwa@webkit.org>
+
+        Add a test to obtain offsetWidth of expanded table cell
+        https://bugs.webkit.org/show_bug.cgi?id=123843
+
+        Reviewed by Tim Horton.
+
+        Merge the test from https://chromium.googlesource.com/chromium/blink/+/58a5fac292a5b3f79b00cdc71074fbf8be2ebc2b
+        so that we'll never introduce the regression they had.
+
+        * fast/table/table-cell-offset-width-expected.txt: Added.
+        * fast/table/table-cell-offset-width.html: Added.
+
 2013-11-05  Alexandru Chiculita  <achicu@adobe.com>
 
         Web Inspector: Moving an element while in the DOMNodeRemoved handler will hide it in the inspector
diff --git a/LayoutTests/fast/table/table-cell-offset-width-expected.txt b/LayoutTests/fast/table/table-cell-offset-width-expected.txt
new file mode 100644
index 0000000..05fbfb7
--- /dev/null
+++ b/LayoutTests/fast/table/table-cell-offset-width-expected.txt
@@ -0,0 +1,3 @@
+This tests obtaining the offsetWidth of a layout-dependent table cell.
+The td with width set to 5px should be expanded to have the wider width:
+10px
diff --git a/LayoutTests/fast/table/table-cell-offset-width.html b/LayoutTests/fast/table/table-cell-offset-width.html
new file mode 100644
index 0000000..7550480
--- /dev/null
+++ b/LayoutTests/fast/table/table-cell-offset-width.html
@@ -0,0 +1,9 @@
+<table><td style="font: Ahem; width: 5px">x</td></table>
+<script>
+if (window.testRunner)
+    testRunner.dumpAsText();
+var width = document.getElementsByTagName('td')[0].offsetWidth;
+document.body.innerText = 'This tests obtaining the offsetWidth of a layout-dependent table cell.\n'
+    + 'The td with width set to 5px should be expanded to have the wider width:\n'
+    + width + 'px';
+</script>