Title: [257467] trunk/LayoutTests
Revision
257467
Author
[email protected]
Date
2020-02-26 06:12:35 -0800 (Wed, 26 Feb 2020)

Log Message

Unreviewed. Update fast/forms/number/number-size.html after r257299

Since r257299 the GTK port specific behavior is no longer needed, so we can remove the widthSpecified function
and use the specified value directly.

* fast/forms/number/number-size-expected.txt:
* fast/forms/number/number-size.html:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (257466 => 257467)


--- trunk/LayoutTests/ChangeLog	2020-02-26 14:06:30 UTC (rev 257466)
+++ trunk/LayoutTests/ChangeLog	2020-02-26 14:12:35 UTC (rev 257467)
@@ -1,3 +1,13 @@
+2020-02-26  Carlos Garcia Campos  <[email protected]>
+
+        Unreviewed. Update fast/forms/number/number-size.html after r257299
+
+        Since r257299 the GTK port specific behavior is no longer needed, so we can remove the widthSpecified function
+        and use the specified value directly.
+
+        * fast/forms/number/number-size-expected.txt:
+        * fast/forms/number/number-size.html:
+
 2020-02-25  Jack Lee  <[email protected]>
 
         ASSERTION FAILURE in AppendNodeCommand::AppendNodeCommand when inserting list with read-only user-modify

Modified: trunk/LayoutTests/fast/forms/number/number-size-expected.txt (257466 => 257467)


--- trunk/LayoutTests/fast/forms/number/number-size-expected.txt	2020-02-26 14:06:30 UTC (rev 257466)
+++ trunk/LayoutTests/fast/forms/number/number-size-expected.txt	2020-02-26 14:12:35 UTC (rev 257467)
@@ -8,8 +8,8 @@
 PASS number.offsetWidth is text.offsetWidth
 
 The number whose width is specified should respect the setting
-PASS numberWithWidth.offsetWidth is widthSpecified(100)
-PASS numberWithWidth.min = 0; numberWithWidth.max = 100; numberWithWidth.offsetWidth is widthSpecified(100)
+PASS numberWithWidth.offsetWidth is 100
+PASS numberWithWidth.min = 0; numberWithWidth.max = 100; numberWithWidth.offsetWidth is 100
 
 The number input should ignore size attribute for layout
 PASS number.size = 10; number.offsetWidth is text.offsetWidth

Modified: trunk/LayoutTests/fast/forms/number/number-size.html (257466 => 257467)


--- trunk/LayoutTests/fast/forms/number/number-size.html	2020-02-26 14:06:30 UTC (rev 257466)
+++ trunk/LayoutTests/fast/forms/number/number-size.html	2020-02-26 14:12:35 UTC (rev 257467)
@@ -28,13 +28,6 @@
 
 <script>
 
-function widthSpecified(size) {
-    // GTK+ port overrides the style width and always increments it with the spinbuttons size.
-    if (isGtk())
-      size += spinButtonWidth;
-    return size;
-}
-
 description('Test for size attribute of input');
 
 var parent = document.createElement('div');
@@ -56,8 +49,8 @@
 debug('');
 
 debug('The number whose width is specified should respect the setting');
-shouldBe('numberWithWidth.offsetWidth', 'widthSpecified(100)');
-shouldBe('numberWithWidth.min = 0; numberWithWidth.max = 100; numberWithWidth.offsetWidth', 'widthSpecified(100)');
+shouldBe('numberWithWidth.offsetWidth', '100');
+shouldBe('numberWithWidth.min = 0; numberWithWidth.max = 100; numberWithWidth.offsetWidth', '100');
 debug('');
 
 debug('The number input should ignore size attribute for layout');
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to