Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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.


Canonical link: https://commits.webkit.org/142037@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@158710 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
rniwa committed Nov 6, 2013
1 parent 3c46448 commit 8bd17c4
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
13 changes: 13 additions & 0 deletions 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
Expand Down
3 changes: 3 additions & 0 deletions 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
9 changes: 9 additions & 0 deletions 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>

0 comments on commit 8bd17c4

Please sign in to comment.